/// <summary> /// Shows lab tests dialog as order view /// </summary> private void orderTestButton_OnClick(object sender, EventArgs e) { try { this.labTestsDataGrid.ClearSelection(); var labTestPage = new LabTestPage(this) { IsOrderingTest = true }; labTestPage.ShowDialog(); this.refreshLabTestsGrid(); } catch (Exception err) { ExceptionMessage.ShowError(err); } }
/// <summary> /// Shows lab test dialog as manage view /// </summary> private void viewLabTest_OnClick(object sender, EventArgs e) { try { if (this.SelectedLabTest != null) { var labTestPage = new LabTestPage(this) { IsManagingTest = true }; labTestPage.ShowDialog(); this.refreshLabTestsGrid(); } } catch (Exception err) { ExceptionMessage.ShowError(err); } }