Exemple #1
0
        private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();

            if (sfd.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            StorageHandler sh = new StorageHandler();

            sh.Save(sfd.FileName, omList);
        }
Exemple #2
0
        private void LoadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            StorageHandler sh = new StorageHandler();

            omList = sh.Load(ofd.FileName);
            displayList();
        }