//private void MenuItem_Click(object sender, RoutedEventArgs e) //{ // cbx_ClientType.SelectedIndex = -1; //} private void Btn_CloseAcc_Click(object sender, RoutedEventArgs e) { if (dtg_Accaunts.SelectedItem != null) { mSSqlRep.DeleteAcc((DataRowView)(dtg_Accaunts.SelectedItem), (int)((DataRowView)cbbx_ClientType.SelectedItem)["id"]); } }
private void Btn_CloseAcc_Click(object sender, RoutedEventArgs e) { if (dtg_Accaunts.SelectedItem != null) { mSSqlRep.DeleteAcc((DataRowView)(dtg_Accaunts.SelectedItem)); } }