Example #1
0
        void dgrdvNonConfirm_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            long NoteID = (long)this.dtblNonConfirms.DefaultView[irow]["NoteID"];

            if (this.dgrdvNonConfirm.Columns[icol].Name == this.ColumnbtnEdit.Name)
            {
                if (this.frmOper == null)
                {
                    this.frmOper = new FrmStoreCheckNoteOper();
                    new FrmStyle(frmOper).SetPopFrmStyle(this);
                    frmOper.AffterSave += this.LoadNonConfirmData;
                }
                frmOper.Edit(NoteID);
                frmOper.ShowDialog();
            }
            if (this.dgrdvNonConfirm.Columns[icol].Name == this.ColumnbtnConfirm.Name)
            {
                if (this.frmConfirm == null)
                {
                    this.frmConfirm = new FrmStoreCheckNoteConfirm();
                    new FrmStyle(frmConfirm).SetPopFrmStyle(this);
                    this.frmConfirm.AffterSave += new FrmStoreCheckNoteConfirm.AffterSaveDelegate(frmConfirm_AffterSave);
                }
                this.frmConfirm.Confirm(NoteID);
                this.frmConfirm.ShowDialog();
            }
        }
Example #2
0
 void lnkNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (this.frmOper == null)
     {
         this.frmOper = new FrmStoreCheckNoteOper();
         new FrmStyle(frmOper).SetPopFrmStyle(this);
         frmOper.AffterSave += this.LoadNonConfirmData;
     }
     frmOper.New();
     frmOper.ShowDialog();
 }