/// <summary> /// アカウント新規メニューが押されたとき /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuAccountNew_Click(object sender, EventArgs e) { //アカウント設定画面を表示 using (AccountSettingForm f = new AccountSettingForm(AccountSettingForm.AccountSettingType.New)) { DialogResult result = f.ShowDialog(); if (result == DialogResult.OK) { //変更があれば、更新する。(もともと選択していたものを再選択する) string nowAccount = this.cboAccount.SelectedValue.ToString(); this._accountds.Clear(); this._accountds.ReadXml(this._accoutPath, XmlReadMode.Auto); if (this._accountds.Account.FindByAccountName(nowAccount) != null) { this.cboAccount.SelectedValue = nowAccount; } } } }
/// <summary> /// �A�J�E���g�V�K���j���[�������ꂽ�Ƃ� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuAccountNew_Click(object sender, EventArgs e) { //�A�J�E���g�ݒ��ʂ�\�� using (AccountSettingForm f = new AccountSettingForm(AccountSettingForm.AccountSettingType.New)) { DialogResult result = f.ShowDialog(); if (result == DialogResult.OK) { //�ύX������A�X�V����B(��Ƃ�ƑI����Ă�����̂�đI�����) string nowAccount = this.cboAccount.SelectedValue.ToString(); this._accountds.Clear(); this._accountds.ReadXml(this._accoutPath, XmlReadMode.Auto); if (this._accountds.Account.FindByAccountName(nowAccount) != null) { this.cboAccount.SelectedValue = nowAccount; } } } }