Exemplo n.º 1
0
 public MainWindowViewModel()
 {
     this.InitializePropertyHolders();
     _environmentOptionsViewModel = new EnvironmentOptionsViewModel();
     _instrumentOptionsViewModel  = new InstrumentOptionsViewModel();
     ListOfConfigurationSettings  = new ObservableCollection <string>();
     CurrentViewModel             = _environmentOptionsViewModel;
     Initializer();
     SelectedItem.Value = "Environment";
     SelectedItem.RegisterCallback(OnChangeOfSelectedItem);
     OkCommand     = new RelayCommand(OnClickOfOkButton);
     CancelCommand = new RelayCommand(OnClickOfCancelButton);
 }
Exemplo n.º 2
0
 public InstrumentOptionsUserControl()
 {
     InitializeComponent();
     DataContext = new InstrumentOptionsViewModel();
 }