11/*
2- * Copyright 2014 Mikhail Shiryaev
2+ * Copyright 2016 Mikhail Shiryaev
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2020 *
2121 * Author : Mikhail Shiryaev
2222 * Created : 2010
23- * Modified : 2014
23+ * Modified : 2016
2424 */
2525
26+ using Scada ;
27+ using Scada . UI ;
2628using System ;
2729using System . Collections . Generic ;
2830using System . Data ;
2931using System . Data . SqlServerCe ;
3032using System . Windows . Forms ;
31- using Scada ;
3233using Utils ;
3334
3435namespace ScadaAdmin
@@ -48,7 +49,7 @@ public FrmCloneCnls()
4849 private void FrmCloneCnls_Load ( object sender , EventArgs e )
4950 {
5051 // перевод формы
51- Localization . TranslateForm ( this , "ScadaAdmin.FrmCloneCnls" ) ;
52+ Translator . TranslateForm ( this , "ScadaAdmin.FrmCloneCnls" ) ;
5253 }
5354
5455 private void FrmCloneCnls_Shown ( object sender , EventArgs e )
@@ -137,7 +138,7 @@ private void btnClone_Click(object sender, EventArgs e)
137138 string infoMsg =
138139 ( cloneInCnls ? AppPhrases . CloneInCnlsCompleted : AppPhrases . CloneCtrlCnlsCompleted ) + "\r \n " +
139140 string . Format ( AppPhrases . AddedCnlsCount , updRows ) ;
140- ScadaUtils . ShowInfo ( updRows > 0 ? infoMsg + AppPhrases . RefreshRequired : infoMsg ) ;
141+ ScadaUiUtils . ShowInfo ( updRows > 0 ? infoMsg + AppPhrases . RefreshRequired : infoMsg ) ;
141142 }
142143 catch ( Exception ex )
143144 {
@@ -157,7 +158,7 @@ private void btnClone_Click(object sender, EventArgs e)
157158 "\r \n " + Tables . TranlateErrorMessage ( ex . Message , table ) ;
158159
159160 AppData . ErrLog . WriteAction ( errMsg , Log . ActTypes . Exception ) ;
160- ScadaUtils . ShowError ( updRows > 0 ? errMsg + AppPhrases . RefreshRequired : errMsg ) ;
161+ ScadaUiUtils . ShowError ( updRows > 0 ? errMsg + AppPhrases . RefreshRequired : errMsg ) ;
161162 }
162163 }
163164 catch ( Exception ex )
0 commit comments