コード例 #1
0
        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();
        }
コード例 #2
0
        public void InitializeGroupForm(Group group, Project project)
        {
            ClientForm personForm = new ClientForm(group, this)
            {
                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();
        }
コード例 #3
0
ファイル: MainView.cs プロジェクト: LamTechConsult/opencbs
        public void InitializePersonForm(Person person, Project project)
        {
            ClientForm personForm = new ClientForm(person, this, _applicationController)
            {
                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();
        }