public new void Loaded(BussinnesEntity.Type type) { Dispatcher.Invoke(new Action(delegate { Hide(); Window window; switch (type) { case BussinnesEntity.Type.chef: window = new KitchenWindow(); window.Show(); break; case BussinnesEntity.Type.manager: window = new ManagerWindow(); window.Show(); break; case BussinnesEntity.Type.waiter: window = new WaiterWindow(); window.Show(); break; default: break; } })); }
public void OnTbtKitchenPressButtonEvent(object o, EventArgs e) { Console.WriteLine("TbtKitchen"); KitchenWindow cw = new KitchenWindow(); this.ChangeMainLabel(cw.Title); this.ChangeEveChild(cw.vbKitchen); }