コード例 #1
0
        private void GGC_TableControlCellDoubleClick(object sender, GridTableControlCellClickEventArgs e)
        {
            //Notify the double click performed in a cell
            Record rec = GGC.Table.DisplayElements[e.TableControl.CurrentCell.RowIndex].ParentRecord;

            //If(rec) IsNot Nothing Then
            if (rec != null)
            {
                frmBehaviorDetail    = new frmBehaviorDetail();
                frmBehaviorDetail.PK = (int)(rec.GetValue("PK"));
                frmBehaviorDetail.editMode();
                frmBehaviorDetail.ShowDialog();
                //MessageBox(frmBehaviorDetail.PK + "");
            }
        }
コード例 #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (currentCellIndex < 0)
     {
         MessageBoxAdv.Show("¡ÃسÒàÅ×Í¡¢éÍÁÙÅã¹µÒÃÒ§¡è͹·ÓÃÒ¡ÒÃ!", "ÃÒ§ҹ¤ÇÒÁ¼Ô´¾ÅÒ´", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         GGC.Focus();
     }
     else
     {
         frmBehaviorDetail = new frmBehaviorDetail();
         frmBehaviorDetail.editMode();
         frmBehaviorDetail.ShowDialog();
         RetrieveData();
         currentCellIndex = -1;
     }
 }
コード例 #3
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     frmBehaviorDetail = new frmBehaviorDetail();
     frmBehaviorDetail.newMode();
     frmBehaviorDetail.ShowDialog();
 }