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