示例#1
0
 public void SelectedIndexChanged()
 {
     if (Index >= 0)
     {
         CurrentAuto = Autos[Index];
         DeleteButtonClick.RaiseCanExecuteChanged();
         OnPropertyChanged(nameof(CurrentAuto));
     }
 }
        public void SelectedIndexChanged()
        {
            if (Index >= 0)
            {
                CurrentReservation = Reservationen[Index];
                AutoIndexChanged();
                KundeIndexChanged();

                DeleteButtonClick.RaiseCanExecuteChanged();

                OnPropertyChanged(nameof(CurrentReservation));
            }
        }
示例#3
0
 public void SelectedIndexChanged()
 {
     if (Index >= 0)
     {
         CurrentKunde = Kunden[Index];
         DeleteButtonClick.RaiseCanExecuteChanged();
         OnPropertyChanged(nameof(CurrentKunde));
     }
     else
     {
         CurrentKunde = null;
         DeleteButtonClick.RaiseCanExecuteChanged();
         OnPropertyChanged(nameof(CurrentKunde));
     }
 }
示例#4
0
 private void DeleteButton_Click(object sender, EventArgs e)
 {
     DeleteButtonClick?.Invoke(this, EventArgs.Empty);
 }
示例#5
0
 private void DeleteButton_Click(object sender, RoutedEventArgs e)
 {
     DeleteButtonClick?.Invoke(this, new EventArgs());
 }
 public void Delete_Click(object sender, RoutedEventArgs args)
 {
     DeleteButtonClick?.Invoke(sender, args);
 }
示例#7
0
 private void DeleteButton_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     DeleteButtonClick?.Invoke(this, e);
 }
示例#8
0
 protected void DeleteButton_Click(object sender, EventArgs e)
 {
     DeleteButtonClick?.Invoke(this, e);
 }
示例#9
0
 private void DeleteClick(object sender, RoutedEventArgs e)
 {
     DeleteButtonClick?.Invoke(sender, e);
 }
 private void btnDelete_Click(object sender, RoutedEventArgs e)
 {
     DeleteButtonClick?.Invoke(this, EventArgs.Empty);
 }