Exemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the btn_ProdFulfPrint 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_ProdFulfPrint_Click(object sender, EventArgs e)
        {
            try
            {
                Product selectedItem = (Product)comboBox_ProjCritProdFulf.SelectedItem;
                if (selectedItem == null)
                {
                    MessageBox.Show("Bitte erst ein Produkt auswählen.");
                }
                else
                {
                    FulfPrint_View print = new FulfPrint_View(Project.Project_Id, selectedItem.Product_Id);
                    print.Show();
                }
            }

            catch (Exception x)
            {
                MessageBox.Show(x.Message);
            }
        }
        /// <summary>
        /// Handles the Click event of the btn_ProdFulfPrint 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_ProdFulfPrint_Click(object sender, EventArgs e)
        {
            try
            {
                Product selectedItem = (Product)comboBox_ProjCritProdFulf.SelectedItem;
                if (selectedItem == null)
                {
                    MessageBox.Show("Bitte erst ein Produkt auswählen.");
                }
                else
                {
                    FulfPrint_View print = new FulfPrint_View(Project.Project_Id, selectedItem.Product_Id);
                    print.Show();
                }
            }

            catch (Exception x)
            {
                MessageBox.Show(x.Message);
            }
        }