Esempio n. 1
0
        private void AddNoteButton_Click(object sender, RoutedEventArgs e)
        {
            AddNoteWindow addNoteWindow = new AddNoteWindow(_date);

            addNoteWindow.ShowDialog();
            subscriber.PublishData(new DateChangedArgument <DateTime>(_date));
        }
Esempio n. 2
0
        private void Update(object sender, RoutedEventArgs e)
        {
            var           note          = ((dynamic)sender).DataContext as Note;
            AddNoteWindow addNoteWindow = new AddNoteWindow(note);

            addNoteWindow.ShowDialog();
            subscriber.PublishData(new DateChangedArgument <DateTime>(_date));
        }