예제 #1
0
        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();
            }
        }
예제 #2
0
 public Pathfinder()
 {
     openPointsSet  = new OpenDictionary();
     closePointsSet = new HashSet <T>();
 }
예제 #3
0
 private void MainMenuDictionaryMerge_Click(object sender, EventArgs e)
 {
     OpenDictionary.Tag = DictionaryArgs.MERGE;
     OpenDictionary.ShowDialog();
 }