Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmGame_InfoDetail frmEdit = new frmGame_InfoDetail("", 0);

            frmEdit.CreateModule(null, null, null);
            if (frmEdit.DialogResult == DialogResult.OK)
            {
                this.GetData();
            }
        }
Ejemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.dataGV.SelectedRows.Count >= 0)
     {
         frmGame_InfoDetail frmEdit = new frmGame_InfoDetail(this.dataGV.SelectedRows[0].Cells[0].Value.ToString(), 1);
         frmEdit.CreateModule(null, null, null);
         if (frmEdit.DialogResult == DialogResult.OK)
         {
             this.GetData();
         }
     }
     else
     {
         MessageBox.Show("请选择要操作的数据行");
     }
 }