Exemple #1
0
        private void newOrderFormToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form salesOrderForm = new salesOrderForm(business);

            salesOrderForm.MdiParent = this;
            salesOrderForm.Text      = "Sales Form " + childFormNumber++;
            salesOrderForm.Show();
        }
 public frmConfirmation(salesOrderForm s)
 {
     InitializeComponent();
     salesForm = s;
     // If have out of stock product, show product names
     // let user choose modify or cancel order
     if (salesForm.getOutOfStockProducts() != null)
     {
         lblMessage.Text = salesForm.getOutOfStockProducts() + "Please modify your order.";
         modifyButton.Visible = true;
         cancelButton.Visible = true;
         confirmButton.Visible = false;
     }
     else
     {
         lblMessage.Text = "Your order is placed." +Environment.NewLine
                             + "Your order ID is:" + salesForm.GetOrderID;
         confirmButton.Visible = true;
         modifyButton.Visible = false;
         cancelButton.Visible = false;
     }
 }
Exemple #3
0
 public frmConfirmation(salesOrderForm s)
 {
     InitializeComponent();
     salesForm = s;
     // If have out of stock product, show product names
     // let user choose modify or cancel order
     if (salesForm.getOutOfStockProducts() != null)
     {
         lblMessage.Text       = salesForm.getOutOfStockProducts() + "Please modify your order.";
         modifyButton.Visible  = true;
         cancelButton.Visible  = true;
         confirmButton.Visible = false;
     }
     else
     {
         lblMessage.Text = "Your order is placed." + Environment.NewLine
                           + "Your order ID is:" + salesForm.GetOrderID;
         confirmButton.Visible = true;
         modifyButton.Visible  = false;
         cancelButton.Visible  = false;
     }
 }
Exemple #4
0
 public frmCatalog(salesOrderForm s)
 {
     InitializeComponent();
     salesForm = s;
 }
 public frmCatalog(salesOrderForm s)
 {
     InitializeComponent();
     salesForm = s;
 }
 private void newOrderFormToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form salesOrderForm = new salesOrderForm(business);
     salesOrderForm.MdiParent = this;
     salesOrderForm.Text = "Sales Form " + childFormNumber++;
     salesOrderForm.Show();
 }