Ejemplo n.º 1
0
 public My_Line(EntityDrawningCore core) : base(core)
 {
     draw       = Draw;
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
Ejemplo n.º 2
0
 public TextProperties(My_Text figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
Ejemplo n.º 3
0
 public BrushProperies(My_Figure figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.brush  = figure.brush;
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
Ejemplo n.º 4
0
 public My_RectangleFigure(EntityDrawningCore core)
     : base(core)
 {
     rect       = new Rectangle();
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
Ejemplo n.º 5
0
 public My_History(EntityDrawningCore core)
 {
     this.core = core;
     history   = new List <My_Picture>();
     current   = core.Picture.Clone();
     savedItem = current;
     history.Add(current);
 }
Ejemplo n.º 6
0
 public PenProperties(My_Figure figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.pen    = figure.pen;
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
Ejemplo n.º 7
0
        public My_RectangleFigure(EntityDrawningCore core, Rectangle rect)
            : base(core)
        {
            this.rect = rect;

            mouse_move = MouseMove;
            mouse_down = MouseDown;
            mouse_up   = MouseUp;
        }
Ejemplo n.º 8
0
 public My_EllipsePart(EntityDrawningCore core)
     : base(core)
 {
     draw       = Draw;
     rect       = new Rectangle();
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 10
0
        public My_MultypointFigure(EntityDrawningCore core)
            : base(core)
        {
            points = new List <My_Point>();

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