コード例 #1
0
        private async void buttonShowSettingWindow_Click(object sender, EventArgs e)
        {
            var settingWindow = new SettingWindow(_Setting, this.Accounts);

            if (settingWindow.ShowDialog() == DialogResult.OK)
            {
                await _Setting.SaveAsync();
            }
        }
コード例 #2
0
        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;
            }
        }