Example #1
0
        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);
        }
Example #2
0
 public MetadataTabAttribute(Utilities.Constants.TabType tab)
 {
     this.Tab = tab;
 }