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(); } }); }
public virtual void Execute(OpenClosePanelCommand argument) { this.OpenClosePanel.OnNext(argument); }
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); }