private void button2_Click(object sender, EventArgs e) { ReportDemo reportDemo = (ReportDemo)listBox1.SelectedItem; reportDemo.h.Invoke(); report.ShowGrid = checkBoxShowGrid.Checked; report.GeneratePDF($"c:\\temp\\Report {DateTime.Now:yyyyMMddhhmmss}.pdf"); }
private void button1_Click(object sender, EventArgs e) { DialogResult res = printDialog1.ShowDialog(); if (res != DialogResult.OK) { return; } ReportDemo reportDemo = (ReportDemo)listBox1.SelectedItem; reportDemo.h.Invoke(); report.ShowGrid = checkBoxShowGrid.Checked; report.Print(printDialog1.PrinterSettings.PrinterName); }
public void ClickNextButton() { ReportDemo.ClickNext(_driver); }
public void SelectExceptionReason() { ReportDemo.ClickExceptionReasonDropArrow(_driver); ReportDemo.ClickFirstExceptionReason(_driver); }
public void ClickSendToException() { ReportDemo.ClickSendExceptionReason(_driver); }
public void ClickException() { ReportDemo.ClickException(_driver); }
public void AddCSSNote() { ReportDemo.ClickAddCSSNote(_driver); ReportDemo.TypeNote(_driver, "Hello world"); ReportDemo.ClickAddNote_popup(_driver); }
public void SelectFacilityLocation() { ReportDemo.ClickFacilityLocationDropDown(_driver); ReportDemo.ClickFirstFacilityLoc(_driver); }
public void ClickReturnToQueue() { ReportDemo.ClickReturntoQueue(_driver); }
public void VerifyDataPopulatesFacilityLocationDropdown() { ReportDemo.VerifyFacilityLocationsExist(_driver); }
public void SelectFirstTableRowForPotentialCases() { string text = (string)DataStoreFactory.ScenarioDataStore.Get("patient"); ReportDemo.ClickFirstPatientCase(_driver, text); }
public void ClickSearchOnReportDemo() { ReportDemo.ClickSearchPatient(_driver); }
public void EnterIntoPatientNameField(string patient) { ReportDemo.EnterPatientName(_driver, patient); DataStoreFactory.ScenarioDataStore.Add("patient", patient); }