private void btnConsultant_composeMessage_Click(object sender, RoutedEventArgs e) { ComposeMessageWindow composeMessageWindow = new ComposeMessageWindow { currentStaffID = currentStaffID, Owner = this }; composeMessageWindow.Show(); //Hide(); }
private void BtnOwner_composeMessage_Click(object sender, RoutedEventArgs e) { composeMessageWindow = new ComposeMessageWindow { Owner = this, currentStaffID = currentStaffID }; composeMessageWindow.Show(); composeMessageWindow.txbMessage_message.IsEnabled = true; composeMessageWindow.btnMessage_send.IsEnabled = true; }
/// <summary> /// Go to the compose message window. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnManager_composeMessage_Click(object sender, RoutedEventArgs e) { composeMessageWindow = new ComposeMessageWindow { currentStaffID = currentStaffID }; //Hide(); composeMessageWindow.Show(); // enable composeMessageWindow.txbMessage_message.IsEnabled = true; composeMessageWindow.btnMessage_send.IsEnabled = true; }
private void BtnQuoteSummary_verifyReject_Click(object sender, RoutedEventArgs e) { // Refresh the list boxes for verified and incoming quotes ltbQuoteSummary_incomingQuotes.Items.Refresh(); listbxVerifiedQuotes.Items.Refresh(); //Grab the information of the client and send it to the 'compose message' name textbox composeMessage.SearchResultComboBox.SelectedItem = txblockQuoteSummary_consultantID.Text; //view the 'compose message' tab Manager_tabControl.SelectedIndex = 1; //Grab the information of the quote we just rejected quote currentQuote = ltbQuoteSummary_incomingQuotes.SelectedItems[0] as quote; rejectedQuoteNo = $"Quote no. : {currentQuote.quote_no}"; composeMessage.Show(); }