Exemplo n.º 1
0
        public frmChat()
        {
            server = new Server();
            waitingMessage = new Thread(new ThreadStart(WaittingMessage));
            chatOn = true;

            InitializeComponent();
        }
Exemplo n.º 2
0
 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();
 }