示例#1
0
        public MainForm(Librarian librarian)
        {
            InitializeComponent();

            stc   = new SearchTabController(this);
            utc   = new UserTabController(this);
            settc = new SettingsTabController(this, librarian);
            mtc   = new MaterialTabController(this);
        }
示例#2
0
        //Main Window Constructor
        public MainWindow()
        {
            instance = this;
            InitializeComponent();
            //Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
            backupPlansTabController = new BackupPlansTabController();
            myBackupsTabController   = new MyBackupsTabController();
            manualWorkTabController  = new ManualWorkTabController();
            settingsTabController    = new SettingsTabController();
            homeTabController        = new HomeTabController();
            selectedColor            = buttonTabHome.BackColor;
            normalColor     = buttonTabBackupPlans.BackColor;
            precedentButton = buttonTabHome;
            databaseService = new DatabaseService();

            notifyIconApp.Icon         = Resources.app_icon;
            notifyIconApp.Text         = "Secure Backup";
            notifyIconApp.DoubleClick += NotifyIconApp_DoubleClick;
            LoadTrayType();
            this.FormClosing += MainWindow_FormClosing;
        }