Пример #1
0
 /// <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();
         }
     }
 }
Пример #2
0
        /// <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();
                }
            }
        }
Пример #3
0
 /// <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();
         }
     }
 }
Пример #4
0
        /// <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();
                }
            }
        }