Exemple #1
0
        private void UserControl_Initialized(object sender, EventArgs e)
        {
            PageTypeSelector.Items.Clear();
            foreach (string type in AbstractParser.AvailableParsers())
            {
                PageTypeSelector.Items.Add(type);
            }

            CharsetSelector.Items.Clear();
            foreach (EncodingInfo ei in Encoding.GetEncodings())
            {
                CharsetSelector.Items.Add(ei.GetEncoding());
            }

            PreviousSelection.IsEnabled = false;
            NextSelection.IsEnabled     = false;
            ElementsCount = 0;
            SelectedIndex = -1;

            UrlInput.ItemsSource = MRU;
            foreach (string dir in ConfigManager.GetInstance().GetMruTemplatesUrls())
            {
                MRU.Add(dir);
            }
        }