protected override void Add() { xfmStateAdd _xfmStateAdd = new xfmStateAdd(Actions.Add); _xfmStateAdd.Added += new xfmStateAdd.AddedEventHander(this.frm_Added); _xfmStateAdd.ShowDialog(); }
public override void Change() { DIC_STATE dICSTATE = new DIC_STATE(); object focusedRowCellValue = this.gbList.GetFocusedRowCellValue("StateCode"); if (focusedRowCellValue != null) { base.SetWaitDialogCaption("Đang kiểm tra dữ liệu...."); if (!(dICSTATE.Get(focusedRowCellValue.ToString()) != "OK")) { this.DoHide(); xfmStateAdd _xfmStateAdd = new xfmStateAdd(Actions.Update, dICSTATE); _xfmStateAdd.Updated += new xfmStateAdd.UpdatedEventHander(this.frm_Updated); _xfmStateAdd.Added += new xfmStateAdd.AddedEventHander(this.frm_Added); _xfmStateAdd.ShowDialog(); } else { this.DoHide(); XtraMessageBox.Show("Dữ liệu không tồn tại", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } }