コード例 #1
0
        private void cargarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            guardarToolStripMenuItem1.PerformClick();

            OpenFileDialog openFile = new OpenFileDialog();

            if (openFile.ShowDialog() == DialogResult.OK)
            {
                FileStream backup = new FileStream(openFile.FileName, FileMode.Open);
                biblioteca = (Biblioteca)bin.Deserialize(backup);
            }

            CargarListView();
        }