public DocumentBase(string formname) { Name = formname; ConnectionString = GlobalInfo.DBaseInfo.dbManager.DB_ConnectionString; this.providerType = GlobalInfo.LoginInfo.ProviderType; controlBinder = new ControlBinder(); controlFinder = new ControlFinder(this); messageList = new List <MessageData>(); InitializeComponent(); aopAddons.Visible = false; aopAddons.StyleManager = GlobalInfo.StyleManager; }
public DocumentForm(string formname) { Name = formname; InitializeComponent(); if (DesignMode || LicenseManager.UsageMode == LicenseUsageMode.Designtime) { return; } this.providerType = GlobalInfo.LoginInfo.ProviderType; controlBinder = new ControlBinder(); controlFinder = new ControlFinder(this); messageList = new List <MessageData>(); aopAddons.Visible = false; aopAddons.StyleManager = GlobalInfo.StyleManager; }