Пример #1
0
 public UtilityTemplate(IUtilityDefinition definition, Image largeImage, Image mediumImage, Image smallImage)
 {
     Definition = definition;
     LargeImage = largeImage;
     MediumImage = mediumImage;
     SmallImage = smallImage;
 }
Пример #2
0
        public IUtilityView CreateView(IUtilityDefinition definition)
        {
            throw new NotImplementedException("The method or operation is not implemented.");//TODO
            // just create the view,
            if (definition != null)
            {
                throw new NotImplementedException("Utility objects are not yet implemented");
                //BasicGoCommentElement el = new BasicGoCommentElement();
                //IUtilityTemplate template = null;

                //using (IUtilityTemplateProvider prov = ServiceProvider.ContainerProvider.UtilityProviderContainer.Resolve<IUtilityTemplateProvider>())
                //{
                //    template = prov.GetTemplate(definition.UtilityTypeId);
                //}

                //el.Caption = definition.Caption;
                //el.ToolTipText = definition.UtilityDescription;
                //SetImages(el, template);

                //el.InitializeDisplay();

                //return el;
            }

            return null;
        }
Пример #3
0
 public UtilityTemplate(IUtilityDefinition definition, Image largeImage, Image mediumImage, Image mediumImageComplete, Image mediumImageError, Image smallImage, Icon mediumIcon, Icon smallIcon)
 {
     Definition = definition;
     LargeImage = largeImage;
     MediumImage = mediumImage;
     MediumImageComplete = mediumImageComplete;
     MediumImageError = mediumImageError;
     SmallImage = smallImage;
     MediumIcon = mediumIcon;
     SmallIcon = smallIcon;
 }
Пример #4
0
 public AddUtilityInstanceEventArgs(IUtilityDefinition instanceDefType, PointF location)
 {
     Definition = instanceDefType;
     Location = location;
 }
Пример #5
0
 public AddUtilityInstanceEventArgs(IUtilityDefinition instanceDefType)
 {
     Definition = instanceDefType;
 }
Пример #6
0
 public UtilityTemplate(IUtilityDefinition definition)
 {
     Definition = definition;
 }