コード例 #1
0
        public static RemoteDefinition Create(string path, HopsComponent parentComponent)
        {
            var rc = new RemoteDefinition(path, parentComponent);

            RemoteDefinitionCache.Add(rc);
            return(rc);
        }
コード例 #2
0
            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 void Dispose()
 {
     _parentComponent = null;
     RemoteDefinitionCache.Remove(this);
 }
コード例 #4
0
 private RemoteDefinition(string path, HopsComponent parentComponent)
 {
     _parentComponent = parentComponent;
     _path            = path;
     Guid.TryParse(path, out _pathAsComponentGuid);
 }
コード例 #5
0
 public ComponentAttributes(HopsComponent parentComponent) : base(parentComponent)
 {
     _component = parentComponent;
 }
コード例 #6
0
 private RemoteDefinition(string path, HopsComponent parentComponent)
 {
     _parentComponent = parentComponent;
     _path            = path;
 }