コード例 #1
0
 private void btnDeleteCharacteristic_Click(object sender, RoutedEventArgs e)
 {
     Characteristics characteristic = cmbCharacteristics.SelectedItem as Characteristics;
     DeleteDialog dd = new DeleteDialog("Είσαι σίγουρος ότι θες να διαγράψεις το είδος : " + characteristic.Name, "CHARACTERISTIC", characteristic.Id);
     bool? rv = dd.ShowDialog();
     if (rv == true)
         LoadCharacteristics();
 }
コード例 #2
0
 private void btnDeleteCategory_Click(object sender, RoutedEventArgs e)
 {
     Categories selected_category = (cmbCategories.SelectedItem as Categories);
     DeleteDialog dd = new DeleteDialog("Είσαι σίγουρος ότι θες να διαγράψεις την κατηγορία : " + selected_category.Name, "CATEGORY", selected_category.Id);
     bool? rv = dd.ShowDialog();
     if (rv == true)
         loadCategories();
 }
コード例 #3
0
 private void btnDeleteProduct_Click(object sender, RoutedEventArgs e)
 {
     Products selected_product = (cmbProducts.SelectedItem as Products);
     DeleteDialog dd = new DeleteDialog("Είσαι σίγουρος ότι θες να διαγράψεις το προϊόν : " + selected_product.Name, "PRODUCT", selected_product.Id);
     bool? rv = dd.ShowDialog();
     if (rv == true)
         loadProducts();
 }
コード例 #4
0
 private void btnDeleteItem_Click(object sender, RoutedEventArgs e)
 {
     Items selected_item = (cmbItems.SelectedItem as Items);
     DeleteDialog dd = new DeleteDialog("Είσαι σίγουρος ότι θες να διαγράψεις το είδος : " + selected_item.Name, "ITEM", selected_item.Id);
     bool? rv = dd.ShowDialog();
     if (rv == true)
         loadItems();
 }