Update UIX

This commit is contained in:
Yoshi Askharoun
2023-05-29 00:02:13 -05:00
parent ad2a416621
commit 198bcf3fde
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ namespace ZuneHost.Wpf
private void DecompileResults_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) private void DecompileResults_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{ {
foreach (var result in e.NewItems.Cast<Microsoft.Iris.Debug.DecompilationResult>()) foreach (var result in e.NewItems.Cast<Microsoft.Iris.Debug.Data.DecompilationResult>())
{ {
int count = 0; int count = 0;
string ctx = Path.GetFileName(result.Context.Substring(result.Context.LastIndexOf('/') + 1)); 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) private void DataMappingModels_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{ {
foreach (var item in e.NewItems.Cast<Microsoft.Iris.Debug.DataMappingModel>()) foreach (var item in e.NewItems.Cast<Microsoft.Iris.Debug.Data.DataMappingModel>())
{ {
FileInfo file = new(Path.Combine(dataMapDir, $"{item.Provider}_{item.Type}.cs")); FileInfo file = new(Path.Combine(dataMapDir, $"{item.Provider}_{item.Type}.cs"));
if (file.Exists) file.Delete(); if (file.Exists) file.Delete();
+3
View File
@@ -12,6 +12,7 @@ using System.Threading;
namespace ZuneUI namespace ZuneUI
{ {
[Serializable]
public class MousePosition : ModelItem public class MousePosition : ModelItem
{ {
private int _x; private int _x;
@@ -98,6 +99,8 @@ namespace ZuneUI
x = y = 0; x = y = 0;
} }
public override string ToString() => $"{{MousePosition ({X}, {Y})}}";
[DllImport("User32.dll")] [DllImport("User32.dll")]
private static extern bool GetCursorPos(out POINT lpPoint); private static extern bool GetCursorPos(out POINT lpPoint);