From 6ff2f412a58a079f3aa90fa8df87602530faadc1 Mon Sep 17 00:00:00 2001 From: flare561 Date: Wed, 25 Jan 2017 03:13:45 -0600 Subject: [PATCH] Added a settings UI --- Rippy/AlbumData.cs | 11 +++ Rippy/App.config | 10 +-- Rippy/MainWindow.xaml | 96 +++++++++++++++++++++++++-- Rippy/MainWindow.xaml.cs | 50 ++++++++++---- Rippy/Properties/Settings.Designer.cs | 10 +-- Rippy/Properties/Settings.settings | 8 +-- Rippy/Rippy.csproj | 1 - Rippy/Settings.cs | 43 ------------ 8 files changed, 144 insertions(+), 85 deletions(-) delete mode 100644 Rippy/Settings.cs diff --git a/Rippy/AlbumData.cs b/Rippy/AlbumData.cs index d600516..9e16721 100644 --- a/Rippy/AlbumData.cs +++ b/Rippy/AlbumData.cs @@ -65,6 +65,17 @@ public string Medium set { _medium = value; OnPropertyChanged("Medium"); } } + public List Trackers + { + get { return Rippy.Properties.Settings.Default.Trackers.Split(',').ToList(); } + } + + public string TrackersString + { + get { return Rippy.Properties.Settings.Default.Trackers; } + set { Rippy.Properties.Settings.Default.Trackers = value; OnPropertyChanged("Trackers"); OnPropertyChanged("TrackersString"); } + } + public string Tracker { get { return _tracker; } diff --git a/Rippy/App.config b/Rippy/App.config index 06d87c3..72ec277 100644 --- a/Rippy/App.config +++ b/Rippy/App.config @@ -22,14 +22,8 @@ .\Torrents\ - - - - https://example.com/stuff/announce - https://example2.com/stuff2/announce - - + + https://example1.com/stuff/announce,https://example2.com/stuff2/announce diff --git a/Rippy/MainWindow.xaml b/Rippy/MainWindow.xaml index 7eb14a2..0393c75 100644 --- a/Rippy/MainWindow.xaml +++ b/Rippy/MainWindow.xaml @@ -34,11 +34,12 @@ -