コード例 #1
0
ファイル: Dashboard.cs プロジェクト: zquall/Makiwara
        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);
        }
コード例 #2
0
 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;
         }
     }
 }