Пример #1
0
 public WisaSettings()
 {
     state = State.App.Instance.Wisa;
     this.TestConnectionCommand = new RelayAsyncCommand(TestConnection);
     this.AddRuleCommand        = new RelayAsyncCommand(AddRule);
     this.EditRuleCommand       = new RelayAsyncCommand <IRule>(EditRule);
     this.DeleteRuleCommand     = new RelayCommand <IRule>(DeleteRule);
     this.ReloadCommand         = new RelayAsyncCommand(ReloadSchools);
     this.SelectSchoolsCommand  = new RelayCommand(SelectSchools);
 }
Пример #2
0
        public WisaAccounts()
        {
            state = State.App.Instance.Wisa;
            state.AddObserver(this);

            ReloadCommand      = new RelayAsyncCommand(ReloadAccounts);
            ClearFilterCommand = new RelayCommand(ClearFilter);

            updateSelection();
        }
        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);
        }