Пример #1
0
 public FeedbackPage(SecretaryMain parent, Secretary currentSecretary)
 {
     _currentSecretary = currentSecretary;
     _parent           = parent;
     InitializeComponent();
     this.DataContext = new FeedbackViewModel(_currentSecretary.Username);
 }
 public SecretaryMain(Secretary currentSecretary)
 {
     this._currentSecretary = currentSecretary;
     InitializeComponent();
     NameAndSurnameLabel.Content = _currentSecretary.ToString();
     this.DataContext            = this;
 }
 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();
        }
 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);
 }
Пример #6
0
 public static FeedbackPage GetPage(SecretaryMain parent, Secretary currentSecretary)
 {
     parent.Title.Content = "Feedback";
     return(new FeedbackPage(parent, currentSecretary));
 }
 private AccountPage(Secretary secretary)
 {
     _currentSecretary = secretary;
     InitializeComponent();
     this.DataContext = _currentSecretary;
 }