예제 #1
0
        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;
        }
예제 #2
0
 public TTabBase(TTabManager parent)
 {
     Parent    = parent;
     IsEnabled = false;
 }