Beispiel #1
0
 public My_Line(EntityDrawningCore core) : base(core)
 {
     draw       = Draw;
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
Beispiel #2
0
 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();
 }
Beispiel #4
0
 public My_RectangleFigure(EntityDrawningCore core)
     : base(core)
 {
     rect       = new Rectangle();
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
Beispiel #5
0
 public My_History(EntityDrawningCore core)
 {
     this.core = core;
     history   = new List <My_Picture>();
     current   = core.Picture.Clone();
     savedItem = current;
     history.Add(current);
 }
Beispiel #6
0
 public PenProperties(My_Figure figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.pen    = figure.pen;
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
Beispiel #7
0
        public My_RectangleFigure(EntityDrawningCore core, Rectangle rect)
            : base(core)
        {
            this.rect = rect;

            mouse_move = MouseMove;
            mouse_down = MouseDown;
            mouse_up   = MouseUp;
        }
Beispiel #8
0
 public My_EllipsePart(EntityDrawningCore core)
     : base(core)
 {
     draw       = Draw;
     rect       = new Rectangle();
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
Beispiel #9
0
 public My_EllipsePart(EntityDrawningCore core, Rectangle rect)
     : base(core)
 {
     draw       = Draw;
     this.rect  = rect;
     mouse_move = MouseMove;
     mouse_down = MouseDown;
     mouse_up   = MouseUp;
 }
Beispiel #10
0
        public My_MultypointFigure(EntityDrawningCore core)
            : base(core)
        {
            points = new List <My_Point>();

            mouse_move = MouseMoveCreateNew;
            mouse_down = MouseDownCreateNew;
            mouse_up   = MouseUpCreateNew;
        }
Beispiel #11
0
        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;
        }
Beispiel #12
0
 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;
 }
Beispiel #13
0
        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;
        }
Beispiel #14
0
        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;
        }
Beispiel #15
0
        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;
        }
Beispiel #16
0
 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;
 }
Beispiel #17
0
        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;
        }
Beispiel #18
0
        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;
        }
Beispiel #19
0
 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;
 }
Beispiel #20
0
        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;
        }
Beispiel #21
0
 public My_Ellipse(EntityDrawningCore core)
     : base(core)
 {
     draw = Draw;
 }
Beispiel #22
0
 public My_SplineBezier(EntityDrawningCore core)
     : base(core)
 {
     draw     = DrawCreateNew;
     mouse_up = MouseUpCreateNew;
 }
Beispiel #23
0
 public My_Picture(EntityDrawningCore core)
 {
     figureList = new List <My_Figure>();
     this.core  = core;
 }
Beispiel #24
0
 public My_Polyline(EntityDrawningCore core)
     : base(core)
 {
     draw = DrawCreateNew;
 }
Beispiel #25
0
 public My_Rectangle(EntityDrawningCore core)
     : base(core)
 {
     draw = Draw;
 }
Beispiel #26
0
 public My_Image(EntityDrawningCore core, Rectangle rect, Bitmap bitmap)
     : base(core, rect)
 {
     this.bitmap = bitmap;
     draw        = Draw;
 }
Beispiel #27
0
 public My_Arc(EntityDrawningCore core)
     : base(core)
 {
     draw = Draw;
 }
Beispiel #28
0
 public My_Ellipse(EntityDrawningCore core, Rectangle rect)
     : base(core, rect)
 {
     draw = Draw;
 }
Beispiel #29
0
 public GroupSelector(EntityDrawningCore core)
 {
     this.core = core;
     rect      = new Rectangle(new Point(0, 0), new Size(0, 0));
 }
Beispiel #30
0
 public My_Curve(EntityDrawningCore core)
     : base(core)
 {
     draw     = DrawCreateNew;
     mouse_up = MouseUpCreateNew;
 }