/// <summary> /// Handles the Click event of the btn_ProdUpdate 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_ProdUpdate_Click(object sender, EventArgs e) { try{ int selectedIndex = comboBox_ProdChoose.SelectedIndex; Product selectedItem = (Product)comboBox_ProdChoose.SelectedItem; Product_Update_View ProdUpdate = new Product_Update_View(this, selectedItem.Product_Id); ProdUpdate.Show(); Hide(); } catch (Exception x) { MessageBox.Show(x.Message); } }