Esempio n. 1
0
 void lnkNew_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (frmOper == null)
     {
         frmOper = new FrmWorkingReportOper();
         new FrmStyle(frmOper).SetPopFrmStyle(this);
         frmOper.AffterSave += new FrmWorkingReportOper.AffterSaveDelegate(frmOper_AffterSave);
     }
     frmOper.New();
     frmOper.ShowDialog();
 }
Esempio n. 2
0
        void dgrdv_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if (this.dgrdv.Columns[icol].Name == this.ColumnbtnEdit.Name)
            {
                long ReportID = (long)this.dtblReports.DefaultView[irow]["ReportID"];
                if (frmOper == null)
                {
                    frmOper = new FrmWorkingReportOper();
                    new FrmStyle(frmOper).SetPopFrmStyle(this);
                    frmOper.AffterSave += new FrmWorkingReportOper.AffterSaveDelegate(frmOper_AffterSave);
                }
                frmOper.Edit(ReportID);
                frmOper.ShowDialog();
            }
        }