コード例 #1
0
ファイル: MainForm.cs プロジェクト: OminusRumors/DnD_App
        private void btnJoin_Click(object sender, EventArgs e)
        {
            SaveLoadCharacter slc     = new SaveLoadCharacter();
            string            address = tbIP.Text;

            client = new TCPClient(this);
            client.connectTo(address);
            Character  c  = slc.DeSerializeObject <Character>("../Debug/" + lbChar.SelectedItem.ToString());
            PlayerForm pf = new PlayerForm(c, client);

            pf.Show();
        }