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