コード例 #1
0
 public AccountPhotoModelView(Account account,Frame frame)
 {
     MainFrame = frame;
     Account = account;
     if (account != MainModel.MainAccount)
         LoadVisibility = Visibility.Hidden;
     Load_Click = new RelayCommand(e => Load_Click_Method());
     EnterPhoto = new RelayCommand(e => EnterPhoto_Method());
     Refresh = new RelayCommand(e => Refresh_Method());
     LoadingPhoto();
 }
コード例 #2
0
 public OpenPhotoViewModel(int photoID, Frame frame,Account account)
 {
     Account = account;         
     Submit = new RelayCommand(e => Submit_Method());
     Like_Click = new RelayCommand(e => Like_Click_Method());
     this.PhotoID = photoID;            
     CommentText = string.Empty;
     Load();
 }