コード例 #1
0
        // CONSTRUCTORS
        /// <summary>
        /// Initializes a new instance of <see cref="ShowPhotoCommand"/>
        /// </summary>
        /// <param name="mainWindowViewModel">
        /// An instance of <see cref="ViewModel.User.MainWindowViewModel"/>
        /// </param>
        /// <exception cref="System.ArgumentNullException">
        /// Thrown when passed command argument is null
        /// </exception>
        public ShowPhotoCommand(ViewModel.User.MainWindowViewModel mainWindowViewModel)
        {
            if (mainWindowViewModel == null)
            {
                throw new System.ArgumentNullException(nameof(mainWindowViewModel));
            }

            this.mainWindowViewModel = mainWindowViewModel;
        }
コード例 #2
0
 // CONSTRUCTORS
 /// <summary>
 /// Initializes a new instance of <see cref="FollowCommand"/>
 /// </summary>
 /// <param name="mainWindowViewModel">
 /// An instance of <see cref="ViewModel.User.MainWindowViewModel"/>
 /// </param>
 public FollowCommand(ViewModel.User.MainWindowViewModel mainWindowViewModel)
 {
     this.mainWindowViewModel = mainWindowViewModel;
 }
コード例 #3
0
 // CONSTRUCTORS
 /// <summary>
 /// Initializes a new instance of <see cref="SearchUserCommand"/>
 /// </summary>
 /// <param name="mainWindowViewModel">
 /// An instance of <see cref="ViewModel.User.MainWindowViewModel"/>
 /// </param>
 public SearchUserCommand(ViewModel.User.MainWindowViewModel mainWindowViewModel)
 {
     this.mainWindowViewModel = mainWindowViewModel;
 }