private void buttonAddSemester_Click(object sender, RoutedEventArgs e) { var year = getYear(); if (year == null) { return; } OnRequestAddSemester?.Invoke(this, year); }
private void ButtonAddSemester_TouchUpInside(object sender, EventArgs e) { OnRequestAddSemester?.Invoke(this, DataContext as ViewItemYear); }