GitUI.FormSettings.Dictionary_DropDown C# (CSharp) Метод

Dictionary_DropDown() приватный Метод

private Dictionary_DropDown ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void Dictionary_DropDown(object sender, EventArgs e)
        {
            try
            {
                Dictionary.Items.Clear();
                Dictionary.Items.Add("None");
                foreach (string fileName in Directory.GetFiles(GitCommands.Settings.GetDictionaryDir(), "*.dic", SearchOption.TopDirectoryOnly))
                {
                    FileInfo file = new FileInfo(fileName);
                    Dictionary.Items.Add(file.Name.Replace(".dic", ""));
                }
            }
            catch
            {
                MessageBox.Show("No dictionary files found in: " + GitCommands.Settings.GetDictionaryDir());
            }
        }
FormSettings