revert to VB and update to new project file format

This commit is contained in:
schedpas
2020-09-25 09:04:15 +02:00
parent 04869b2814
commit 9feaf658be
313 changed files with 9895 additions and 17566 deletions

View File

@@ -1,86 +0,0 @@
using System;
using global::System.Drawing;
namespace Pilz.UI
{
public class PaintingObjectPaintEventArgs : EventArgs
{
/// <summary>
/// The Painting Object to draw.
/// </summary>
/// <returns></returns>
public PaintingObject PaintingObject { get; private set; }
/// <summary>
/// The current offset of the page on the screen.
/// </summary>
/// <returns></returns>
public PointF Offset { get; private set; }
/// <summary>
/// The Grpahics from the parent PaintingControl.
/// </summary>
/// <returns></returns>
public Graphics Graphics { get; private set; }
/// <summary>
/// The position of the PaintingObject on Screen.
/// </summary>
/// <returns></returns>
public PointF Location
{
get
{
return new PointF(X, Y);
}
}
/// <summary>
/// The X position of the PaintingObject on Screen.
/// </summary>
/// <returns></returns>
public float X
{
get
{
return PaintingObject.X - Offset.X;
}
}
/// <summary>
/// The Y position of the PaintingObject on Screen.
/// </summary>
/// <returns></returns>
public float Y
{
get
{
return PaintingObject.Y - Offset.Y;
}
}
/// <summary>
/// The rectangle of the PaintingObject on Screen.
/// </summary>
/// <returns></returns>
public RectangleF Rectangle
{
get
{
return new RectangleF(X, Y, PaintingObject.Width, PaintingObject.Height);
}
}
internal PaintingObjectPaintEventArgs(PaintingObject obj, Graphics g) : this(obj, g, obj.Parent.Offset)
{
}
internal PaintingObjectPaintEventArgs(PaintingObject obj, Graphics g, PointF offset)
{
PaintingObject = obj;
Offset = offset;
Graphics = g;
}
}
}