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); }
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(); }