Пример #1
0
 void lnkNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (this.frmOper == null)
     {
         this.frmOper = new FrmOutSrcInvoiceOper();
         new FrmStyle(this.frmOper).SetPopFrmStyle(this.ParentForm);
         this.frmOper.AffterSave += this.LoadData;
     }
     this.frmOper.New();
     this.frmOper.ShowDialog();
 }
Пример #2
0
        void dgrdvInvoice_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if (this.dgrdvInvoice.Columns[icol].Name == this.ColumnBtnEdit.Name)
            {
                long InvoiceID = (long)this.dtblInvoices.DefaultView[irow]["InvoiceID"];
                if (this.frmOper == null)
                {
                    this.frmOper = new FrmOutSrcInvoiceOper();
                    new FrmStyle(this.frmOper).SetPopFrmStyle(this.ParentForm);
                    this.frmOper.AffterSave += this.LoadData;
                }
                this.frmOper.Edit(InvoiceID);
                this.frmOper.ShowDialog();
            }
        }