Пример #1
0
 void _control_MouseUp(object sender, MouseEventArgs e)
 {
     _mousedown       = false;
     _mousedownPoint  = new Point(-1, -1);
     _lastmouseMovePt = new Point(-1, -1);
     _movingentity    = null;
     _control.Refresh();
     //throw new Exception("The method or operation is not implemented.");
 }
Пример #2
0
 void _control_MouseDown(object sender, MouseEventArgs e)
 {
     _mousedownPoint = new Point(e.X, e.Y);
     _mousedown      = true;
     foreach (IMM_Entity entity in _entities)
     {
         if (entity.InArea(_mousedownPoint))
         {
             _movingentity = entity;
             return;
         }
     }
     _movingentity = null;
     _control.Refresh();
 }
Пример #3
0
 public void Add(IMM_Entity entitiy)
 {
     _entities.Add(entitiy);
     _control.Refresh();
 }
Пример #4
0
 public MM_LineWithText(IMM_Entity entity1, IMM_Entity entity2, string text)
     : base(entity1, entity2)
 {
     _text = text;
 }
Пример #5
0
 public IMM_Link(IMM_Entity entity1, IMM_Entity entity2)
 {
     _entity1 = entity1;
     _entity2 = entity2;
 }
Пример #6
0
 public MM_Arc(IMM_Entity entity1, IMM_Entity entity2) : base(entity1, entity2)
 {
 }
Пример #7
0
 public MM_Line(IMM_Entity entity1, IMM_Entity entity2) : base(entity1, entity2)
 {
 }