/// <summary> /// Constructeur /// </summary> public ListModelView(DriveBase _driveBaseDropbox, DriveBase _driveBaseGoogle) { driveBaseDropbox = _driveBaseDropbox; driveBaseGoogle = _driveBaseGoogle; RefreshTab(); Singleton.GetInstance().setListFilesView(this); LoadProject(); LoadAction(); }
public HomePageModelView(DriveBase _driveBaseDropbox, DriveBase _driveBaseGoogle) { driveBaseDropbox = _driveBaseDropbox; driveBaseGoogle = _driveBaseGoogle; if (driveBaseDropbox != null) { driveBaseDropbox.getSpace(); } }
public PersonalModelView() { driveBaseGoogle = new GoogleCloud(); u = Singleton.GetInstance().GetUtilisateur(); driveBaseDropbox = new DropBoxCloud(); Login = u.Login; Mdp = u.MDP; Email = u.Email; Role = u.Role; LoadDrive(); LoadAction(); }
public HomeModelView(Utilisateur u) { Singleton.GetInstance().SetHomeModelView(this); curentUtilisateur = u; if (curentUtilisateur.CrededentielCloudRailDropbox != null) { driveBaseDropbox = new DropBoxCloud(); } if (curentUtilisateur.CrededentielCloudRailGoogle != null) { driveBaseGoogle = new GoogleCloud(); } _listModelView = new ListModelView(driveBaseDropbox, driveBaseGoogle); ContentViewModels.Add(new HomePageModelView(driveBaseDropbox, driveBaseGoogle)); CurrentContentViewModel = ContentViewModels[0]; LoadAction(); }