private async void buttonShowSettingWindow_Click(object sender, EventArgs e) { var settingWindow = new SettingWindow(_Setting, this.Accounts); if (settingWindow.ShowDialog() == DialogResult.OK) { await _Setting.SaveAsync(); } }
private async void buttonShowSettingWindow_Click(object sender, EventArgs e) { var settingWindow = new SettingWindow(_Setting, this._Accounts); if (settingWindow.ShowDialog() == DialogResult.OK) { await this._Setting.SaveAsync(); this.TopMost = this._Setting.TopMost != null ? (bool)this._Setting.TopMost : false; } }