Ejemplo n.º 1
0
        public SmartschoolAccounts()
        {
            state = State.App.Instance.Smartschool;
            state.AddObserver(this);

            ReloadCommand    = new RelayAsyncCommand(ReloadAccounts);
            SetTargetCommand = new RelayCommand <string>(SetTarget);

            updateSelection();
        }
Ejemplo n.º 2
0
        public DashboardPage()
        {
            Wisa = State.App.Instance.Wisa;
            //Google = State.App.Instance.Google;
            AD          = State.App.Instance.AD;
            Smartschool = State.App.Instance.Smartschool;
            Azure       = State.App.Instance.Azure;

            Wisa.AddObserver(this);
            //Google.AddObserver(this);
            AD.AddObserver(this);
            Smartschool.AddObserver(this);
            Azure.AddObserver(this);

            SyncWisaGroupsCommand          = new RelayAsyncCommand(SyncWisaGroups);
            SyncADGroupsCommand            = new RelayAsyncCommand(SyncDirectoryGroups);
            SyncWisaAccountsCommand        = new RelayAsyncCommand(SyncWisaAccounts);
            SyncADAccountsCommand          = new RelayAsyncCommand(SyncDirectoryAccounts);
            SyncSmartschoolAccountsCommand = new RelayAsyncCommand(SyncSmartschoolAccounts);
            //SyncGoogleAccountsCommand = new RelayAsyncCommand(SyncGoogleAccounts);
            SyncAzureAccountsCommand = new RelayAsyncCommand(SyncAzureAccounts);
        }