Exemple #1
0
        /// <summary>
        /// Метод вызывает диалог конфигурации и изменяет настройки в зависимости от результата вызова
        /// </summary>
        public void ShowDialog()
        {
            ConfigurationDialog win = new ConfigurationDialog(Prefix, Suffix,
                                                              Precision, DeleteNonInitializedLayouts,
                                                              ReferenceDimension,
                                                              TilemodeOn,
                                                              BlockName,
                                                              LockViewPorts);

            win.ShowDialog();
            if (true == win.DialogResult)
            {
                this.Prefix    = win.Prefix;
                this.Suffix    = win.Suffix;
                this.Precision = win.Precision ?? new AppConfig().Precision;
                this.DeleteNonInitializedLayouts = win.DelNonInitializedLayouts;
                this.TilemodeOn    = win.TilemodeOn;
                this.BlockName     = win.BlockName;
                this.LockViewPorts = win.LockViewPorts;
                Save();
            }
        }
 /// <summary>
 /// Метод вызывает диалог конфигурации и изменяет настройки в зависимости от результата вызова
 /// </summary>
 public void ShowDialog()
 {
     ConfigurationDialog win = new ConfigurationDialog(Prefix, Suffix,
                                                       Precision,DeleteNonInitializedLayouts,
                                                       ReferenceDimension,
                                                       TilemodeOn,
                                                       BlockName,
                                                       LockViewPorts);
     win.ShowDialog();
     if (true == win.DialogResult)
     {
         this.Prefix = win.Prefix;
         this.Suffix = win.Suffix;
         this.Precision = win.Precision??new AppConfig().Precision;
         this.DeleteNonInitializedLayouts = win.DelNonInitializedLayouts;
         this.TilemodeOn = win.TilemodeOn;
         this.BlockName = win.BlockName;
         this.LockViewPorts = win.LockViewPorts;
         Save();
     }
 }