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(); }
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(); }
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(); }
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(); }