Esempio n. 1
0
        void dgrdv_CellContextMenuStripNeeded(object sender, DataGridViewCellContextMenuStripNeededEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if ((this.dgrdv.Columns [icol].Name == this.ColumnPrdCode.Name) ||
                (this.dgrdv.Columns [icol].Name == this.ColumnPrdName.Name) ||
                (this.dgrdv.Columns[icol].Name == this.ColumnPrdSpec.Name) ||
                (this.dgrdv.Columns[icol].Name == this.ColumnModel.Name) ||
                (this.dgrdv.Columns [icol].Name == this.ColumnPrdStatus.Name))
            {
                this.dgrdv.CurrentCell = this.dgrdv[icol, irow];
                if (this.frmManufProcess == null)
                {
                    frmManufProcess = new JERPApp.Define.Manufacture.FrmManufProcessSelect();
                    new FrmStyle(frmManufProcess).SetPopFrmStyle(this);
                    frmManufProcess.AffterSalected += frmManufProcess_AffterSalected;
                }
                this.frmManufProcess.ShowDialog();
            }
        }
Esempio n. 2
0
 void btnAdd_Click(object sender, EventArgs e)
 {
     if (this.frmManufProcessAdd == null)
     {
         frmManufProcessAdd = new JERPApp.Define.Manufacture.FrmManufProcessSelect();
         new FrmStyle(frmManufProcessAdd).SetPopFrmStyle(this);
         frmManufProcessAdd.AffterSalected += frmManufProcessAdd_AffterSalected;
     }
     this.frmManufProcessAdd.ShowDialog();
 }
Esempio n. 3
0
 void dgrdv_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         if (this.frmManufProcessAdd == null)
         {
             frmManufProcessAdd = new JERPApp.Define.Manufacture.FrmManufProcessSelect();
             new FrmStyle(frmManufProcessAdd).SetPopFrmStyle(this);
             frmManufProcessAdd.AffterSalected += new JERPApp.Define.Manufacture.FrmManufProcessSelect.AffterSelectedDelegate(frmManufProcess_AffterSalected);
         }
         this.frmManufProcessAdd.ShowDialog();
     }
 }