public void CreateNewAnalysisCaseTruckUI() { if (!CanCreateAnalysisCaseTruck) { return; } using (var form = new FormNewAnalysisCaseTruck(this, null)) if (DialogResult.OK == form.ShowDialog()) { } }
public AnalysisCaseTruck CreateNewAnalysisCaseTruckUI() { if (!CanCreateAnalysisCaseTruck) { return(null); } using (FormNewAnalysisCaseTruck form = new FormNewAnalysisCaseTruck(this, null)) if (DialogResult.OK == form.ShowDialog()) { } return(null); }