private void btnModify_Click(object sender, EventArgs e) { frmSpatialRefrence refrence = new frmSpatialRefrence { SpatialRefrence = this.ispatialReference_0 }; if (refrence.ShowDialog() == DialogResult.OK) { this.ispatialReference_0 = refrence.SpatialRefrence; this.method_3(); this.method_1(this.ispatialReference_0); this.method_0(); } refrence.Dispose(); }
private void btnModify_Click(object sender, EventArgs e) { if (!(this.ispatialReference_0 is IUnknownCoordinateSystem)) { frmSpatialRefrence refrence = new frmSpatialRefrence { SpatialRefrence = this.ispatialReference_0 }; if (refrence.ShowDialog() == DialogResult.OK) { this.ispatialReference_0 = refrence.SpatialRefrence; this.textBoxName.Text = this.ispatialReference_0.Name; this.textBoxName.Tag = this.ispatialReference_0; this.method_0(); } refrence.Dispose(); } }