public override void Bind(object entity) { EntityBindingSource.DataSource = entity; customerAddressBindingSource.DataMember = "BillTo_Address"; quoteLineItemsBindingSource.DataMember = "QuoteLineItems"; ForeceTabGroupInitialize(); UserDataPersistenceService.LoadUserData(this); }
public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType) { //// Implement ISmartPartInfoProvider in the containing smart part. Required in order for contained smart part infos to work. //Microsoft.Practices.CompositeUI.SmartParts.ISmartPartInfoProvider ensureProvider = this; //return this.infoProvider.GetSmartPartInfo(smartPartInfoType); ribbon.RibbonStyle = RibbonControlStyle.Office2010; if (EntityName != "") { string detailFormat = Properties.Resources.ResourceManager.GetString("EntityDetailsCaptionFormat"); string entityCaption = Properties.Resources.ResourceManager.GetString(EntityName); ribbon.ApplicationCaption = "Katrin"; ribbon.ApplicationDocumentCaption = string.Format(detailFormat, entityCaption); } ribbonWindowSmartPartInfo.Icon = Properties.Resources.ri_Katrin; UserDataPersistenceService.LoadUserData(this); return(this.ribbonWindowSmartPartInfo); }
public virtual void Bind(object entity) { EntityBindingSource.DataSource = entity; UserDataPersistenceService.LoadUserData(this); }