Exemple #1
0
 public NewNotificationWindow(StartingPage parent)
 {
     this._parent = parent;
     InitializeComponent();
     // PreviewKeyDown += (s, e) => { if (e.Key == Key.Escape) Close(); };
     InitializeRecipients();
     this.DataContext = this;
 }
        public EditNotificationWindow(StartingPage parent, Notification initialNotification)
        {
            this._parent = parent;

            this.initialNotification = initialNotification;
            InitializeComponent();
            this.DataContext = this;
            InitializeRecipients();

            NotificationTitle   = initialNotification.Title;
            NotificationContent = initialNotification.Content;
        }
 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);
 }
 private void StartingPage_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     Main.Content = StartingPage.GetPage(_currentSecretary, this);
 }
 private void StartingButton_Click(object sender, RoutedEventArgs e)
 {
     Main.Content = StartingPage.GetPage(_currentSecretary, this);
 }