private void AddButton_Click(object sender, System.Windows.RoutedEventArgs e) { if (Add != null) { Add(); } }