public void Execute(ToolBarButton toolBar) { switch (toolBar.Id) { case 1: RootEditorViewModel viewModel = new RootEditorViewModel(); mPageManager.AddPage(viewModel); break; } }
public void Edit(RootDisplayModel model) { RootEditorViewModel viewModel = new RootEditorViewModel(model); mPageManager.AddPage(viewModel); }