Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(UserNamesViewModel usertNamesCollection)
 {
     UsertNamesCollection = usertNamesCollection;
     ButtonClick          = _buttonClick ?? (_buttonClick = new RelayCommand(ButtonClickCommand));
     ////if (IsInDesignMode)
     ////{
     ////    // Code runs in Blend --> create design time data.
     ////}
     ////else
     ////{
     ////    // Code runs "for real"
     ////}
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(UserNamesViewModel usertNamesCollection)
 {
     UsertNamesCollection = usertNamesCollection;
     ButtonClick = _buttonClick ?? (_buttonClick = new RelayCommand(ButtonClickCommand));
     ////if (IsInDesignMode)
     ////{
     ////    // Code runs in Blend --> create design time data.
     ////}
     ////else
     ////{
     ////    // Code runs "for real"
     ////}
 }