Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 4
0
 public frmCatalog(salesOrderForm s)
 {
     InitializeComponent();
     salesForm = s;
 }
Exemplo n.º 5
0
 public frmCatalog(salesOrderForm s)
 {
     InitializeComponent();
     salesForm = s;
 }
Exemplo n.º 6
0
 private void newOrderFormToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form salesOrderForm = new salesOrderForm(business);
     salesOrderForm.MdiParent = this;
     salesOrderForm.Text = "Sales Form " + childFormNumber++;
     salesOrderForm.Show();
 }