static void Main() { string _hostString = "127.0.0.1"; int _portNo = 4444; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SimpleClient sClient = new SimpleClient(); Form1 form = new Form1(sClient); sClient.Connect(_hostString, _portNo); Application.Run(form); }
/** * Constructs the Form and Initialises data */ public Form1(SimpleClient sClient) { InitializeComponent(); _client = sClient; _client.SetForm(this); }