Example #1
0
 private void form_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         if (IsCurrentShapeTypeRegion && ValidRegions.Length > 0)
         {
             form.UpdateRegionPath();
             form.Close(RegionResult.Region);
         }
         else if (CurrentShape != null && !IsCreating)
         {
             CurrentShape.OnDoubleClicked();
         }
     }
 }