public UserControl GetView(Utilities.Constants.TabType view) { var q = _container.GetExports <UserControl, Utilities.Extensions.ITab>() .Where(i => i.Metadata.Tab == view); var res = q.SingleOrDefault(); if (res != null) { return(res.Value); } return(null); }
public MetadataTabAttribute(Utilities.Constants.TabType tab) { this.Tab = tab; }