public AppointmentsViewModel(DoctorWindow parent)
 {
     this.parent              = parent;
     NewAppointmentCommand    = new MyICommand(Add_Click);
     EditAppointmentCommand   = new MyICommand(Edit_Click);
     DeleteAppointmentCommand = new MyICommand(Delete_Click);
     DoubleClickComand        = new MyICommand(Double_Click);
     _statusOfAppointmentController.CheckMissedAppointments();
     UpdateTable();
 }
        public TutorialPageViewModel(DoctorWindow parent)
        {
            this.parent      = parent;
            StartStopCommand = new MyICommand(Start_Stop_Click);
            string projectPath = Path.GetDirectoryName(Path.GetDirectoryName(System.IO.Directory.GetCurrentDirectory()));

            mediaElementObject.Source         = new Uri(projectPath + "\\Images\\tutorial.mp4", UriKind.Absolute);
            mediaElementObject.LoadedBehavior = MediaState.Manual;
            mediaElementObject.Play();
            buttonText = "Pauziraj";
        }
Exemple #3
0
 public DoctorWindowViewModel(Doctor doctor, DoctorWindow parent)
 {
     this.Doctor         = doctor;
     this.parent         = parent;
     parent.Title        = doctor.Name + " " + doctor.Surname;
     parent.Main.Content = ProfilePage.GetPage(parent);
     PatientsCommand     = new MyICommand(Patients_Click);
     AppointmentsCommand = new MyICommand(Appointments_Click);
     MedicineCommand     = new MyICommand(Medicine_Click);
     TutorialCommand     = new MyICommand(Tutorial_Click);
     ProfileCommand      = new MyICommand(Profile_Click);
     LogoutCommand       = new MyICommand(Logout_Click);
     FeedbackCommand     = new MyICommand(Feedback_Click);
 }
Exemple #4
0
 public DoctorPatientsViewModel(DoctorWindow parent)
 {
     this.parent          = parent;
     MedicalRecordCommand = new MyICommand(Medical_Record_Click);
     UpdateTable();
 }
Exemple #5
0
 public FeedbackViewModel(String username)
 {
     this.Username = username;
     GenerateTypes();
     ConfirmCommand = new MyICommand(Confirm_Click);
 }