Пример #1
0
        /// <summary>
        /// Formulário Customizado
        /// </summary>
        /// <param name="pType"></param>
        public FormSystem(SAPbouiCOM.BoFormBorderStyle pBorderStyle)
            : this()
        {
            var creationPackage = SboApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                                  as SAPbouiCOM.FormCreationParams;

            creationPackage.UniqueID = this.GetHashCode().ToString();
            creationPackage.FormType = string.Format("{0}_{1}",
                                                     Application.GetInstance().NameSpace, this.GetType().Name);
            creationPackage.BorderStyle = pBorderStyle;

            FormBind = SboApp.Forms.AddEx(creationPackage) as SAPbouiCOM.Form;
            GetEvents();
            FormSystemManager.Instance().AddFormOpen(this);
        }
Пример #2
0
 public void ShowSystemModel()
 {
     Show();
     FormSystemManager.Instance().FormSystemModal = this;
 }