예제 #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
파일: Form1.cs 프로젝트: witek0509x/GCS
        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));
        }