コード例 #1
0
 public MainWindowViewModel(Frame frame)
 {
     MainFrame = frame;
     Loaded = new RelayCommand(e => Loaded_Method());
     SearchCommand = new RelayCommand(e => SearchCommand_Method());
     AccountClick = new RelayCommand(e => AccountClick_Method());
 }
コード例 #2
0
 public SearchViewModel(Frame frame,string name)
 {
     MainFrame = frame;
     Name = name;
     Load_Search();
     SearchEnter = new RelayCommand(e => SearchEnter_Method());
 }
コード例 #3
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();
 }
コード例 #4
0
 public LoginViewModel()
 {
     LoginReg = new RelayCommand(e => LoginReg_Method());
     CloseCommand = new RelayCommand(e => CloseCommand_Method());
     Visible = Visibility.Visible;
     LoginReg_Method();
 }
コード例 #5
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();
 }