//запуск сервера 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); }
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; }