Example #1
0
        private void btnAddUniq_Click(object sender, EventArgs e)
        {
            AddUniqForm uniqForm = new AddUniqForm(txtName.Text, this.dgFields, this.dgUniq, null);

            uniqForm.StartPosition = FormStartPosition.CenterParent;
            uniqForm.ShowDialog();
        }
Example #2
0
        private void btnEditUniq_Click(object sender, EventArgs e)
        {
            if (dgUniq.SelectedRows.Count == 0)
            {
                return;
            }

            AddUniqForm uniqForm = new AddUniqForm(txtName.Text, this.dgFields, this.dgUniq, dgUniq.SelectedRows[0]);

            uniqForm.StartPosition = FormStartPosition.CenterParent;
            uniqForm.ShowDialog();
        }
        private void btnEditUniq_Click(object sender, EventArgs e)
        {
            if (dgUniq.SelectedRows.Count == 0) return;

            AddUniqForm uniqForm = new AddUniqForm(txtName.Text, this.dgFields, this.dgUniq, dgUniq.SelectedRows[0]);
            uniqForm.StartPosition = FormStartPosition.CenterParent;
            uniqForm.ShowDialog();
        }
 private void btnAddUniq_Click(object sender, EventArgs e)
 {
     AddUniqForm uniqForm = new AddUniqForm(txtName.Text, this.dgFields, this.dgUniq, null);
     uniqForm.StartPosition = FormStartPosition.CenterParent;
     uniqForm.ShowDialog();
 }