private void abms_Click_1(object sender, EventArgs e) { StringBuilder sentence = new StringBuilder().AppendFormat("SELECT CU.RoleId FROM TRANSA_SQL.CuponeteUser CU WHERE CU.Username='******'", this.Username); int roleId = (int)Conexion.Instance.ejecutarQuery(sentence.ToString()).Rows[0]["RoleId"]; this.Hide(); AbmMain abms= new AbmMain(roleId); abms.Owner = this; abms.Show(); }
private void abms_Click_1(object sender, EventArgs e) { StringBuilder sentence = new StringBuilder().AppendFormat("SELECT CU.RoleId FROM TRANSA_SQL.CuponeteUser CU WHERE CU.Username='******'", this.Username); int roleId = (int)Conexion.Instance.ejecutarQuery(sentence.ToString()).Rows[0]["RoleId"]; this.Hide(); AbmMain abms = new AbmMain(roleId); abms.Owner = this; abms.Show(); }