コード例 #1
0
 /// <summary>
 /// Handles the Click event of the btn_ProjectUpdate control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 /// Erstellt von Veit Berg, am 27.01.16
 private void btn_ProjectUpdate_Click(object sender, EventArgs e)
 {
     try{
         int                 selectedIndex = comboBox_SelectProject.SelectedIndex;
         Project             selectedItem  = (Project)comboBox_SelectProject.SelectedItem;
         Project_Update_View ProjectUpdate = new Project_Update_View(this, selectedItem.Project_Id);
         ProjectUpdate.Show();
         Hide();
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
     }
 }
コード例 #2
0
 /// <summary>
 /// Handles the Click event of the btn_ProjectUpdate control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 /// Erstellt von Veit Berg, am 27.01.16
 private void btn_ProjectUpdate_Click(object sender, EventArgs e)
 {
     try{
     int selectedIndex = comboBox_SelectProject.SelectedIndex;
     Project selectedItem = (Project)comboBox_SelectProject.SelectedItem;
     Project_Update_View ProjectUpdate = new Project_Update_View(this, selectedItem.Project_Id);
     ProjectUpdate.Show();
     Hide();
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
     }
 }