public MainWindowViewModel() { Tabs = new ObservableCollection<TabViewModelBase>(); OpenMainTabCommand = new RelayCommand(onOpenMainTabExecuted); OpenTriangleCalculationTabCommand = new RelayCommand(onOpenTriangleTabExecuted); if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject()) == true) { Tabs.Add(new MainTabViewModel()); Tabs.Add(new MainTabViewModel()); Tabs.Add(new MainTabViewModel()); } else { Tabs.Add(new MainTabViewModel()); } }
public MainTabViewModel() { base.Name = "MainTab"; CalculateTriangleCommand = new RelayCommand(onCalculateTriangleExecuted); MainCalcCommand = new RelayCommand(onMainCalcExecuted); }
public TabViewModelBase() { Name = m_Name; RequestCloseCommand = new RelayCommand(onRequestCloseExecuted); }
public DialogViewModelBase(String title) { Title = title; SetResultCommand = new RelayCommand(onSetResultExecuted, onSetResultCanExecute); m_Result = DialogResults.NotSet; }
public MainCalculatorTabViewModel() { base.Name = "Main Calculator"; InputCommand = new RelayCommand(onInputCommandExecuted); SolutionCommand = new RelayCommand(onSolutionCommandExecuted); }