private void buttonAddRectangle_Click(object sender, EventArgs e)
        {
            AqRectangleAffine rectangle = new AqRectangleAffine();

            rectangle.LeftTopPointX = 120;
            rectangle.LeftTopPointY = 120;
            rectangle.RightBottomX  = 300;
            rectangle.RightBottomY  = 300;
            aqDisplay1.InteractiveGraphics.Add(rectangle, "AAA 22222", true);
            aqDisplay1.Update();
        }
Beispiel #2
0
 private void buttonAddRectangleRegion_Click(object sender, EventArgs e)
 {
     try
     {
         aqDisplayCreateModel.InteractiveGraphics.Clear();
         AqRectangleAffine rectangle = new AqRectangleAffine();
         rectangle.LeftTopPointX = 120;
         rectangle.LeftTopPointY = 120;
         rectangle.RightBottomX  = 300;
         rectangle.RightBottomY  = 300;
         aqDisplayCreateModel.InteractiveGraphics.Add(rectangle, "AAA 22222", true);
         aqDisplayCreateModel.Update();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }