diff --git a/App.xaml b/App.xaml index d10336b..aa3f839 100644 --- a/App.xaml +++ b/App.xaml @@ -1,7 +1,7 @@ - diff --git a/App.xaml.cs b/Controller/App.cs similarity index 93% rename from App.xaml.cs rename to Controller/App.cs index 7722e73..21de106 100644 --- a/App.xaml.cs +++ b/Controller/App.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Threading.Tasks; using System.Windows; -namespace Karaoke_Kingpin +namespace Karaoke_Kingpin.Controller { /// /// App.xaml 的互動邏輯 diff --git a/Index.xaml.cs b/Controller/Index.cs similarity index 99% rename from Index.xaml.cs rename to Controller/Index.cs index 87f35b1..0821e6e 100644 --- a/Index.xaml.cs +++ b/Controller/Index.cs @@ -34,8 +34,9 @@ using ExcelDataReader; using System.Text.RegularExpressions; using System.Windows.Threading; using System.Windows.Forms; - -namespace Karaoke_Kingpin +using Karaoke_Kingpin.Models; +using Karaoke_Kingpin.Converters; +namespace Karaoke_Kingpin.Controller { /// /// Index.xaml 的互動邏輯 diff --git a/MainViewModel.cs b/Controller/MainViewModel.cs similarity index 99% rename from MainViewModel.cs rename to Controller/MainViewModel.cs index 0b633a7..414d33e 100644 --- a/MainViewModel.cs +++ b/Controller/MainViewModel.cs @@ -9,7 +9,7 @@ using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; -namespace Karaoke_Kingpin +namespace Karaoke_Kingpin.Controller { public class MainViewModel : INotifyPropertyChanged { diff --git a/MainWindow.xaml.cs b/Controller/MainWindow.cs similarity index 98% rename from MainWindow.xaml.cs rename to Controller/MainWindow.cs index a31fc62..2061874 100644 --- a/MainWindow.xaml.cs +++ b/Controller/MainWindow.cs @@ -16,7 +16,7 @@ using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; -namespace Karaoke_Kingpin +namespace Karaoke_Kingpin.Controller { /// /// MainWindow.xaml 的互動邏輯 diff --git a/BitmapToImageSourceConverter.cs b/Converters/BitmapToImageSourceConverter.cs similarity index 100% rename from BitmapToImageSourceConverter.cs rename to Converters/BitmapToImageSourceConverter.cs diff --git a/ImagePathConverter.cs b/Converters/ImagePathConverter.cs similarity index 95% rename from ImagePathConverter.cs rename to Converters/ImagePathConverter.cs index 2bec51b..a5865ba 100644 --- a/ImagePathConverter.cs +++ b/Converters/ImagePathConverter.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using System.Windows.Data; using System.Windows.Media.Imaging; -namespace Karaoke_Kingpin +namespace Karaoke_Kingpin.Converters { public class ImagePathConverter : IValueConverter { diff --git a/PinyinToZhuyinConverter.cs b/Converters/PinyinToZhuyinConverter.cs similarity index 99% rename from PinyinToZhuyinConverter.cs rename to Converters/PinyinToZhuyinConverter.cs index 9f4abae..2e20545 100644 --- a/PinyinToZhuyinConverter.cs +++ b/Converters/PinyinToZhuyinConverter.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Karaoke_Kingpin +namespace Karaoke_Kingpin.Converters { public static class PinyinToZhuyinConverter { diff --git a/Index.xaml b/Index.xaml index 30add5c..ae24906 100644 --- a/Index.xaml +++ b/Index.xaml @@ -1,9 +1,10 @@ - - + @@ -378,35 +379,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Karaoke Kingpin.csproj b/Karaoke Kingpin.csproj index 21a7006..f86f5bb 100644 --- a/Karaoke Kingpin.csproj +++ b/Karaoke Kingpin.csproj @@ -265,8 +265,8 @@ MSBuild:Compile Designer - - + + Designer MSBuild:Compile @@ -275,22 +275,22 @@ MSBuild:Compile Designer - + App.xaml Code - - + + Index.xaml - - + + MainWindow.xaml Code - + Code diff --git a/MainWindow.xaml b/MainWindow.xaml index 9eef46d..e691736 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -1,9 +1,9 @@ - diff --git a/SongData.cs b/Models/SongData.cs similarity index 99% rename from SongData.cs rename to Models/SongData.cs index 4371030..fabaeb5 100644 --- a/SongData.cs +++ b/Models/SongData.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace Karaoke_Kingpin +namespace Karaoke_Kingpin.Models { public class SongData { diff --git a/RoomDetailsWindow.xaml b/RoomDetailsWindow.xaml deleted file mode 100644 index ae7fb3a..0000000 --- a/RoomDetailsWindow.xaml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -