コード例 #1
0
        private void bindingNavigatorEditItem_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count < 1)
                return;

            var srNo = Convert.ToInt64(dataGridView1.SelectedRows[0].Cells["SrNo"].Value);

            // ask for password
            //Loginfrm frmLogin = new Loginfrm(HomePage.UserDetail);
            //frmLogin.ShowDialog();

            //if (!frmLogin.IsLogedIn)
            //    return;

            var candidate = _candidateDetailResponse.PageData.SingleOrDefault(x => x.SrNo == srNo);

            var frm = new Candidatefrm(candidate);
            frm.ShowDialog();

            //uniDb.Refresh(System.Data.Linq.RefreshMode.KeepChanges, pagination.PageData);
            //BindGridView();
        }
コード例 #2
0
        private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {
            var frm = new Candidatefrm();
            frm.ShowDialog();

            //uniDb.Refresh(System.Data.Linq.RefreshMode.KeepChanges, pagination.PageData);
            BindGridView();
        }