private void ChooseColorBtn_BtnClick(object sender, EventArgs e) { WinColorDialog.ShowDialog(); gtlbf.BeginInvoke(new Action(() => { gtlbf.BackColor = this.WinColorDialog.Color; })); IniFileHelper.WriteValue(Environment.CurrentDirectory + "\\settings.ini", "TranslateFormSettings", "BackColor", this.WinColorDialog.Color.ToArgb().ToString()); }
private void ChooseColorBtn_BtnClick(object sender, EventArgs e) { WinColorDialog.ShowDialog(); gtlbf.BeginInvoke(new Action(() => { gtlbf.BackColor = this.WinColorDialog.Color; })); Common.settings.TF_BackColor = this.WinColorDialog.Color.ToArgb().ToString(); }