Exemple #1
0
        private void BtnAddProject_Click(object sender, EventArgs e)
        {
            ProjectAddUpdate form = new ProjectAddUpdate(null);

            form.UpdateOrAdd("Add");
            form.ShowDialog();
            dtgvProject.DataSource = projectList;
            LoadProjects();
        }
Exemple #2
0
        private void BtnUpdateProject_Click(object sender, EventArgs e)
        {
            error.Clear();
            if (dtgvProject.SelectedRows.Count == 0)
            {
                error.SetError(btnUpdateProject, "Vui lòng chọn đề tài");
                return;
            }
            ProjectAddUpdate form = new ProjectAddUpdate(checkID);

            form.UpdateOrAdd("Update");
            form.ShowDialog();
        }