public void showAddProject(Outlook.MailItem mailItem) { if (mailItem != null) { AddProject screen = new AddProject(); screen.ShowDialog(); } }
private void AddProjectExecute() { try { AddProject addEmployee = new AddProject(); addEmployee.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void cmdNewProject_Click(object sender, EventArgs e) { AddProject ap = new AddProject(); ap.ShowDialog(); if (ap.NewProjectName.Trim() != "") { LoadProjects(); cbPartOfProject.Text = ap.NewProjectName; } }
private void AddBtn_Click(object sender, EventArgs e) { var AddProjectForm = new AddProject(); AddProjectForm.BoolRegisteredChanged += new EventHandler <BoolEvent>(AddProjectForm_BoolRegisteredChanged); AddProjectForm.ShowDialog(); AddProjectForm.BoolRegisteredChanged -= AddProjectForm_BoolRegisteredChanged; AddProjectForm.Dispose(); AddProjectForm = null; }