Esempio n. 1
0
 public void Init(LogHandler logHandler, AdminCreds adminCreds, NetworkHandler networkHandler, AccountsHandler accountsHandler)
 {
     _log             = logHandler;
     _adminCreds      = adminCreds;
     _networkHandler  = networkHandler;
     _accountsHandler = accountsHandler;
 }
Esempio n. 2
0
 public void Init(AccountFormValidator accountFormValidator, AccountsHandler accountsHandler, Action cancelAccountCreate)
 {
     _cancelAccountCreate  = cancelAccountCreate;
     _accountFormValidator = accountFormValidator;
     _accountsHandler      = accountsHandler;
     cmbAccessLevels.FillComboBoxWithAccessLevel();
 }
        public void Init(LogHandler logHandler, AccountEditControl accountEditControl, AccountCreateControl accountCreateControl, AccountsHandler accountsHandler, AdminCreds adminCreds)
        {
            _log                  = logHandler;
            _accountsHandler      = accountsHandler;
            _accountEditControl   = accountEditControl;
            _accountCreateControl = accountCreateControl;
            _adminCreds           = adminCreds;

            Items = new ObservableCollection <AccountInfo>();
            accountListView.ItemsSource = Items;
            banLengthCombo.FillComboBoxForBanLength();
        }
Esempio n. 4
0
        public void Init(LogHandler logHandler, AccountsHandler accountsHandler, NetworkHandler networkHandler, AuthPage authPage, ServerInfoPage serverInfoPage, AccountsPage accountsPage, LocalServerPage localSrvPage)
        {
            Trace.WriteLine("MainWindow init");
            // %%% try minimizing it!
            // local instances to access the pages individually
            _localServerPage = localSrvPage;
            _authPage        = authPage;
            _serverInfoPage  = serverInfoPage;
            _accountsPage    = accountsPage;

            // add them to a list so we can handle them as set of controls
            _tabItems.Add(localSrvPage);
            _tabItems.Add(authPage);
            _tabItems.Add(accountsPage);
            _tabItems.Add(serverInfoPage);

            _networkHandler  = networkHandler;
            _log             = logHandler;
            _accountsHandler = accountsHandler;
        }
 public void Init(AccountFormValidator accountFormValidator, AccountsHandler accountsHandler)
 {
     _accountFormValidator = accountFormValidator;
     _accountsHandler      = accountsHandler;
     cmbAccessLevels.FillComboBoxWithAccessLevel();
 }