Esempio n. 1
0
 private void popup_FormClosed(object sender, FormClosedEventArgs e)
 {
     popup.FormClosed -= popup_FormClosed;
     if (popup.DialogResult == DialogResult.OK)
     {
         this.gridView1.SetRowCellValue(this.gridView1.FocusedRowHandle, this.gridView1.FocusedColumn, popup.pMD_U_NICKNAME);
         this.gridView1.SetRowCellValue(this.gridView1.FocusedRowHandle, gridView1.Columns["md_leader"], popup.pMD_U_ID);
     }
     popup = null;
 }
Esempio n. 2
0
        private void repositoryItemButtonEdit2_Click(object sender, EventArgs e)
        {
            popup = new frmDN26_Pop01();

            popup.pU_NICKNAME    = gridView1.GetFocusedRowCellValue("u_nickname").ToString();
            popup.pU_ID          = gridView1.GetFocusedRowCellValue("o_u_id").ToString();
            popup.pMD_U_ID       = gridView1.GetFocusedRowCellValue("md_leader").ToString();
            popup.pMD_U_NICKNAME = "";

            popup.FormClosed += popup_FormClosed;
            popup.ShowDialog();
        }