Beispiel #1
0
 /// <summary>
 /// Calling this method automatically opened the indicated form as a Mdi child form in the main form tabs.
 /// Exposes a way to open the Catalogue Form from a Project outside of CDS.Client.Desktop.Catalogue
 /// </summary>
 /// <param name="form">The form control to be displayed in the tabs.</param>
 /// <remarks>Created: Theo Crous 14/11/2011</remarks>
 public void ShowCatalogueForm(DB.VW_Company entity, CDS.Client.BusinessLayer.ORG.ORG_Type type, CDS.Client.Desktop.Essential.BaseForm form)
 {
     CDS.Client.Desktop.Catalogue.CAT.CatalogueForm childForm = new Catalogue.CAT.CatalogueForm();
     childForm.Entity = entity;
     childForm.Type   = type;
     childForm.Tag    = form;
     ShowForm(childForm);
 }
Beispiel #2
0
        /// <summary>
        /// This method is called to show a form in the MainForm as a MDIChildform
        /// http://www.codeproject.com/Articles/9162/Invoking-methods-Runtime-on-method-name
        /// </summary>
        /// <remarks>Created: Werner Scheffer 06/11/2014</remarks>
        /// <param name="form">DevExpress Form to show</param>
        public void ShowCatalogueForm(DB.VW_Company entity, CDS.Client.BusinessLayer.ORG.ORG_Type type, BaseForm form)
        {
            var        mainform    = Application.OpenForms["MainForm"];
            Type       typExternal = mainform.GetType();
            MethodInfo methodInf   = typExternal.GetMethod("ShowCatalogueForm");

            methodInf.Invoke(mainform, new object[] { entity, type, form });
        }
Beispiel #3
0
 public LostSaleDialogue(BL.ORG.ORG_Type companyType)
 {
     InitializeComponent();
     this.CompanyType = companyType;
 }
Beispiel #4
0
 public CompanyList(BL.ORG.ORG_Type type)
 {
     InitializeComponent();
     this.Type = type;
 }