예제 #1
0
        protected override void Add()
        {
            xfmStateAdd _xfmStateAdd = new xfmStateAdd(Actions.Add);

            _xfmStateAdd.Added += new xfmStateAdd.AddedEventHander(this.frm_Added);
            _xfmStateAdd.ShowDialog();
        }
예제 #2
0
        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);
                }
            }
        }