private void OnShowView(ShowViewMessage viewData) { // Only respond to our own ViewModel) if (viewData.ViewModel == this.Title) { _uiVisualizer.Show(viewData.ViewKey, viewData.DataContext, (viewData.SetOwner) ? this : null, viewData.ViewClosed); } }
private void ShowColorDialog(object parameter) { IUIVisualizer vis = Resolve <IUIVisualizer>(); if (vis != null) { var cdvm = new ColorDialogViewModel((Element)parameter); vis.Show(cdvm.ToString(), cdvm, true, null); } }
/// <summary> /// Locate a specific sequence by name (or partial name) /// </summary> private void OnFindByName() { if (_finder != null) { _finder.RaiseActivateRequest(); return; } IUIVisualizer uiVisualizer = Resolve <IUIVisualizer>(); if (uiVisualizer != null) { _finder = new FindSearchViewModel(new DelegatingCommand <FindSearchViewModel>(OnFindNext, fsvm => fsvm != null && !string.IsNullOrEmpty(fsvm.SearchString))); uiVisualizer.Show(typeof(FindSearchView).ToString(), _finder, true, (s, e) => { _finder = null; RaiseActivateRequest(); }); } }
/// <summary> /// This method executes the workflow. /// </summary> private void OnRunWorkflow() { if (RequireSave != null) { RequireSave(); } var execViewModel = new ExecutionViewModel(WorkflowFile); if (!execViewModel.Initialize()) { return; } IUIVisualizer uiVisualizer = Resolve <IUIVisualizer>(); uiVisualizer.Show("ExecutionWindow", execViewModel, true, (s, e) => execViewModel.Dispose()); }
private void ShowColorDialog(Element parameter) { _uiVisualizer.Show("ColorDialogVisual", new ColorDialogViewModel(parameter), true, null); }