コード例 #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"
     ////}
 }
コード例 #2
0
ファイル: MainViewModel.cs プロジェクト: Forrescik/PopupMenu
 /// <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"
     ////}
 }