Exemple #1
0
 private void buttom_change_Click(object sender, EventArgs e)
 {
     if (tinhtrang.Text != "Đã giao hàng")
     {
         if (idnggiao.Text != idemp && idnggiao.Text.Length != 0)
         {
             Confirm f1 = new Confirm("MB_DIRECTOR");
             f1.ShowDialog();
             if (f1.DialogResult == DialogResult.OK)
             {
                 Invoice_sale_add f = new Invoice_sale_add("a", "a");
                 f.set(dt, i);
                 f.ShowDialog();
             }
         }
         else
         {
             Invoice_sale_add f = new Invoice_sale_add("a", "a");
             f.set(dt, i);
             f.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("Hóa đơn này đã được xác nhận!", "Waring", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
        private void InvoiceSale_add_Click(object sender, EventArgs e)
        {
            Invoice_sale_add ia = new Invoice_sale_add(name, id);
            nhung(ia);

            InvoiceSale_add.BackColor = Color.White;
            InvoiceSale_add.ForeColor = Color.OrangeRed;
            InvoiceSale_add.Image = Image.FromFile(@"Image\menu_add.png");

            InvoiceSale_view.BackColor = Color.OrangeRed;
            InvoiceSale_view.ForeColor = Color.White;
            InvoiceSale_view.Image = Image.FromFile(@"Image\menu_view2.png");

            Invoicebuy_add.BackColor = Color.OrangeRed;
            Invoicebuy_add.ForeColor = Color.White;
            Invoicebuy_add.Image = Image.FromFile(@"Image\menu_add2.png");

            Invoicebuy_view.BackColor = Color.OrangeRed;
            Invoicebuy_view.ForeColor = Color.White;
            Invoicebuy_view.Image = Image.FromFile(@"Image\menu_view2.png");
        }