public drkGui() { InitializeComponent(); setuptreeview(); ip = txtIP.Text; user = txtUsername.Text; pass = txtPassword.Text; port = Convert.ToInt32(txtPort.Text); uonet = new uonetwork(ip, port, user, pass, Convert.ToInt32(txtCharSlot.Text)); ScriptThread = new Thread(new ThreadStart(new Script(uonet).main)); ScriptThread.IsBackground = true; }
private void btnConnect_Click(object sender, EventArgs e) { ip = txtIP.Text; user = txtUsername.Text; pass = txtPassword.Text; port = Convert.ToInt32(txtPort.Text); uonet = new uonetwork(ip, port, user, pass, Convert.ToInt32(txtCharSlot.Text)); mythread = new Thread(new ThreadStart(uonet.main)); mythread.IsBackground = true; mythread.Start(); timer1.Interval = 100; timer1.Start(); Pingtimer.Interval = 30000; Pingtimer.Start(); }
public Event(uonetwork muonet) { uonet = muonet; }
public Script(uonetwork muonet) { uonet = muonet; }