예제 #1
0
 /// <summary>
 /// Constructeur
 /// </summary>
 public ListModelView(DriveBase _driveBaseDropbox, DriveBase _driveBaseGoogle)
 {
     driveBaseDropbox = _driveBaseDropbox;
     driveBaseGoogle  = _driveBaseGoogle;
     RefreshTab();
     Singleton.GetInstance().setListFilesView(this);
     LoadProject();
     LoadAction();
 }
예제 #2
0
 public HomePageModelView(DriveBase _driveBaseDropbox, DriveBase _driveBaseGoogle)
 {
     driveBaseDropbox = _driveBaseDropbox;
     driveBaseGoogle  = _driveBaseGoogle;
     if (driveBaseDropbox != null)
     {
         driveBaseDropbox.getSpace();
     }
 }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }