예제 #1
0
        public StaffPasswords()
        {
            state = State.App.Instance.AD;
            state.AddObserver(this);
            ClearFilterCommand = new RelayCommand(ClearFilter);
            NewAccountCommand  = new RelayCommand(NewAccount);

            updateSelection();
        }
예제 #2
0
        public ADAccounts()
        {
            state = State.App.Instance.AD;
            state.AddObserver(this);

            ReloadCommand      = new RelayAsyncCommand(ReloadAccounts);
            SetTargetCommand   = new RelayCommand <string>(SetTarget);
            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);
        }