コード例 #1
0
        public ConfigForm(string type)
        {
            InitializeComponent();

            try
            {
                this.Text = A4LGSharedFunctions.Localizer.GetString("ConfigDlgText");

                this.btnLoadConfig.Text     = A4LGSharedFunctions.Localizer.GetString("ConfigDlgLoad");
                this.btnOpenConfigLoc.Text  = A4LGSharedFunctions.Localizer.GetString("ConfigDlgOpenLoc");
                this.btnOpenLogLoc.Text     = A4LGSharedFunctions.Localizer.GetString("ConfigDlgOpenLoc");
                this.label1.Text            = A4LGSharedFunctions.Localizer.GetString("ConfigDlgFilePath");
                this.btnPreviewLoaded.Text  = A4LGSharedFunctions.Localizer.GetString("ConfigDlgPreview");
                this.btnPreview.Text        = A4LGSharedFunctions.Localizer.GetString("ConfigDlgPreview");
                this.btnPrevLog.Text        = A4LGSharedFunctions.Localizer.GetString("ConfigDlgPreview");
                this.lblConfig.Text         = A4LGSharedFunctions.Localizer.GetString("ConfigDlgLoadedConfig");
                this.gpBxconfigFiles.Text   = A4LGSharedFunctions.Localizer.GetString("ConfigDlgConfigFiles");
                this.gpBxLog.Text           = A4LGSharedFunctions.Localizer.GetString("ConfigDlgLogFile");
                this.label2.Text            = A4LGSharedFunctions.Localizer.GetString("ConfigDlgNote");
                this.chkBxBackupConfig.Text = A4LGSharedFunctions.Localizer.GetString("ConfigDlgBackupConfig");
            }
            catch
            { }
            initForm(type);

            m_ReloadMonitor = new ReloadMonitor();
            if (m_ReloadMonitor == null)
            {
                MessageBox.Show("Reloading config file is not enabled, error in event handler");
            }
        }