public void run(string dir, ServerForm _form) { form = _form; ServerDirectory = dir; Debug.Write("Server dir " + ServerDirectory); tftpServer = new TftpServer(); { tftpServer.OnReadRequest += new TftpServerEventHandler(server_OnReadRequest); tftpServer.OnWriteRequest += new TftpServerEventHandler(server_OnWriteRequest); tftpServer.Start(); form.Log.Invoke($"Server started!"); } }
private void server_Click(object sender, EventArgs e) { ServerForm server = new ServerForm(); server.Show(); }