public My_Line(EntityDrawningCore core) : base(core) { draw = Draw; mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; }
public TextProperties(My_Text figure, EntityDrawningCore core) { InitializeComponent(); this.figure = figure; this.core = core; LoadData(); }
public BrushProperies(My_Figure figure, EntityDrawningCore core) { InitializeComponent(); this.brush = figure.brush; this.figure = figure; this.core = core; LoadData(); }
public My_RectangleFigure(EntityDrawningCore core) : base(core) { rect = new Rectangle(); mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; }
public My_History(EntityDrawningCore core) { this.core = core; history = new List <My_Picture>(); current = core.Picture.Clone(); savedItem = current; history.Add(current); }
public PenProperties(My_Figure figure, EntityDrawningCore core) { InitializeComponent(); this.pen = figure.pen; this.figure = figure; this.core = core; LoadData(); }
public My_RectangleFigure(EntityDrawningCore core, Rectangle rect) : base(core) { this.rect = rect; mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; }
public My_EllipsePart(EntityDrawningCore core) : base(core) { draw = Draw; rect = new Rectangle(); mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; }
public My_EllipsePart(EntityDrawningCore core, Rectangle rect) : base(core) { draw = Draw; this.rect = rect; mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; }
public My_MultypointFigure(EntityDrawningCore core) : base(core) { points = new List <My_Point>(); mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; }
public My_FileAnalyzer(string filename, EntityDrawningCore core) { this.filename = filename; this.core = core; figures = new List <My_Figure>(); Parser parser = new Parser(); parser.Parsing(filename); entities = parser.entities; }
public EntityDrawningForm() { InitializeComponent(); core = new EntityDrawningCore(this); this.MouseDown += core.MouseDown; this.MouseMove += core.MouseMove; this.MouseUp += core.MouseUp; this.Paint += core.Draw; this.KeyDown += core.KeyDown; this.KeyUp += core.KeyUp; }
public My_Line(EntityDrawningCore core, Point point1, Point point2) : base(core) { this.point1 = point1; this.point2 = point2; draw = Draw; mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; }
public My_Path(EntityDrawningCore core) : base(core) { this.Figures = new List <My_Figure>(); zIndex = -1; mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; draw = Draw; }
public My_Text(EntityDrawningCore core) : base(core) { Text = "Hello World"; Font = new Font("Times New Roman", 10); brush = new My_SolidBrush(Color.Black); pen = new My_Pen(Color.Empty); draw = Draw; mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; }
public PaperProperties(EntityDrawningCore core, My_Paper paper) { InitializeComponent(); this.core = core; this.paper = paper; colorDialogBG.Color = paper.BGColor; colorDialogLine.Color = paper.LineColor; colorDialogSelectColor.Color = EntityDrawningCore.SelectedColor; labelBGColor.Text = paper.BGColor.ToKnownColor().ToString(); labelLineColor.Text = paper.LineColor.ToKnownColor().ToString(); labelSelectColor.Text = EntityDrawningCore.SelectedColor.ToKnownColor().ToString(); checkBoxShowBorder.Checked = paper.DrawBorder; checkBoxShowGrid.Checked = paper.DrawGrig; }
public My_Text(EntityDrawningCore core, string Text, Point pt) : base(core) { this.core = core; this.Text = Text; Font = new Font("Times New Roman", 10); brush = new My_SolidBrush(Color.Black); center_point = pt; pen = new My_Pen(Color.Empty); draw = Draw; mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; }
public My_Port(EntityDrawningCore core, PortType type, bool Inverse) : base(core) { this.Inverse = Inverse; this.type = type; Name = "New_Port"; TextLabel = new My_Text(core, Name, new Point(0, 0)); TextLabel.Owner = this; vhdPort = new vhdPort(); draw = Draw; mouse_move = MouseMoveCreateNew; mouse_down = MouseDownCreateNew; mouse_up = MouseUpCreateNew; }
public My_Paper(EntityDrawningCore core) { this.core = core; if (core.Form != null) { this.form = core.Form; this.BGColor = form.BackColor; } else { this.BGColor = Color.Black; } this.scale = 1; DrawBorder = true; DrawGrig = true; LineColor = Color.Green; }
public My_Port(EntityDrawningCore core, String Name, PortType type, bool Inverse, vhdPort vhdPort, Point point1, Point point2) : base(core) { this.Inverse = Inverse; this.type = type; this.Name = Name; this.point1 = point1; this.point2 = point2; this.vhdPort = vhdPort; TextLabel = new My_Text(core, Name, new Point(0, 0)); TextLabel.Owner = this; draw = Draw; mouse_move = MouseMove; mouse_down = MouseDown; mouse_up = MouseUp; }
public My_Ellipse(EntityDrawningCore core) : base(core) { draw = Draw; }
public My_SplineBezier(EntityDrawningCore core) : base(core) { draw = DrawCreateNew; mouse_up = MouseUpCreateNew; }
public My_Picture(EntityDrawningCore core) { figureList = new List <My_Figure>(); this.core = core; }
public My_Polyline(EntityDrawningCore core) : base(core) { draw = DrawCreateNew; }
public My_Rectangle(EntityDrawningCore core) : base(core) { draw = Draw; }
public My_Image(EntityDrawningCore core, Rectangle rect, Bitmap bitmap) : base(core, rect) { this.bitmap = bitmap; draw = Draw; }
public My_Arc(EntityDrawningCore core) : base(core) { draw = Draw; }
public My_Ellipse(EntityDrawningCore core, Rectangle rect) : base(core, rect) { draw = Draw; }
public GroupSelector(EntityDrawningCore core) { this.core = core; rect = new Rectangle(new Point(0, 0), new Size(0, 0)); }
public My_Curve(EntityDrawningCore core) : base(core) { draw = DrawCreateNew; mouse_up = MouseUpCreateNew; }