using System.Collections; using System.Diagnostics; using Avalonia; using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.Markup.Xaml; using DeskHubSharpRevised.BLL; using DeskHubSharpRevised.Models; namespace DeskHubSharpRevised; public partial class DetailWindow : Window { // Private members private readonly RepoDetail _repoDetail; private readonly ComboBox? _cmbbox_branches_items; private TextBlock? _txtblk_language_text; private Label? _lbl_reponame_content; private TextBlock? _txtblk_watchers_text; private TextBlock? _txtblk_stargazers_text; private TextBlock? _txtblk_forks_text; private Request _request; private Owner _owner; public DetailWindow() { InitializeComponent(); DataContext = this; #if DEBUG this.AttachDevTools(); #endif } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } public DetailWindow(RepoDetail repoDetail) { InitializeComponent(); _repoDetail = repoDetail; _request = new Request(_repoDetail.name); _owner = new Owner(); _cmbbox_branches_items = this.Find("cmbbox_branches"); _txtblk_language_text = this.Find("txtblk_language"); _txtblk_watchers_text = this.Find("txtblk_watchers"); _txtblk_stargazers_text = this.Find("txtblk_stargazers"); _txtblk_forks_text = this.Find("txtblk_forks"); _lbl_reponame_content = this.Find