Exemplo n.º 1
0
        private void dgvUserTypes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            if (e.ColumnIndex == 2)
            {
                Respondent      r   = UserTypes[e.RowIndex];
                frmEditUserType frm = new frmEditUserType(r);
                frm.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void cmdNewUserType_Click(object sender, EventArgs e)
        {
            if (cboSurvey.SelectedItem == null)
            {
                return;
            }

            string selected = (string)cboSurvey.SelectedItem;

            frmEditUserType frm = new frmEditUserType(selected);

            frm.ShowDialog();

            GetUserTypes(selected);
        }