Beispiel #1
0
        private void miOpen_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                dataBase = new TrueFalse(ofd.FileName);
                dataBase.Load();
                numNumber.Minimum = 1;
                numNumber.Maximum = dataBase.Count;
                numNumber.Value   = 1;
            }
        }
Beispiel #2
0
        private void miNew_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            if (sfd.ShowDialog() == DialogResult.OK)
            {
                dataBase = new TrueFalse(sfd.FileName);
                dataBase.Add("123", true);
                dataBase.Save();
                numNumber.Minimum = 1;
                numNumber.Maximum = 1;
                numNumber.Value   = 1;
            }
        }