예제 #1
0
파일: frm_user.cs 프로젝트: radtek/One
        private void tlDel_Click(object sender, EventArgs e)
        {
            if (grdData.SelectedRows == null || grdData.SelectedRows.Count < 1)
            {
                return;
            }

            if (MsgBoxEx.ConfirmYesNo("Are you sure to delete the record?") == DialogResult.No)
            {
                return;
            }

            string id = grdData.SelectedRows[0].Cells["ColCode"].Value.ToString();

            IsysService service = sysService.GetService();

            service.DelUser(id, DataCache.UserInfo.ID);

            tlSearch.PerformClick();
        }