public static HostInfo GetHostInfo() { if (_hostInfo == null) { _hostInfo = new HostInfo(); } return _hostInfo; }
public GUI() { InitializeComponent(); //theHub = new Hub(); // I absolutly hate running my controler from my view but I've wasted so much time trying to get it the other way around that I don't think I'll finish If I don't do it this way. // theHub.setGUI(this); hostInfo = new HostInfo(); largeSize = new Point(this.Width, this.Height); setSizeMode(sizeMode.Bar); //this.Left = 0; //this.Top = 30; }