private void Configure() { _previousParts = new List<List<Coordinate>>(); YieldStyle = YieldStyles.LeftButton | YieldStyles.RightButton; _measureDialog = new MeasureDialog(); HandleMeasureDialogEvents(); Control map = Map as Control; if (map != null) map.MouseLeave += map_MouseLeave; this.Name = "MapFunctionMeasure"; }
private void Configure() { _previousParts = new List <List <Coordinate> >(); YieldStyle = YieldStyles.LeftButton | YieldStyles.RightButton; _measureDialog = new MeasureDialog(); HandleMeasureDialogEvents(); if (Map is Control map) { map.MouseLeave += MapMouseLeave; } Name = "MapFunctionMeasure"; }
/// <summary> /// Forces this function to begin collecting points for building a new shape. /// </summary> protected override void OnActivate() { if (_measureDialog == null || _measureDialog.IsDisposed) { _measureDialog = new MeasureDialog(); HandleMeasureDialogEvents(); } _measureDialog.Show(); if (_standBy == false) { _previousParts = new List <List <Coordinate> >(); _coordinates = new List <Coordinate>(); } _standBy = false; base.OnActivate(); }
private void Configure() { MeasureFuncCulture = new CultureInfo(string.Empty); _previousParts = new List <List <Coordinate> >(); YieldStyle = YieldStyles.LeftButton | YieldStyles.RightButton; _measureDialog = new MeasureDialog(); _measureDialog.MeasureDialogCulture = _measureFuncCulture; HandleMeasureDialogEvents(); Control map = Map as Control; if (map != null) { map.MouseLeave += MapMouseLeave; } Name = "MapFunctionMeasure"; }
/// <summary> /// Forces this function to begin collecting points for building a new shape. /// </summary> protected override void OnActivate() { if (_measureDialog == null || _measureDialog.IsDisposed) { _measureDialog = new MeasureDialog(); HandleMeasureDialogEvents(); } _measureDialog.Show(); if (_standBy == false) { _previousParts = new List<List<Coordinate>>(); _coordinates = new List<Coordinate>(); } _standBy = false; base.OnActivate(); }