// Submit a new query private void SubmitQuery(jabber.JID jid, string node, bool refresh) { IdentityNameLabel.Text = string.Empty; IdentityAddressLabel.Text = string.Empty; IdentityCategoryTypeLabel.Text = string.Empty; Label4.Visible = false; ActionButton.Visible = false; StopButton.Enabled = true; Spinner.Visible = true; ErrorPicture.Visible = false; got_one_response = false; was_stopped = false; ServiceListView.Items.Clear(); AddressTextBox.SelectAll(); current_jid = jid; current_node = node; XmppGlobal.Disco.DiscoInfoQuery(jid, node, refresh, new QueryCallback(GotInfoQuery), null); XmppGlobal.Disco.DiscoItemsQuery(jid, node, refresh, new QueryCallback(GotItemsQuery), null); }
private void AddressTextBox_GotFocus(object sender, RoutedEventArgs e) { AddressTextBox.SelectAll(); ErrorAddressTextBlock.Visibility = Visibility.Collapsed; //SetTextBlockVisibilityCollapsed(); }
// When the AddressTextBox gets focus, select everything in it for easy delete private void AddressTextBox_GotFocus(object sender, EventArgs e) { AddressTextBox.SelectAll(); }
private void StreetTextBox_Click(object sender, EventArgs e) { AddressTextBox.SelectAll(); }