private void AddNoteButton_Click(object sender, RoutedEventArgs e) { AddNoteWindow addNoteWindow = new AddNoteWindow(_date); addNoteWindow.ShowDialog(); subscriber.PublishData(new DateChangedArgument <DateTime>(_date)); }
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)); }