private void btn_click(object o, EventArgs e) { wal = new WebapiLibrary(); try { string nameAPI = string.Format("https://kr.api.riotgames.com/lol/summoner/v4/summoners/by-name/{0}?api_key={1}", tb.Text, wal.myapikey()); close = new SummonerINFO(this, suminfo(nameAPI)); close.WindowState = FormWindowState.Maximized; close.FormBorderStyle = FormBorderStyle.None; close.MdiParent = this; close.Dock = DockStyle.Fill; championList.Controls.Add(close); close.Show(); } catch { MessageBox.Show("올바른 아이디를 입력해주세요."); this.Show(); } }