private bool checkConfig() { return ((this.TBDeviceID.Text != null) && (this.TBHostName.Text != null) && (this.TBDeviceKey != null) && (this.TBDeviceID.Text != "") && (this.TBHostName.Text != "") && (this.TBDeviceKey.Text != "")); }