private void startChat(object sender, RoutedEventArgs e) { if (!string.IsNullOrWhiteSpace(textBoxMyPort.Text) && !string.IsNullOrWhiteSpace(textBoxPartnerAddress.Text)) { _cp = new Filip.ChatBusiness.ChatProxy(this.ShowMessage, this.ShowStatus, textBoxMyPort.Text, textBoxPartnerAddress.Text); if (_cp.Status) { chatArea.Text += ("Ready to chat!"); chatArea.Text += Environment.NewLine; } } else { ShowStatus("Please fill in all the fields!"); } }