public frmMDI() { InitializeComponent(); AutoScaleMode = AutoScaleMode.Dpi; this._deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString); this.dockPanel.Theme = this.vS2015DarkTheme1; if (this.dockPanel.Theme.ColorPalette != null) { this.statusBar.BackColor = this.dockPanel.Theme.ColorPalette.MainWindowStatusBarDefault.Background; } string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config"); if (File.Exists(configFile)) { this.dockPanel.LoadFromXml(configFile, this._deserializeDockContent); } this.WindowState = FormWindowState.Maximized; this._Appvalue = AppValue.Instance(); this._Appvalue.setMDIForm(this); this._Appvalue.getSystemConfig(); SelectionLanguage.ResourceCulture.SetCurrentCulture((SelectionLanguage.Language) this._Appvalue.SystemConfig.Language); this.SetResourceCulture(); }
public static AppValue Instance() { if (_Instance == null) { lock (_Lock) { if (_Instance == null) { _Instance = new AppValue(); } } } return(_Instance); }