Example #1
0
        /// <summary>
        /// Create an Show ManagerForm
        /// </summary>
        /// <param name="EntityType">Type of Entity</param>
        /// <returns></returns>
        public ManagerForm ShowManagerForm(Type EntityType)
        {
            IGwinBaseBLO baseRepository = GwinBaseBLO <BaseEntity> .CreateBLO_Instance(EntityType, GwinApp.Instance.TypeBaseBLO);

            ManagerForm form = new ManagerForm(baseRepository, null, null, (Form)this.MdiForm);

            this.ShwoForm(form);
            return(form);
        }
Example #2
0
        /// <summary>
        /// Create an Show GForm
        /// </summary>
        /// <param name="GFormInstance">GForm instance  </param>
        public void ShwoForm(ManagerForm GFormInstance)
        {
            Cursor.Current     = Cursors.WaitCursor;
            GFormInstance.Icon = GwinApp.Instance.FormApplication.Icon;

            // WindowState
            if (ManagementFormAttribute.WindowState.Maximized == GFormInstance.EntityBLO.ConfigEntity.ManagementForm.Window_State)
            {
                //  GFormInstance.WindowState = FormWindowState.Maximized; Generate Bug with MetroFramewrok
                // We well use Maximized after FormLoad
                GFormInstance.WindowState = FormWindowState.Normal;
            }
            else
            {
                GFormInstance.WindowState = FormWindowState.Normal;
            }

            GFormInstance.ShowDialog();
            Cursor.Current = Cursors.Default;
        }
Example #3
0
        /// <summary>
        /// Create an Show ManagerForm
        /// </summary>
        /// <typeparam name="T">Type of Entity</typeparam>
        /// <param name="EntityBLO">EntityBLO instance</param>
        public void ShowManagerForm <T>(IGwinBaseBLO EntityBLO) where T : BaseEntity
        {
            ManagerForm form = new ManagerForm(EntityBLO, null, null, (Form)this.MdiForm);

            this.ShwoForm(form);
        }
Example #4
0
        /// <summary>
        /// Create an Show ManagerForm
        /// </summary>
        /// <typeparam name="T">Type of Entity</typeparam>
        /// <param name="Service">EntityBLO Instance</param>
        /// <param name="EntriyFormInstance">Entry Form Instance</param>
        public void ShowManagerForm <T>(IGwinBaseBLO Service, BaseEntryForm EntriyFormInstance) where T : BaseEntity
        {
            ManagerForm form = new ManagerForm(Service, EntriyFormInstance, null, (Form)this.MdiForm);

            this.ShwoForm(form);
        }