示例#1
0
        private void PackIcon_MouseDown(object sender, MouseButtonEventArgs e)
        {
            MedicationList medPage = new MedicationList();

            medPage.Show();
            this.Close();
        }
示例#2
0
        private void exitClick(object sender, RoutedEventArgs e)
        {
            MedicationList medPage = new MedicationList();

            medPage.Show();
            this.Close();
        }
示例#3
0
        private void Back_Click(object sender, RoutedEventArgs e)
        {
            var backWindow = new MedicationList();

            backWindow.Show();
            this.Close();
        }
示例#4
0
        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;
            }
        }
示例#5
0
        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();
        }
示例#6
0
        private void medClick(object sender, RoutedEventArgs e)
        {
            ///Medication list page
            MedicationList medPage = new MedicationList();

            medPage.Show();
            this.Close();
        }
示例#7
0
        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();
        }
示例#8
0
        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();
        }