private void performSearch() { MessageView messageView = new MessageView(); messageView.Text = "Search results for " + txtSearchQuery.Text; messageView.IsGroupMessage = false; messageView.InitializeMessages(0, connectionString, txtSearchQuery.Text); messageView.Show(); this.Close(); }
private void lbConversationList_DoubleClick(object sender, EventArgs e) { if (lbConversationList.SelectedIndex == -1) { return; } MessageView messageView = new MessageView(); messageView.Text = lbConversationList.SelectedItem.ToString(); if (selectedConversationIsGroup) { messageView.IsGroupMessage = true; } else { messageView.IsGroupMessage = false; } messageView.InitializeMessages(selectedConversationPk, connectionString); messageView.Show(); }