private void frmSetting_FormClosing(object sender, FormClosingEventArgs e) { //Save config--------------------------------- if (WindowState == FormWindowState.Normal) { //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig(Name + ".WindowsBound", GlobalSetting.RectToString(Bounds)); } //Windows State------------------------------------------------------------------- GlobalSetting.SetConfig(Name + ".WindowsState", WindowState.ToString()); //Save extra supported extensions string extraExts = ""; foreach (var control in panExtraExts.Controls) { var chk = (CheckBox)control; if (chk.Checked) { extraExts += chk.Tag.ToString() + ";"; } } GlobalSetting.SupportedExtraExtensions = extraExts; GlobalSetting.SetConfig("ExtraExtensions", GlobalSetting.SupportedExtraExtensions); //Force to apply the configurations GlobalSetting.IsForcedActive = true; }
private void frmColorPicker_FormClosing(object sender, FormClosingEventArgs e) { LocalSetting.IsColorPickerToolOpening = false; LocalSetting.ForceUpdateActions |= MainFormForceUpdateAction.COLOR_PICKER_MENU; //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig($"{Name}.WindowsBound", GlobalSetting.RectToString(Bounds)); }
private void frmExtension_FormClosing(object sender, FormClosingEventArgs e) { //Save config--------------------------------- if (this.WindowState == FormWindowState.Normal) { //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig(this.Name + ".WindowsBound", GlobalSetting.RectToString(this.Bounds)); } //Windows State------------------------------------------------------------------- GlobalSetting.SetConfig(this.Name + ".WindowsState", this.WindowState.ToString()); }
private void frmSetting_FormClosing(object sender, FormClosingEventArgs e) { //Save config--------------------------------- if (this.WindowState == FormWindowState.Normal) { //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig(this.Name + ".WindowsBound", GlobalSetting.RectToString(this.Bounds)); } //Windows State------------------------------------------------------------------- GlobalSetting.SetConfig(this.Name + ".WindowsState", this.WindowState.ToString()); //Ép thực thi các thiết lập GlobalSetting.IsForcedActive = true; }
private void frmSetting_FormClosing(object sender, FormClosingEventArgs e) { //Save config--------------------------------- if (WindowState == FormWindowState.Normal) { //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig(Name + ".WindowsBound", GlobalSetting.RectToString(Bounds)); } GlobalSetting.SetConfig(Name + ".WindowsState", WindowState.ToString()); GlobalSetting.SaveConfigOfImageEditingAssociationList(); //Tabs State--------------------------------------------------------------------------- GlobalSetting.SettingsTabLastView = tab1.SelectedIndex; }
private void frmSetting_FormClosing(object sender, FormClosingEventArgs e) { //Save config--------------------------------- if (WindowState == FormWindowState.Normal) { //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig(Name + ".WindowsBound", GlobalSetting.RectToString(Bounds)); } //Windows State------------------------------------------------------------------- GlobalSetting.SetConfig(Name + ".WindowsState", WindowState.ToString()); GlobalSetting.SaveConfigOfImageEditingAssociationList(); //Force to apply the configurations GlobalSetting.IsForcedActive = true; }
private void frmSetting_FormClosing(object sender, FormClosingEventArgs e) { //Save config--------------------------------- if (this.WindowState == FormWindowState.Normal) { //Windows Bound------------------------------------------------------------------- GlobalSetting.SetConfig(this.Name + ".WindowsBound", GlobalSetting.RectToString(this.Bounds)); } //Windows State------------------------------------------------------------------- GlobalSetting.SetConfig(this.Name + ".WindowsState", this.WindowState.ToString()); //Save extra supported extensions GlobalSetting.SupportedExtraExtensions = txtSupportedExtensionExtra.Text.Trim(); GlobalSetting.SetConfig("ExtraExtensions", GlobalSetting.SupportedExtraExtensions); //Ép thực thi các thiết lập GlobalSetting.IsForcedActive = true; }