Beispiel #1
0
        /// <summary>
        /// Click on Open
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "XML файлы|*.XML|Все файлы|*.*";
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                database = new TrueFalse(openFileDialog.FileName);
                database.LoadQuestions();
                FillDGVQuestions();
            }
            else
            {
                MessageBox.Show("FileName not specified!");
            }
        }
Beispiel #2
0
 /// <summary>
 /// Click on New
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     database = new TrueFalse();
     UpdateDataSource();
 }