Ejemplo n.º 1
0
        private void btnWebCooperatorSearch_Click(object sender, EventArgs e)
        {
            var f = new frmWebCooperator();

            if (f.ShowDialog(this.Owner as mdiParent, this.AdminProxy) == DialogResult.OK)
            {
                _webCooperatorID     = f.WebCooperatorID;
                txtWebUserName.Text  = "";
                txtWebLastName.Text  = "";
                txtWebFirstName.Text = "";
                var ds = AdminProxy.GetWebCooperatorInfo(_webCooperatorID);
                var dt = ds.Tables["web_cooperator_info"];
                if (dt != null)
                {
                    if (dt.Rows.Count > 0)
                    {
                        var dr = dt.Rows[0];
                        txtWebFirstName.Text = dr["web_first_name"].ToString();
                        txtWebLastName.Text  = dr["web_last_name"].ToString();
                        txtWebUserName.Text  = dr["web_user_name"].ToString();
                    }
                }
            }
            CheckDirty();
        }