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