コード例 #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();
        }
コード例 #2
0
        private void addButton_Click(object sender, EventArgs e)
        {
            AddFaq faq = new AddFaq();

            faq.Show();
        }