Esempio n. 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();
            }
        }
Esempio n. 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;
            }
        }