Example #1
0
        private void AddProjectsBtn_Click(object sender, EventArgs e)
        {
            AddProject form = new AddProject();

            form.Show();
            this.Hide();
        }
Example #2
0
 private void UpdateProjectBtn_Click(object sender, EventArgs e)
 {
     if (ProjectsGridView.SelectedCells.Count != 0)
     {
         int        row  = ProjectsGridView.SelectedCells[0].RowIndex;
         int        id   = Convert.ToInt32(ProjectsGridView.Rows[row].Cells[0].Value);
         AddProject form = new AddProject(id);
         form.Show();
         this.Hide();
     }
 }