Beispiel #1
0
        private void BtnRestoreDataBase_Click(object sender, EventArgs e)
        {
            PassWord     passWord = new PassWord();
            DialogResult result   = passWord.ShowDialog();

            if (result == DialogResult.OK)
            {
                openFileDialog1.FileName = "";
                openFileDialog1.Filter   = "PrepAndPaint databases (*.db)|*.db";
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    PrepAndPaintDB.RestoreDataBase(openFileDialog1.FileName);
                    GetInfo();
                }
            }
        }