// 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; }
// 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; }
// 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; }