コード例 #1
0
        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;
                }
            }));
        }
コード例 #2
0
ファイル: App.cs プロジェクト: myrp-alexandre/FreeFood
    public void OnTbtKitchenPressButtonEvent(object o, EventArgs e)
    {
        Console.WriteLine("TbtKitchen");
        KitchenWindow cw = new KitchenWindow();

        this.ChangeMainLabel(cw.Title);
        this.ChangeEveChild(cw.vbKitchen);
    }