コード例 #1
0
ファイル: GwsFactory.cs プロジェクト: MananAdhvaryu/GWS
 public void Dispose()
 {
     xAxis = null;
     yAxis = null;
     disabledPen?.Dispose();
     disabledPen = null;
     dfEventInfo = null;
     dfRenderer?.Dispose();
     dfRenderer  = null;
     dfLine      = null;
     dfRect      = null;
     dfAreaF     = null;
     dfArea      = null;
     dfEventArgs = null;
     sysFont     = null;
     imageProcessor?.Dispose();
     imageProcessor = null;
     IsClosing      = true;
     lock (Sync)
     {
         foreach (var dict in Objects.Values)
         {
             foreach (var item in dict.Values.OfType <IDisposable>())
             {
                 item.Dispose();
             }
             dict.Clear();
         }
         Objects.Clear();
         newIDs.Clear();
     }
     Dispose2();
 }
コード例 #2
0
ファイル: RectF.cs プロジェクト: MananAdhvaryu/GWS
 public RectF(IBoxF area)
 {
     X      = area.X;
     Y      = area.Y;
     Width  = area.Width;
     Height = area.Height;
 }
コード例 #3
0
 public static IBoxF newBoxF(this IFactory factory, IBoxF area) =>
 factory.newBoxF(area?.X ?? 0, area?.Y ?? 0, area?.Width ?? 0, area?.Height ?? 0);
コード例 #4
0
ファイル: Rhombus.cs プロジェクト: MananAdhvaryu/GWS
 public Rhombus(IBoxF rc, Angle angle, float? deviation = null) :
     this(rc.X, rc.Y, rc.Width, rc.Height, angle, deviation)
 { }