public SearchCodeUserControl() { InitializeComponent(); codeSearch = new CodeSearchManager(); download = new DownloadLocallyManager(); DateValidator = new DateValidator(); languageComboBox.ItemsSource = Enum.GetValues(typeof(Language)); languageComboBox.SelectedIndex = (int)Enum.Parse(typeof(Language), "Unknown"); AccessToken = "b662ba89eb7878f9e75b885789bda4dbbb5115ec"; DataContext = this; }
public RepositoryWindow(Folder rootFolder) { InitializeComponent(); root = rootFolder; codeSearch = new CodeSearchManager(); }