Exemplo n.º 1
0
 private void btnThem_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         pl_windowThemHangHoa pl_themHH = new pl_windowThemHangHoa();
         pl_themHH.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Loi!", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }
Exemplo n.º 2
0
 private void TableView_RowDoubleClick(object sender, DevExpress.Xpf.Grid.RowDoubleClickEventArgs e)
 {
     try
     {
         vo_HangHoa           _vo       = (vo_HangHoa)this.iGridViewPhieuNhap.SelectedItem;
         pl_windowThemHangHoa _plThemHH = new pl_windowThemHangHoa(_vo);
         _plThemHH.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Loi!", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }