//OPTIONS.CS using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace IRCBotGUI { public partial class Options : Form { public static string _server, _channel, _botname, _botnick; public static int _port; public Options() { InitializeComponent(); } private void buttonOK_Click(object sender, EventArgs e) { _server = server.Text; _channel = channel.Text; _botname = botName.Text; _botnick = botNick.Text; _port = Convert.ToInt16(port.Text); Hide(); } } }