private void BtnAddPlainTextQuestion_Click(object sender, RoutedEventArgs e) { string generatedQuestion = txtPlainTextQuestion.Text; string generatedAnswer = string.Empty; string category = "TXT|"; string plainAnswer = txtPlainText.Text; generatedAnswer = category + plainAnswer; QnAEditor.AddNewAnswer(generatedAnswer, generatedQuestion); txtPlainTextQuestion.Text = string.Empty; txtPlainTextQuestion.Text = string.Empty; MessageBox.Show("Your Plain Text question has been added, remember to publish your Knowledge base before start working with it"); }
private void BtnAddVideoCardQuestion_Click(object sender, RoutedEventArgs e) { string generatedQuestion = txtVideoCardQuestion.Text; string generatedAnswer = string.Empty; string category = "VDC|"; string videoAnswer = txtVideoCardTitle.Text + "|" + txtVideoCardDescription.Text + "|" + txtVideoCardMedia.Text; generatedAnswer = category + videoAnswer; QnAEditor.AddNewAnswer(generatedAnswer, generatedQuestion); txtVideoCardQuestion.Text = string.Empty; txtVideoCardTitle.Text = string.Empty; txtVideoCardDescription.Text = string.Empty; txtVideoCardMedia.Text = string.Empty; MessageBox.Show("Your Video Card question has been added, remember to publish your Knowledge base before start working with it"); }
private void BtnRegisterData_Click(object sender, RoutedEventArgs e) { tabEditor.Visibility = Visibility.Visible; QnAEditor.AssignCredentials(txtKnowledgeBaseName.Text, txtKnowledgeBaseId.Text, txtAuthorizationKey.Text); }