/// <summary> /// プロファイルの編集ボタン /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void profileEditButton_Click(object sender, EventArgs e) { using (ServerSettingForm serverSettingForm = new ServerSettingForm()) { ConnectionProfile prof = m_editingProfiles.Profile[profileSelectListview.SelectedIndices[0]]; serverSettingForm.Profile = prof; if (serverSettingForm.ShowDialog() == DialogResult.OK) { m_editingProfiles.Profile[profileSelectListview.SelectedIndices[0]] = serverSettingForm.Profile; ReloadProfileList(); } } }
/// <summary> /// プロファイルの追加ボタン /// </summary> private void profileAddButton_Click(object sender, EventArgs e) { using (ServerSettingForm serverSettingForm = new ServerSettingForm()) { ConnectionProfile prof = new ConnectionProfile(Resources.NewProfileName); serverSettingForm.Profile = prof; if (serverSettingForm.ShowDialog() == DialogResult.OK) { m_editingProfiles.Profile.Add(serverSettingForm.Profile); ReloadProfileList(); } } }
/// <summary> /// �v���t�@�C���̕ҏW�{�^�� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void profileEditButton_Click(object sender, EventArgs e) { using (ServerSettingForm serverSettingForm = new ServerSettingForm()) { ConnectionProfile prof = m_editingProfiles.Profile[profileSelectListview.SelectedIndices[0]]; serverSettingForm.Profile = prof; if (serverSettingForm.ShowDialog() == DialogResult.OK) { m_editingProfiles.Profile[profileSelectListview.SelectedIndices[0]] = serverSettingForm.Profile; ReloadProfileList(); } } }
/// <summary> /// �v���t�@�C���̒lj��{�^�� /// </summary> private void profileAddButton_Click(object sender, EventArgs e) { using (ServerSettingForm serverSettingForm = new ServerSettingForm()) { ConnectionProfile prof = new ConnectionProfile(Resources.NewProfileName); serverSettingForm.Profile = prof; if (serverSettingForm.ShowDialog() == DialogResult.OK) { m_editingProfiles.Profile.Add(serverSettingForm.Profile); ReloadProfileList(); } } }