Exemplo n.º 1
0
        public Privatechat(string nm, d_sendmess dsmdel, d_changeon dcl)
        {
            name = nm;
            InitializeComponent();
            label2.Text = name;

            senddel = dsmdel;
            dclosed = dcl;

            logged = true;
        }
Exemplo n.º 2
0
        public Privatechat(string nm, d_sendmess dsmdel,d_changeon dcl)
        {
            name = nm;
            InitializeComponent();
            label2.Text = name;

            senddel = dsmdel;
            dclosed = dcl;

            logged = true;
        }
Exemplo n.º 3
0
        public Mainchat(string user, List <string> friends, d_sendmess dsmdel)
        {
            InitializeComponent();

            label2.Text = user;
            listBox1.Items.AddRange(friends.ToArray());

            dchon     = new d_changeon(changeon);
            dchoff    = new d_changeon(changeoff);
            dchcreate = new d_changeon(openprchat);//fswgdd
            dtkm      = new d_takemess(takemess);
            dclosed   = new d_changeon(chatclosed);
            daddf     = new d_changeon(addfriend);

            senddel = dsmdel;

            oclist = new Dictionary <string, Privatechat>();
        }
Exemplo n.º 4
0
        public Mainchat(string user, List<string> friends, d_sendmess dsmdel)
        {
            InitializeComponent();

            label2.Text = user;
            listBox1.Items.AddRange(friends.ToArray());

            dchon = new d_changeon(changeon);
            dchoff = new d_changeon(changeoff);
            dchcreate = new d_changeon(openprchat);//fswgdd
            dtkm = new d_takemess(takemess);
            dclosed = new d_changeon(chatclosed);
            daddf = new d_changeon(addfriend);

            senddel = dsmdel;

            oclist = new Dictionary<string, Privatechat>();
        }
Exemplo n.º 5
0
        public Fclient(String nm)
        {
            name = nm;
            cl = new TcpClient();

            flogin = new Form1();
            logged = false;
            flogin.upass = "";
            flogin.uname = "";

            IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3000);
            cl.Connect(serverEndPoint);

            rth = new Thread(new ThreadStart(Receive));
            lth = new Thread(new ThreadStart(Logcheck));
            lth.SetApartmentState(System.Threading.ApartmentState.STA);
            rth.Start();
            lth.Start();

            dsm = new d_sendmess(SendMess);
            flogin.ShowDialog();
        }
Exemplo n.º 6
0
        public Fclient(String nm)
        {
            name = nm;
            cl   = new TcpClient();

            flogin       = new Form1();
            logged       = false;
            flogin.upass = "";
            flogin.uname = "";

            IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3000);

            cl.Connect(serverEndPoint);

            rth = new Thread(new ThreadStart(Receive));
            lth = new Thread(new ThreadStart(Logcheck));
            lth.SetApartmentState(System.Threading.ApartmentState.STA);
            rth.Start();
            lth.Start();

            dsm = new d_sendmess(SendMess);
            flogin.ShowDialog();
        }