Exemplo n.º 1
0
        public override void OpenClosePanel(CanvasRootViewModel viewModel, OpenClosePanelCommand arg)
        {
            base.OpenClosePanel(viewModel, arg);

            List <PanelViewModel> vmList = OutOfGameRoot.CanvasRoot.PanelCollection.Select(_ => (PanelViewModel)_).ToList();

            vmList.ForEach(panelVM => {
                if (arg.OpenPanels.Exists(t => t == panelVM.GetType()))
                {
                    panelVM.ExecutePanelIn();
                }
                if (arg.ClosePanels.Exists(t => t == panelVM.GetType()))
                {
                    panelVM.ExecutePanelOut();
                }
            });
        }
Exemplo n.º 2
0
 public virtual void Execute(OpenClosePanelCommand argument)
 {
     this.OpenClosePanel.OnNext(argument);
 }
Exemplo n.º 3
0
 public virtual void ExecuteOpenClosePanel(OpenClosePanelCommand command)
 {
     command.Sender = CanvasRoot;
     CanvasRoot.OpenClosePanel.OnNext(command);
 }
Exemplo n.º 4
0
 public virtual void OpenClosePanel(CanvasRootViewModel viewModel, OpenClosePanelCommand arg)
 {
 }
Exemplo n.º 5
0
 public virtual void OpenClosePanelHandler(OpenClosePanelCommand command)
 {
     this.OpenClosePanel(command.Sender as CanvasRootViewModel, command);
 }