private void btnAdd_Click(object sender, EventArgs e) { CoordinateSystemDefinition cs = CoordinateSystemDialog.NewCoordinateSystem(); if (cs != null) { _presenter.AddNew(cs); } }
private void btnEdit_Click(object sender, EventArgs e) { CoordinateSystemDefinition cs = this.SelectedCS; if (cs != null) { string oldName = cs.Name; if (CoordinateSystemDialog.EditCoordinateSystem(cs)) { _presenter.Update(oldName, cs); _presenter.Refresh(); } } }