コード例 #1
0
        //запуск сервера
        public static void StartServer(string port, string path, string login, string password)
        {
            BackupServer.SetPool();
            string[] s      = new string[] { port, path, login, password };
            Thread   thread = new Thread(new ParameterizedThreadStart(NewBackupServer));

            thread.Start(s);
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (tb_port.Text != "" && tb_path.Text != "")
     {
         BackupServer.StartServer(tb_port.Text, tb_path.Text, tb_login.Text, tb_password.Text);
         Log.Write("Запуск сервера");
     }
     button1.Enabled = false;
 }