Пример #1
0
        public static RemoteDefinition Create(string path, HopsComponent parentComponent)
        {
            var rc = new RemoteDefinition(path, parentComponent);

            RemoteDefinitionCache.Add(rc);
            return(rc);
        }
            void RenderHop(System.Drawing.Graphics graphics, int alpha, System.Drawing.PointF anchor)
            {
                var boxHops = new System.Drawing.RectangleF(anchor.X - 16, anchor.Y - 8, 16, 16);
                var bmp     = HopsComponent.Hops48Icon();

                graphics.DrawImage(bmp, boxHops);
            }
Пример #3
0
 public SolveDataList(int serialNumber, HopsComponent component, RemoteDefinition remoteDefinition, bool useMemoryCache)
 {
     _solveSerialNumber         = serialNumber;
     _parentComponent           = component;
     _useMemoryCacheWhenSolving = useMemoryCache;
     _remoteDefinition          = remoteDefinition;
 }
Пример #4
0
 public void Dispose()
 {
     _parentComponent = null;
     RemoteDefinitionCache.Remove(this);
 }
Пример #5
0
 private RemoteDefinition(string path, HopsComponent parentComponent)
 {
     _parentComponent = parentComponent;
     _path            = path;
 }
 public ComponentAttributes(HopsComponent parentComponent) : base(parentComponent)
 {
     _component = parentComponent;
 }