コード例 #1
0
 private void LvBrands_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!(lvBrands.SelectedItem is null))
     {
         _selectedBrand = lvBrands.SelectedItem as Brand;
         SetBrandUpdateField();
     }
 }
コード例 #2
0
 private void ClearBrandUpdateField()
 {
     _selectedBrand           = null;
     tbxUpdateBrand.Text      = null;
     btnDeleteBrand.IsEnabled = false;
 }