/// <summary> /// Saves layer name from user input /// </summary> private void txtComments_Validated(object sender, EventArgs e) { MapWinGIS.Map map = _legend.Map; if (map != null) { map.set_LayerDescription(_layerHandle, txtComments.Text); MarkStateChanged(); } }
/// <summary> /// Saves layer name from user input /// </summary> private void txtComments_KeyPress(object sender, KeyPressEventArgs e) { MapWinGIS.Map map = _legend.Map; if (map != null) { if (e.KeyChar == (char)Keys.Enter) { map.set_LayerDescription(_layerHandle, txtComments.Text); MarkStateChanged(); } } }