private void PackIcon_MouseDown(object sender, MouseButtonEventArgs e) { MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); }
private void exitClick(object sender, RoutedEventArgs e) { MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); }
private void Back_Click(object sender, RoutedEventArgs e) { var backWindow = new MedicationList(); backWindow.Show(); this.Close(); }
private void logOutClick(object sender, RoutedEventArgs e) { // Configure the message box to be displayed string messageBoxText = "Are you sure you want to quit?"; string caption = ""; MessageBoxButton button = MessageBoxButton.YesNo; // Display message box MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button); // Process message box results switch (result) { case MessageBoxResult.Yes: // User pressed Yes button Login login = new Login(); login.Show(); this.Close(); break; case MessageBoxResult.No: // User pressed No button MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); break; } }
private void Confirm_Report_Form_Click(object sender, RoutedEventArgs e) { using (PdfDocument document = new PdfDocument()) { //Add a page to the document PdfPage page = document.Pages.Add(); //Create PDF graphics for a page PdfGraphics graphics = page.Graphics; //Set the standard font PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); //Draw the text graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); //Save the document document.Save("Output.pdf"); } MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); }
private void medClick(object sender, RoutedEventArgs e) { ///Medication list page MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); }
private void submitClick(object sender, RoutedEventArgs e) { DateTime start = (DateTime)date.SelectedDate; String interventionType = (String)interventionComboBox.SelectedItem; Doctor doctor = (Doctor)doctorComboBox.SelectedItem; String doctorName = doctor.FirstName; //prilikom zakazivanja pregleda treba proslediti i id pacijenta int patientId = Appointments.interv.PatientId; Intervention createdIntervention = interventionController.CreateIntervention(start, doctorName, interventionType, patientId); Intervention scheduledIntervention = interventionController.ScheduleIntervention(createdIntervention); ///Medication list page MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); }
private void sendClick(object sender, RoutedEventArgs e) { String text = TextArea.Text; Feedback createdFeedback = feedbackController.CreateFeedback(text); Boolean isFeedbackAdded = feedbackController.AddFeedback(createdFeedback); // Configure the message box to be displayed string messageBoxText = "Thank you for sharing your thoughts with us! :)"; string caption = ""; MessageBoxButton button = MessageBoxButton.OK; // Display message box MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button); MedicationList medPage = new MedicationList(); medPage.Show(); this.Close(); }