private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
            if (caller == "Items")
            {
                adi.Show();
                adi.refreshVehicleList();
            }

            else if (caller == "Emp")
            {
                emp.Show();
            }
            else if (caller == "AddCustomer")
            {
                Cust.refreshVehicleList();
                Cust.Show();
            }
            else if (caller == "UPDE")
            {
                ud.refreshVehicleList();
                ud.Show();
            }
            else if (caller == "Cust")
            {
                edc.refreshVehicleList();
                edc.Show();
            }
            else
            {
                m.Show();
            }
        }
Ejemplo n.º 2
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
            if (s == 1)
            {
                ca.refreshSupplierList();
                ca.Show();
            }

            else if (s == 2)
            {
                cb.Show();
                cb.refreshSupplierList();
            }
            else if (s == 3)
            {
                ud.refreshSupplierList();
                ud.Show();
            }

            else
            {
                m.Show();
            }
        }
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            AddItem adi = new AddItem();

            adi.m = this;
            adi.Show();
        }