private void SendMessage(object sender, EventArgs e) { var session = new PuzzelLibrary.Terminal.Explorer().FindSession(new PuzzelLibrary.Terminal.Explorer().GetRemoteServer(hostName), selectedSessionID); session.MessageBox(richTextBoxContents.Text, textBoxTitleValue.Text); this.Close(); }