Esempio n. 1
0
 public FeedbackPage(SecretaryMain parent, Secretary currentSecretary)
 {
     _currentSecretary = currentSecretary;
     _parent           = parent;
     InitializeComponent();
     this.DataContext = new FeedbackViewModel(_currentSecretary.Username);
 }
 public static ReportsPage GetPage(SecretaryMain parent)
 {
     if (_instance == null)
     {
         _instance = new ReportsPage();
     }
     parent.Title.Content = "Izveštaj";
     return(_instance);
 }
 public static AccountPage GetPage(SecretaryMain parent, Secretary secretary)
 {
     if (_instance == null)
     {
         _instance = new AccountPage(secretary);
     }
     parent.Title.Content = "Nalog";
     return(_instance);
 }
        private StartingPage(Secretary currentSecretary, SecretaryMain parent)
        {
            this._parent           = parent;
            this._currentSecretary = currentSecretary;

            InitializeComponent();
            this.DataContext = this;
            UpdateTable();
        }
Esempio n. 5
0
 public static PatientsPage GetPage(SecretaryMain parent)
 {
     if (_instance == null)
     {
         _instance = new PatientsPage();
     }
     else
     {
         _instance.UpdateTable();
     }
     parent.Title.Content = "Pacijenti";
     return(_instance);
 }
Esempio n. 6
0
 public static DoctorsPage GetPage(SecretaryMain parent)
 {
     if (_instance == null)
     {
         _instance = new DoctorsPage();
     }
     else
     {
         _instance.UpdateTable();
     }
     parent.Title.Content = "Doktori";
     return(_instance);
 }
 public static StartingPage GetPage(Secretary currentSecretary, SecretaryMain parent)
 {
     if (_instance == null)
     {
         _instance = new StartingPage(currentSecretary, parent);
     }
     else
     {
         _instance.UpdateTable();
     }
     parent.Title.Content = "Početna";
     return(_instance);
 }
 public static AppointmentsPage GetPage(SecretaryMain parent)
 {
     parent.Title.Content = "Termini";
     return(new AppointmentsPage());
 }
Esempio n. 9
0
 public static FeedbackPage GetPage(SecretaryMain parent, Secretary currentSecretary)
 {
     parent.Title.Content = "Feedback";
     return(new FeedbackPage(parent, currentSecretary));
 }