private void btnAdd_Click(object sender, EventArgs e)
        {
            AdministratorTaskAdd addAdministratorTask = new AdministratorTaskAdd(new AdministratorTask());

            if (addAdministratorTask.ShowDialog() == DialogResult.OK)
            {
                AdministratorTaskService.Add(addAdministratorTask.AdministratorTask);
                QueryAll();
            }
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            AdministratorTask administratorTask = AdministratorTaskBindingSource.Current as AdministratorTask;

            if (administratorTask == null)
            {
                MessageBox.Show("请选择一项任务进行修改");
                return;
            }
            else
            {
                AdministratorTaskAdd addAdministratorTask = new AdministratorTaskAdd(administratorTask);
                if (addAdministratorTask.ShowDialog() == DialogResult.OK)
                {
                    AdministratorTaskService.Update(addAdministratorTask.AdministratorTask);
                    QueryAll();
                }
            }
        }