public static void CreateNewOrderScreen2(Order newOrder) { OrderScreen orderScreen = new OrderScreen(newOrder); orderScreen.Closed += new EventHandler(orderScreen_Closed); SetOrderScreenTime(); SetOrderScreenPosition(orderScreen); orderScreen.Show(); UpdateMainUI(); // FileManager.AddNumberToFile(newOrder.Customer.PNumberID); }
public static void CreateNewOrderScreen3(Order newOrder, short phoneLineNo, bool isExistOrder) { //this version made for PhoneLineNumber OrderScreen orderScreen = new OrderScreen(newOrder, phoneLineNo, isExistOrder); orderScreen.Closed += new EventHandler(orderScreen_Closed); SetOrderScreenTime(); SetOrderScreenPosition(orderScreen); orderScreen.Show(); UpdateMainUI(); // FileManager.AddNumberToFile(newOrder.Customer.PNumberID); }