public frmChat() { server = new Server(); waitingMessage = new Thread(new ThreadStart(WaittingMessage)); chatOn = true; InitializeComponent(); }
public frmChat(string _Name, string _State, string _IP) { MyUser = new User(); MyUser.userName = _Name; switch (_State) { case "Connected": MyUser.userState = UserState.Connected; break; case "Absent": MyUser.userState = UserState.Absent; break; case "Busy": MyUser.userState = UserState.Busy; break; } server = new Server(); server.IP = _IP; waitingMessage = new Thread(new ThreadStart(WaittingMessage)); chatOn = true; InitializeComponent(); }