Ejemplo n.º 1
0
 private void btnThem_Click(object sender, RoutedEventArgs e)
 {
     UserControlLibrary.WindowThemKhuyenMai win = new UserControlLibrary.WindowThemKhuyenMai(null, mTransit, BOMenuKhuyenMai);
     if (win.ShowDialog() == true)
     {
         LoadDanhSach();
     }
 }
        private void btnThem_Click(object sender, RoutedEventArgs e)
        {
            UserControlLibrary.WindowThemKhuyenMai win = new UserControlLibrary.WindowThemKhuyenMai(null, mTransit, BOMenuKhuyenMai);
            if (win.ShowDialog() == true)
            {
                LoadDanhSach();
            }

        }
Ejemplo n.º 3
0
 private void btnSua_Click(object sender, RoutedEventArgs e)
 {
     if (lvData.SelectedItems.Count > 0)
     {
         UserControlLibrary.WindowThemKhuyenMai win = new UserControlLibrary.WindowThemKhuyenMai((Data.BOMenuKichThuocMon)lvData.SelectedItems[0], mTransit, BOMenuKhuyenMai);
         if (win.ShowDialog() == true)
         {
             LoadDanhSach();
         }
     }
 }
 private void btnSua_Click(object sender, RoutedEventArgs e)
 {
     if (lvData.SelectedItems.Count > 0)
     {
         UserControlLibrary.WindowThemKhuyenMai win = new UserControlLibrary.WindowThemKhuyenMai((Data.BOMenuKichThuocMon)lvData.SelectedItems[0], mTransit, BOMenuKhuyenMai);
         if (win.ShowDialog() == true)
         {
             LoadDanhSach();
         }
     }
 }