Example #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();
                }
            });
        }
Example #2
0
 public virtual void Execute(OpenClosePanelCommand argument)
 {
     this.OpenClosePanel.OnNext(argument);
 }
Example #3
0
 public virtual void ExecuteOpenClosePanel(OpenClosePanelCommand command)
 {
     command.Sender = CanvasRoot;
     CanvasRoot.OpenClosePanel.OnNext(command);
 }
 public virtual void OpenClosePanel(CanvasRootViewModel viewModel, OpenClosePanelCommand arg)
 {
 }
 public virtual void OpenClosePanelHandler(OpenClosePanelCommand command)
 {
     this.OpenClosePanel(command.Sender as CanvasRootViewModel, command);
 }