From 198bcf3fde9103c1e9db01943e677565f0226fcb Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Mon, 29 May 2023 00:02:13 -0500 Subject: [PATCH] Update UIX --- ZuneHost.Wpf/MainWindow.xaml.cs | 4 ++-- ZuneShell/ZuneUI/MousePosition.cs | 3 +++ libs/MicrosoftIris | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ZuneHost.Wpf/MainWindow.xaml.cs b/ZuneHost.Wpf/MainWindow.xaml.cs index b8784b3..04bbb78 100644 --- a/ZuneHost.Wpf/MainWindow.xaml.cs +++ b/ZuneHost.Wpf/MainWindow.xaml.cs @@ -95,7 +95,7 @@ namespace ZuneHost.Wpf private void DecompileResults_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { - foreach (var result in e.NewItems.Cast()) + foreach (var result in e.NewItems.Cast()) { int count = 0; string ctx = Path.GetFileName(result.Context.Substring(result.Context.LastIndexOf('/') + 1)); @@ -117,7 +117,7 @@ namespace ZuneHost.Wpf private void DataMappingModels_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { - foreach (var item in e.NewItems.Cast()) + foreach (var item in e.NewItems.Cast()) { FileInfo file = new(Path.Combine(dataMapDir, $"{item.Provider}_{item.Type}.cs")); if (file.Exists) file.Delete(); diff --git a/ZuneShell/ZuneUI/MousePosition.cs b/ZuneShell/ZuneUI/MousePosition.cs index 58fc52a..8bba202 100644 --- a/ZuneShell/ZuneUI/MousePosition.cs +++ b/ZuneShell/ZuneUI/MousePosition.cs @@ -12,6 +12,7 @@ using System.Threading; namespace ZuneUI { + [Serializable] public class MousePosition : ModelItem { private int _x; @@ -98,6 +99,8 @@ namespace ZuneUI x = y = 0; } + public override string ToString() => $"{{MousePosition ({X}, {Y})}}"; + [DllImport("User32.dll")] private static extern bool GetCursorPos(out POINT lpPoint); diff --git a/libs/MicrosoftIris b/libs/MicrosoftIris index 2a8f203..cce208c 160000 --- a/libs/MicrosoftIris +++ b/libs/MicrosoftIris @@ -1 +1 @@ -Subproject commit 2a8f203df5ca58713095c63ab8dc2441cd80c5a8 +Subproject commit cce208c4ea0d5122cf73d79afcd4776323073098