private void btn_sample_drawing_data_Click(object sender, EventArgs e) { Button b = sender as Button; if (b.Name == btn_cancel.Name) { DrawingType = eHydroDrawing.Cancel; } else if (b.Name == btn_project_drawing.Name) { DrawingType = eHydroDrawing.ProjectDrawing; } else if (b.Name == btn_sample_drawing_data.Name) { DrawingType = eHydroDrawing.SampleDrawing; } this.Close(); }
public frmOpenHydrologyDrawing() { InitializeComponent(); DrawingType = eHydroDrawing.Cancel; }