private void listViewProjects_DoubleClick(object sender, EventArgs e)
 {
     if (listViewProjects.SelectedItems.Count > 0)
     {
         projectForm = new frmProject(entities, (project)listViewProjects.SelectedItems[0].Tag);
         projectForm.Show();
         projectForm.Focus();
     }
 }
 private void btnAddProject_Click(object sender, EventArgs e)
 {
     if ((projectForm == null) || projectForm.IsDisposed)
     {
         projectForm = new frmProject(entities);
     }
     projectForm.Show();
     projectForm.Focus();
 }