示例#1
0
        public EditPatientWindow(Patient patient, PatientsPage parent)
        {
            this._parent    = parent;
            _initialPatient = patient;
            InitializeComponent();
            this.DataContext = this;

            InitializeStartingValuesForComponents(patient);
        }
示例#2
0
 public static PatientsPage GetPage(SecretaryMain parent)
 {
     if (_instance == null)
     {
         _instance = new PatientsPage();
     }
     else
     {
         _instance.UpdateTable();
     }
     parent.Title.Content = "Pacijenti";
     return(_instance);
 }
 private void Patients_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     Main.Content = PatientsPage.GetPage(this);
 }
 private void PatientsButton_Click(object sender, RoutedEventArgs e)
 {
     Main.Content = PatientsPage.GetPage(this);
 }
示例#5
0
 public NewPatientWindow(PatientsPage parent)
 {
     InitializeComponent();
     this.DataContext = new NewPatientViewModel(this);
 }
示例#6
0
 public DetailedWindow(PatientsPage parent, string username)
 {
     InitializeComponent();
     DataContext = new DetailedViewModel(this, username);
 }