示例#1
0
 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;
 }
示例#2
0
 public RepositoryWindow(Folder rootFolder)
 {
     InitializeComponent();
     root       = rootFolder;
     codeSearch = new CodeSearchManager();
 }