예제 #1
0
        void GoRootForm()
        {
            if (RootForm == "Sell")
            {
                Sell sell = (Sell)Application.OpenForms["Sell"];

                //=> Props
                sell.CustomerToken = CustomerToken;


                //update
                sell.Update();
            }
            //Close ParentForm  of ParentForm
            Forms.PointOfSale.Customers customers = (Forms.PointOfSale.Customers)Application.OpenForms["Customers"];
            customers.Hide();

            //Close ParentForm
            AddCustomer addCustomer = (AddCustomer)Application.OpenForms["AddCustomer"];

            addCustomer.Hide();

            this.Hide();
        }