示例#1
0
        private void открытьИзФайлаToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DBFile         File = new DBFile();
            OpenFileDialog svf  = new OpenFileDialog();

            svf.Filter = "BD Data|*.bd";
            if (svf.ShowDialog() == DialogResult.OK)
            {
                File.FileDB = svf.FileName;
            }
            File.Load();
            foreach (var item in File.DBNodes)
            {
                treeView1.Nodes.Add(item.FilePath, Path.GetFileName(item.FilePath));
            }
            MessageBox.Show("Успешно");
        }