Ejemplo n.º 1
0
 private void btnModify_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (grdKheUoc.SelectedItems.Count == 0)
         {
             return;
         }
         XuLyNoQuaHan   objXuLyNoQH = (XuLyNoQuaHan)grdKheUoc.SelectedItems[0];
         ucXuLyNoKheUoc objKheUoc   = new ucXuLyNoKheUoc();
         objKheUoc.LayGiaTriTraVe = new ucXuLyNoKheUoc.LayGiaTriXuLy(LayGiaTriPopup);
         TruyenGiaTriChoPopup TruyenGiaTri = new TruyenGiaTriChoPopup(objKheUoc.SetValue);
         TruyenGiaTri(lstXuLyNoQH);
         objKheUoc.LoadControlData(objXuLyNoQH);
         Window window = new Window();
         window.Title   = "Chi tiết xử lý nợ khế ước";
         window.Content = objKheUoc;
         window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         window.ShowDialog();
         LoadGridViewData();
     }
     catch (Exception ex)
     {
         LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex);
     }
 }
Ejemplo n.º 2
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            ucXuLyNoKheUoc objKheUoc = new ucXuLyNoKheUoc();

            objKheUoc.LayGiaTriTraVe = new ucXuLyNoKheUoc.LayGiaTriXuLy(LayGiaTriPopup);
            TruyenGiaTriChoPopup TruyenGiaTri = new TruyenGiaTriChoPopup(objKheUoc.SetValue);

            TruyenGiaTri(lstXuLyNoQH);
            Window window = new Window();

            window.Title   = "Chi tiết xử lý nợ khế ước";
            window.Content = objKheUoc;
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.ShowDialog();
            LoadGridViewData();
        }