// =========================================================================== // = Entry Point // =========================================================================== static void Main(string[] args) { Kodi = new KodiClient("192.168.1.50", 8009); RunExamples().Wait(); Console.ReadLine(); }
public MainWindow() { InitializeComponent(); DataContext = this; _sClient = new SonarrClient("http://192.168.1.50:8989/api/", "9f7f7589ac1942cea5ec5cecdc431945"); _kClient = new KodiClient("192.168.1.180", userName: "******", password: "******"); _tvSort = x => x.OrderBy(y => y.Sonarr.Title); TvSortByNameCommand = new DelegateCommand(TvSortByName); TvSortBySizeCommand = new DelegateCommand(TvSortBySize); TvDeleteCommand = new DelegateCommand(async _ => await DeleteAsync()); Series = new ObservableCollection <Series>(); FilteredSeries = new ObservableCollection <Series>(); Movies = new ObservableCollection <Movie>(); }