Пример #1
0
        private void ok_Click(object sender, System.EventArgs e)
        {
            DBConnectionThread db     = new DBConnectionThread(name.Text, server.Text, newm.Checked);
            Thread             thread = new Thread(new ThreadStart(db.Run));

            thread.Start();
            this.Close();
        }
Пример #2
0
        public GCS()
        {
            InitializeComponent();

            DBConnectionThread db     = new DBConnectionThread("xd", "127.0.0.1", true);
            Thread             thread = new Thread(new ThreadStart(db.Run));

            thread.Start();
            Console.WriteLine(TCP.Connect("77.55.219.19", "ReciveUpdate Puszek 2", 3456));
        }