コード例 #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();
                }
            });
        }
コード例 #2
0
 public virtual void Execute(OpenClosePanelCommand argument)
 {
     this.OpenClosePanel.OnNext(argument);
 }
コード例 #3
0
ファイル: Views.designer.cs プロジェクト: Avatarchik/EPoker
 public virtual void ExecuteOpenClosePanel(OpenClosePanelCommand command)
 {
     command.Sender = CanvasRoot;
     CanvasRoot.OpenClosePanel.OnNext(command);
 }
コード例 #4
0
 public virtual void OpenClosePanel(CanvasRootViewModel viewModel, OpenClosePanelCommand arg)
 {
 }
コード例 #5
0
 public virtual void OpenClosePanelHandler(OpenClosePanelCommand command)
 {
     this.OpenClosePanel(command.Sender as CanvasRootViewModel, command);
 }