示例#1
0
 private void EditBrandButton_Click(object sender, RoutedEventArgs e)
 {
     if (BrandDataGrid.SelectedItem is Brand br)
     {
         var id           = br.Id;
         var createWindow = new EditBrand(id);
         createWindow.ShowDialog();
     }
 }
示例#2
0
        private void CreateBrandButton_Click(object sender, RoutedEventArgs e)
        {
            var createWindow = new EditBrand(0);

            createWindow.ShowDialog();
        }