Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var frmDbLink = new FrmDBLinkEdit {
                IsAdd = true
            };

            if (frmDbLink.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.BindData();
            }
        }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            string tmpId = BasePageLogic.GetDataGridViewEntityId(dgvInfo, CiDbLinkDefineTable.FieldId);

            if (string.IsNullOrEmpty(tmpId))
            {
                return;
            }
            var frmDbLink = new FrmDBLinkEdit(tmpId)
            {
                IsAdd = false
            };

            if (frmDbLink.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.BindData();
            }
        }