Пример #1
0
        private void btnProject_Click(object sender, EventArgs e)
        {
            ListProjectsForm form = new ListProjectsForm(Project.AllProjects);

            form.OnSelect += new ListProjectHandler(form_OnSelect);
            form.OnDelete += new ListProjectHandler(form_OnDelete);
            form.OnRename += new ListProjectHandler(form_OnRename);
            form.ShowDialog(this);
        }
Пример #2
0
 private void btnProject_Click(object sender, EventArgs e)
 {
     try
     {
         ListProjectsForm form = new ListProjectsForm(Project.GetAll());
         form.OnSelect += new ListProjectHandler(form_OnSelect);
         form.OnDelete += new ListProjectHandler(form_OnDelete);
         form.OnRename += new ListProjectHandler(form_OnRename);
         form.ShowDialog(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #3
0
        private void btnProject_Click(object sender, EventArgs e)
        {

            ListProjectsForm form = new ListProjectsForm(Project.AllProjects);
            form.OnSelect += new ListProjectHandler(form_OnSelect);
            form.OnDelete += new ListProjectHandler(form_OnDelete);
            form.OnRename += new ListProjectHandler(form_OnRename);
            form.ShowDialog(this);
        }
Пример #4
0
 private void btnProject_Click(object sender, EventArgs e)
 {
     try
     {
         ListProjectsForm form = new ListProjectsForm(Project.GetAll());
         form.OnSelect += new ListProjectHandler(form_OnSelect);
         form.OnDelete += new ListProjectHandler(form_OnDelete);
         form.OnRename += new ListProjectHandler(form_OnRename);
         form.ShowDialog(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }