示例#1
0
        protected BrowserServiceBase(ICremaAppHost cremaAppHost, IEnumerable <IBrowserItem> browserItems)
        {
            this.cremaAppHost         = cremaAppHost;
            this.cremaAppHost.Opened += CremaAppHost_Opened;

            this.browserItems = MenuItemUtility.GetMenuItems(this, browserItems).ToArray();
        }
示例#2
0
        protected PropertyServiceBase(ICremaAppHost cremaAppHost, IEnumerable <IPropertyItem> propertyItems)
        {
            this.cremaAppHost         = cremaAppHost;
            this.cremaAppHost.Opened += CremaAppHost_Opened;
            this.cremaAppHost.Closed += CremaAppHost_Closed;

            this.propertyItems = MenuItemUtility.GetMenuItems(this, propertyItems).ToArray();
        }
示例#3
0
        protected PropertyServiceBase(IEnumerable <IPropertyItem> propertyItems)
        {
            //this.cremaHost = cremaHost;
            //this.cremaHost.Opened += CremaHost_Opened;
            //this.cremaAppHost = cremaAppHost;
            //this.cremaAppHost.Loaded += CremaAppHost_Loaded;
            //this.cremaAppHost.Unloaded += CremaAppHost_Unloaded;

            this.propertyItems = MenuItemUtility.GetMenuItems(this, propertyItems).ToArray();
            this.itemsSource   = this.propertyItems;
        }