Example #1
0
        private void itemAdd_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            Supplierform frm = new Supplierform();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                lvSuppliers_Load(NCCPTien.All());
            }
        }
Example #2
0
 private void itemUpdate_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (lvSuppliers.SelectedItems.Count > 0)
     {
         Supplierform frm = new Supplierform();
         frm.Code = MyConvert.ToInt32(lvSuppliers.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             lvSuppliers_Load(NCCPTien.All());
         }
     }
 }