public BackupDatabaseForm(ApplicationContext _context)
        {
            context = _context;
            InitializeComponent();
            Load += BackupDatabaseForm_Load;
            //нижняя панель с кнопками
            LogoutButton.Click               += (s, e) => Logout?.Invoke();
            BackupButton.Click               += BackupButton_Click;
            OpenTasksButton.Click            += (s, e) => OpenAllTasks?.Invoke();
            CreateTaskByTemplateButton.Click += (s, e) => CreateTaskByTemplate?.Invoke();
            //меню
            //бэкап
            BackupMenuButton.Click += (s, e) => Backup?.Invoke();
            CreateTaskByTemplateMenuButton.Click += (s, e) => CreateTaskByTemplate?.Invoke();
            //задачи
            OpenTasksMenuButton.Click     += (s, e) => OpenAllTasks?.Invoke();
            CreateNewTaskMenuButton.Click += (s, e) => CreateNewTask?.Invoke();
            //расписания
            OpenSchedulesMenuButton.Click     += (s, e) => OpenAllSchedules?.Invoke();
            CreateNewScheduleMenuButton.Click += (s, e) => CreateNewSchedule?.Invoke();
            //справка
            AboutProgrammMenuButton.Click += (s, e) => OpenAboutProgram?.Invoke();
            AboutAuthorMenuButton.Click   += (s, e) => OpenAboutAuthor?.Invoke();

            SelectAllCheckbox.CheckedChanged += SelectAllCheckbox_CheckedChanged;
            ChoosePathButton.Click           += ChoosePathButton_Click;
            ProgressListBox.MouseDoubleClick += ProgressListBox_MouseDoubleClick;
            DatabasesList.MouseMove          += new System.Windows.Forms.MouseEventHandler(this.showCheckBoxToolTip);

            OpenFolder.Click += OpenFolder_Click;
        }
 private void BackupButton_Click(object sender, EventArgs e)
 {
     Backup?.Invoke();
 }