private void OnFormClosing(object sender, FormClosingEventArgs e) { _instance = null; _mapControl.MouseMoveEvent -= OnMapMouseMove; _mapControl = null; global.SaveFormSettings(this); }
public static Grid25CoordinateForm GetInstance(AxMap mapControl, Grid25MajorGrid majorGrid) { if (_instance == null) { _instance = new Grid25CoordinateForm(mapControl, majorGrid); } return(_instance); }