public TMain() { TabManager = new TTabManager(this); AccountManager = new TAccountManagerViewModel(TabManager); MagicLockManager = new TMagicLockManager(TabManager); SecurityManager = new TSecurityManager(TabManager); SettingManager = new TSettingManager(TabManager); TabManager.AddItem(AccountManager); TabManager.AddItem(MagicLockManager); TabManager.AddItem(SecurityManager); TabManager.AddItem(SettingManager); //AccountManager.IsEnabled = false; //MagicLockManager.IsEnabled = false; //SecurityManager.IsEnabled = false; SystemEvents.SessionSwitch += SystemEvents_SessionSwitch; }
public TTabBase(TTabManager parent) { Parent = parent; IsEnabled = false; }