Beispiel #1
0
        private void SearchProject()
        {
            var projectManager = new ProjectManager {MdiParent = this};
            projectManager.Show();

            var searchProject = new SearchProject();
            if (searchProject.ShowDialog() == DialogResult.Cancel)
                projectManager.Close();
            else
                projectManager.LoadProject(searchProject.Tag as ProjectDto);
        }
 private void loadProjectFinder()
 {
     var searchProjectDialog = new SearchProject();
     if (searchProjectDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         var project = searchProjectDialog.Tag as ProjectDto;
         if (project != null)
         {
             cmbProjectName.Text = project.Name;
         }
     }
 }