Example #1
0
        private void bntAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmAddSupplier frm = new frmAddSupplier(_ConfigItem, null);

            frm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(frm_FormClosed);
            frm.ShowDialog();
        }
Example #2
0
 private void bntUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         int[]          _IndexRowSelected = gridView1.GetSelectedRows();
         int            _CurIndexRow      = _IndexRowSelected[0];
         Supplier       _supplier         = (Supplier)gridView1.GetRow(_CurIndexRow);
         frmAddSupplier f = new frmAddSupplier(_ConfigItem, _supplier);
         if (f.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
         {
             BidingGrid();
         }
     }
     catch (Exception ex)
     {
         //TODO: Ghi log tai day nhe
         throw ex;
     }
 }