コード例 #1
0
ファイル: ListModelView.cs プロジェクト: SFatier/GPE-ETNA
 /// <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
ファイル: PersonalModelView.cs プロジェクト: SFatier/GPE-ETNA
        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();
        }