void BackEnd() { CreateCustomer CreateCustomer = new CreateCustomer(); //Props CreateCustomer.RootForm = RootForm; //Add flpnl_Controls.Controls.Add(CreateCustomer); }
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 CreateCustomer addCustomer = (CreateCustomer)Application.OpenForms["AddCustomer"]; addCustomer.Hide(); this.Hide(); }