Beispiel #1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            var collection = database.GetCollection <BsonDocument>("faqs");
            var question   = new BsonDocument
            {
                { "question", questionAdd.Text },
                { "answer", answerAdd.Text },
            };

            collection.InsertOne(question);
            MessageBox.Show("Question Added To FAQs..");
            this.Hide();
            AddFaq faq = new AddFaq();

            faq.Show();
        }
Beispiel #2
0
        private void addButton_Click(object sender, EventArgs e)
        {
            AddFaq faq = new AddFaq();

            faq.Show();
        }