Example #1
0
 private void EditProjectBtn_Click(object sender, EventArgs e)
 {
     if (ProjectsListBox.SelectedItems.Count == 1)
     {
         string         item           = ProjectsListBox.SelectedItem.ToString();
         int            id             = Int32.Parse(item.Split(' ').Last());
         AddEditProject AddEditProject = new AddEditProject(id);
         AddEditProject.Show();
     }
     else
     {
         MessageBox.Show("Select a project");
     }
 }
Example #2
0
        private void AddProjectBtn_Click(object sender, EventArgs e)
        {
            AddEditProject AddEditProject = new AddEditProject(0);

            AddEditProject.Show();
        }