コード例 #1
0
 public void DisplaySetupView(DisplayPreviewModuleDataModel dataModel)
 {
     var setupViewModel = new SetupViewModel(dataModel);
     var setupView = new SetupView { DataContext = setupViewModel };
     setupView.ShowDialog();
     StartVisualizer(dataModel); //Refresh the visualizer
 }
コード例 #2
0
ファイル: ViewManager.cs プロジェクト: stewmc/vixen
		public void DisplaySetupView(DisplayPreviewModuleDataModel dataModel)
		{
			var setupViewModel = new SetupViewModel(dataModel);
			var setupView = new SetupView {DataContext = setupViewModel};
			setupView.ShowDialog();
			if (_view != null) {
				//Ensure current view is using this datamodel
				_visualizerViewModel = new VisualizerViewModel(dataModel.Clone() as DisplayPreviewModuleDataModel);
				_view.DataContext = _visualizerViewModel;
				_view.Focus();
			}
		}
コード例 #3
0
        public void DisplaySetupView(DisplayPreviewModuleDataModel dataModel)
        {
            var setupViewModel = new SetupViewModel(dataModel);
            var setupView      = new SetupView {
                DataContext = setupViewModel
            };

            setupView.ShowDialog();
            if (_view != null)
            {
                //Ensure current view is using this datamodel
                _visualizerViewModel = new VisualizerViewModel(dataModel.Clone() as DisplayPreviewModuleDataModel);
                _view.DataContext    = _visualizerViewModel;
                _view.Focus();
            }
        }