예제 #1
0
        private void _barAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BasicClass.cResult cr = new BasicClass.cResult();
            cr.RowChanged += new BasicClass.RowChangedHandler(cr_RowChanged);
            Form fr = new frCompanyOne(cr, 0, _typeID, dt);

            fr.ShowDialog();
        }
예제 #2
0
 private void _barEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle > -1)
     {
         int id = (int)gridView1.GetFocusedRowCellValue(_coID);
         BasicClass.cResult cr = new BasicClass.cResult();
         cr.RowChanged += new BasicClass.RowChangedHandler(cr_RowChanged);
         Form fr = new frCompanyOne(cr, id, _typeID, dt);
         fr.ShowDialog();
     }
 }