Exemplo n.º 1
0
        private void Generate_Report(object sender, RoutedEventArgs e)
        {
            app.PrescriptionReportGenerator.Generate(null);
            var alert = new Doctor.Alert();

            alert.Show();
        }
Exemplo n.º 2
0
        private void SaveEdit_Click(object sender, RoutedEventArgs e)
        {
            var alert = new Doctor.Alert();

            alert.Show();
            label0.Visibility = Visibility.Visible;
            label1.Visibility = Visibility.Visible;
            label2.Visibility = Visibility.Visible;
            label3.Visibility = Visibility.Visible;
            label4.Visibility = Visibility.Visible;
            label5.Visibility = Visibility.Visible;
            label6.Visibility = Visibility.Visible;
            label7.Visibility = Visibility.Visible;
            label8.Visibility = Visibility.Visible;

            app.DoctorController.Update(LoggedInDoctor);


            HidePlaceHolders();
            HideTextBoxes();

            saveEdit.Visibility   = Visibility.Collapsed;
            cancleEdit.Visibility = Visibility.Collapsed;
            buttonEdit.Visibility = Visibility.Visible;
        }
Exemplo n.º 3
0
        /*
         * private void NumberValidationTextBox(object sender, TextCompositionEventArgs e)
         * {
         *  Regex regex = new Regex("[^0-9]+");
         *  e.Handled = regex.IsMatch(e.Text);
         * }*/

        private void Alert_Click(object sender, RoutedEventArgs e)
        {
            var alert = new Doctor.Alert();

            alert.Show();
        }