private void MainMenuDictionaryLoad_Click(object sender, EventArgs e) { if (!HashDictionary.Saved) { DialogResult result = MessageBox.Show("Save changes to dictionary?", "Save", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (result != DialogResult.Cancel) { if (result == DialogResult.Yes) { SaveDictionary(HashDictionary.FileName); } OpenDictionary.Tag = DictionaryArgs.LOAD; OpenDictionary.ShowDialog(); } } else { OpenDictionary.Tag = DictionaryArgs.LOAD; OpenDictionary.ShowDialog(); } }
public Pathfinder() { openPointsSet = new OpenDictionary(); closePointsSet = new HashSet <T>(); }
private void MainMenuDictionaryMerge_Click(object sender, EventArgs e) { OpenDictionary.Tag = DictionaryArgs.MERGE; OpenDictionary.ShowDialog(); }