private void Delete_Btn_Click(object sender, RoutedEventArgs e) { int Id = Convert.ToInt16(IdSO_Txt.Text); var result = iSalesOrder.DeleteSalesOrder(Id); if (result) { MessageBox.Show("Delete Success"); dataGridSalesOrder.ItemsSource = iSalesOrder.get(); } else { MessageBox.Show("Delete Failed"); } }