public void InitializeCorporateForm(Corporate corporate, Project project)
        {
            ClientForm corporateForm = new ClientForm(corporate, this) { MdiParent = this };
            if (project != null)
                corporateForm.DisplayUserControl_ViewProject(project, null);

            corporateForm.Show();
        }
 public void InitializePersonForm(Person person, Project project)
 {
     ClientForm personForm = new ClientForm(person, this)
     {
         MdiParent = this,
         Text = string.Format(
                "{0} [{1}]",
                MultiLanguageStrings.GetString(Ressource.ClientForm, "Person.Text"),
                person.Name)
     };
     if (project != null)
         personForm.DisplayUserControl_ViewProject(project, null);
     personForm.Show();
 }
예제 #3
0
파일: MainView.cs 프로젝트: fdrgnmx/opencbs
 public void InitializeGroupForm(Group group, Project project)
 {
     ClientForm personForm = new ClientForm(group, this, _applicationController)
     {
         MdiParent = this,
         Text =
             string.Format("{0} [{1}]", MultiLanguageStrings.GetString(Ressource.ClientForm, "Group.Text"),
                           group.Name)
     };
     if (project != null)
         personForm.DisplayUserControl_ViewProject(project, null);
     personForm.Show();
 }