Пример #1
0
        public MainForm()
        {
            InitializeComponent();
            SetMinimizedMetrics();

            WinApi.SetTaskmanWindow(this.Handle);
            WinApi.RegisterShellHookWindow(this.Handle);
            uMsgNotify = WinApi.RegisterWindowMessage("SHELLHOOK");

            db = new SQLiteDatabase(AppPath + "\\data.s3db");
            todo = new ToDoManager(db);
            startup = new StartUpManager(db);
            startup.onReady += new StartUpManager.AppStarted(AppsReady);
            bkg = new BackgroundSwitcher(this);
            pc = new SystemManager(AppPath);
            apps = new ProcessManager();
        }
Пример #2
0
 public ToDoManager(SQLiteDatabase database)
 {
     db = database;
 }
Пример #3
0
 public MainForm()
 {
     InitializeComponent();
     db = new SQLiteDatabase(AppPath + "\\data.s3db");
 }
Пример #4
0
 public StartUpManager(SQLiteDatabase database)
 {
     db = database;
 }