private void documents_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } Appointment appt = ((Appointment)(fastDataListView1.SelectedObject)); int apptid = appt.apptID; NewHtmlDocumentForm nhdf = new NewHtmlDocumentForm(); nhdf.routine = "screening"; nhdf.ShowDialog(); //PatientCommunicationView pcv = new PatientCommunicationView(); //PushViewStack(pcv, WeifenLuo.WinFormsUI.Docking.DockState.Document); //pcv.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { NewHtmlDocumentForm nhdf = new NewHtmlDocumentForm(); if (string.IsNullOrEmpty(routineName) == false) nhdf.routine = routineName; nhdf.ShowDialog(); }