public Obrada(NetworkStream tok, ServerKlasa formServer) { this.tok = tok; this.formServer = formServer; formater = new BinaryFormatter(); ThreadStart ts = obradaKlijenta; Thread nit = new Thread(ts); nit.Start(); }
private void btnPokreni_Click(object sender, EventArgs e) { server = new ServerKlasa(); if (server.PokreniServer()) { this.Text = "Server je pokrenut!"; //MessageBox.Show("Server je pokrenut"); btnPokreni.Enabled = false; btnZaustavi.Enabled = true; } }
public ServerKlasa(ServerKlasa formServer) { this.formServer = formServer; }