From e796bf2f35411d9c9fbb0de7522f82f5916b0653 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Mon, 13 Jan 2020 19:57:02 -0500 Subject: [PATCH] Event manager improvements. Changed to console.writeline instead of diagnostics --- .../Components/MemberList/MemberList.xaml | 2 - .../Extensions/ImageResourceExtension.cs | 2 +- Aurora/Design/Views/MainView/MainView.xaml.cs | 1 - Aurora/Design/Views/Party/PartyView.css | 31 +++++++++++++- Aurora/Design/Views/Party/PartyView.xaml | 26 ++++++++++-- Aurora/Design/Views/Party/PartyViewModel.cs | 23 +++++++++-- Aurora/Models/Media/RemoteAudio.cs | 4 +- Aurora/RemoteImpl/RemoteEventImpl.cs | 40 +++++++------------ Aurora/RemoteImpl/RemotePartyImpl.cs | 9 +++-- Aurora/RemoteImpl/RemotePlaybackImpl.cs | 6 +-- Aurora/RemoteImpl/RemoteSyncImpl.cs | 2 +- .../Services/ClientService/ClientService.cs | 6 +-- Aurora/Services/EventManager/EventManager.cs | 37 ++++++++++++----- .../Services/PlayerService/PlayerService.cs | 18 ++++----- Aurora/Services/ServerService.cs | 4 +- Aurora/Utils/Combine.cs | 25 ++++++++++++ Aurora/Utils/FileSystemUtils.cs | 2 +- 17 files changed, 165 insertions(+), 73 deletions(-) create mode 100644 Aurora/Utils/Combine.cs diff --git a/Aurora/Design/Components/MemberList/MemberList.xaml b/Aurora/Design/Components/MemberList/MemberList.xaml index 6ef4d0e..1be0462 100644 --- a/Aurora/Design/Components/MemberList/MemberList.xaml +++ b/Aurora/Design/Components/MemberList/MemberList.xaml @@ -2,7 +2,6 @@ @@ -14,7 +13,6 @@ x:Name="MembersList" FlowColumnMinWidth="150" RowHeight="150" - VerticalOptions="FillAndExpand" SeparatorVisibility="None" BackgroundColor="#181818" HasUnevenRows="false"> diff --git a/Aurora/Design/Extensions/ImageResourceExtension.cs b/Aurora/Design/Extensions/ImageResourceExtension.cs index 312dc4f..22a0421 100644 --- a/Aurora/Design/Extensions/ImageResourceExtension.cs +++ b/Aurora/Design/Extensions/ImageResourceExtension.cs @@ -25,7 +25,7 @@ namespace Aurora.Design.Extensions foreach (var res in gtkAsm.GetManifestResourceNames()) { - System.Diagnostics.Debug.WriteLine("found resource: " + res); + Console.WriteLine("found resource: " + res); } if (gtkAsm == null && gtkAsm is Assembly) diff --git a/Aurora/Design/Views/MainView/MainView.xaml.cs b/Aurora/Design/Views/MainView/MainView.xaml.cs index c3d674b..8985105 100644 --- a/Aurora/Design/Views/MainView/MainView.xaml.cs +++ b/Aurora/Design/Views/MainView/MainView.xaml.cs @@ -146,7 +146,6 @@ namespace Aurora.Design.Views.Main vm.OnActive(); _viewContent.Content = view; - MasterPage.ListView.SelectedItem = firstNavItem; } diff --git a/Aurora/Design/Views/Party/PartyView.css b/Aurora/Design/Views/Party/PartyView.css index 6b8158a..4c85923 100644 --- a/Aurora/Design/Views/Party/PartyView.css +++ b/Aurora/Design/Views/Party/PartyView.css @@ -5,4 +5,33 @@ Label { #MembersList { height: 100; background-color: transparent; -} \ No newline at end of file +} + +#LeaveButton { + margin-top: 20; + margin-bottom: 20; + vertical-align: bottom; + align-self: center; +} + +#MembersList { + background-color: #1e1e1e; +} + +#MembersList Grid { + margin-left: 20; + margin-right: 20; + margin-top: 20; + margin-bottom: 20; + width: 150; + border-radius: 25; + background-color: #626363; +} + +#MembersList Label { + text-align: center; + vertical-align: middle; + color: white; + font-size: 20; +} + diff --git a/Aurora/Design/Views/Party/PartyView.xaml b/Aurora/Design/Views/Party/PartyView.xaml index ce1a91a..c2d4dba 100644 --- a/Aurora/Design/Views/Party/PartyView.xaml +++ b/Aurora/Design/Views/Party/PartyView.xaml @@ -22,13 +22,31 @@ HeaderBackgroundColor="#181818" x:Name="TabView"> + - + + + + + + + +