public CreateForm(CSocket socket, login _login) { InitializeComponent(); Socket = socket; Login = _login; SetStyle(ControlStyles.SupportsTransparentBackColor, true); UpdateStyles(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CSocket socket = new CSocket(); socket.Initialize("211.214.234.220", 5000); //socket.Initialize("210.118.75.145", 7788); //socket.Initialize("210.118.75.145", 7788);//창회형 데스크탑 //socket.Initialize("210.118.75.148", 7788);//내꺼 데스크탑 Application.Run(new login(socket)); socket.Release(); }
public gameEnd(CSocket socket, login _login) { CheckForIllegalCrossThreadCalls = false; InitializeComponent(); InfoData = null; Socket = socket; Exit = false; Login = _login; Login.SetLobby(this); m_hThread = new Thread(new ThreadStart(GetInfo)); m_hThread.Start(); LobbySound = new System.Media.SoundPlayer(socket.MusicPath + "..\\lobby\\" + "lobby.wav"); LobbySound.PlayLooping();//노래 재생 //LobbySound.Stop(); }
public UserMakeSubject(CSocket socket, login _login) { InitializeComponent(); Socket = socket; Login = _login; }