diff --git a/WindowsTools/Models/LoopbackModel.cs b/WindowsTools/Models/LoopbackModel.cs new file mode 100644 index 0000000..09678c6 --- /dev/null +++ b/WindowsTools/Models/LoopbackModel.cs @@ -0,0 +1,90 @@ +using System; +using System.ComponentModel; +using Windows.UI.Xaml; + +namespace WindowsTools.Models +{ + /// + /// 网络回环数据模型 + /// + public class LoopbackModel : INotifyPropertyChanged + { + private Visibility _isVisible; + + public Visibility IsVisible + { + get { return _isVisible; } + + set + { + if (!Equals(_isVisible, value)) + { + _isVisible = value; + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsVisible))); + } + } + } + + private bool _isChecked; + + public bool IsChecked + { + get { return _isChecked; } + + set + { + if (!Equals(_isChecked, value)) + { + _isChecked = value; + PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsChecked))); + } + } + } + + public bool IsOldChecked { get; set; } + + /// + /// 应用程序运行的二进制路径 + /// + public string[] StringBinaries { get; set; } + + /// + /// 应用容器的全局唯一名称 + /// + public string AppContainerName { get; set; } + + /// + /// 应用容器的友好名称 + /// + public string DisplayName { get; set; } + + /// + /// 应用容器其用途的说明、使用该容器的应用程序的目标等 + /// + public string Description { get; set; } + + public string PackageFullName { get; set; } + + /// + /// 应用容器的工作目录 + /// + public string WorkingDirectory { get; set; } + + /// + /// 应用容器所属用户的名称 + /// + public string UserAccountSIDName { get; set; } + + /// + /// 应用容器的包标识符 + /// + public IntPtr AppContainerSID { get; set; } + + /// + /// 应用容器的包标识符名称 + /// + public string AppContainerSIDName { get; set; } + + public event PropertyChangedEventHandler PropertyChanged; + } +} diff --git a/WindowsTools/Properties/AssemblyInfo.cs b/WindowsTools/Properties/AssemblyInfo.cs index 5b13f8b..a11c949 100644 --- a/WindowsTools/Properties/AssemblyInfo.cs +++ b/WindowsTools/Properties/AssemblyInfo.cs @@ -4,8 +4,8 @@ [assembly: AssemblyCompany("高怡飞")] [assembly: AssemblyCopyright("Copyright ©2024 高怡飞, All Rights Reserved.")] [assembly: AssemblyDescription("Windows 工具箱")] -[assembly: AssemblyFileVersion("2.6.625.0")] -[assembly: AssemblyInformationalVersion("2.6.625.0")] +[assembly: AssemblyFileVersion("2.6.626.0")] +[assembly: AssemblyInformationalVersion("2.6.626.0")] [assembly: AssemblyProduct("Windows 工具箱")] [assembly: AssemblyTitle("Windows 工具箱")] -[assembly: AssemblyVersion("2.6.625.0")] +[assembly: AssemblyVersion("2.6.626.0")] diff --git a/WindowsTools/Strings/LoopbackManager.Designer.cs b/WindowsTools/Strings/LoopbackManager.Designer.cs index 89db7f3..3ea1d5b 100644 --- a/WindowsTools/Strings/LoopbackManager.Designer.cs +++ b/WindowsTools/Strings/LoopbackManager.Designer.cs @@ -60,6 +60,78 @@ internal LoopbackManager() { } } + /// + /// 查找类似 The device has no application 的本地化字符串。 + /// + public static string EmptyDescription { + get { + return ResourceManager.GetString("EmptyDescription", resourceCulture); + } + } + + /// + /// 查找类似 Refresh 的本地化字符串。 + /// + public static string Refresh { + get { + return ResourceManager.GetString("Refresh", resourceCulture); + } + } + + /// + /// 查找类似 Reset 的本地化字符串。 + /// + public static string Reset { + get { + return ResourceManager.GetString("Reset", resourceCulture); + } + } + + /// + /// 查找类似 Save 的本地化字符串。 + /// + public static string Save { + get { + return ResourceManager.GetString("Save", resourceCulture); + } + } + + /// + /// 查找类似 Search app name 的本地化字符串。 + /// + public static string SearchAppNamePHText { + get { + return ResourceManager.GetString("SearchAppNamePHText", resourceCulture); + } + } + + /// + /// 查找类似 No apps found 的本地化字符串。 + /// + public static string SearchEmptyDescription { + get { + return ResourceManager.GetString("SearchEmptyDescription", resourceCulture); + } + } + + /// + /// 查找类似 Select all 的本地化字符串。 + /// + public static string SelectAll { + get { + return ResourceManager.GetString("SelectAll", resourceCulture); + } + } + + /// + /// 查找类似 Select none 的本地化字符串。 + /// + public static string SelectNone { + get { + return ResourceManager.GetString("SelectNone", resourceCulture); + } + } + /// /// 查找类似 Loop back manager 的本地化字符串。 /// diff --git a/WindowsTools/Strings/LoopbackManager.en-us.resx b/WindowsTools/Strings/LoopbackManager.en-us.resx index 5a450b2..0f48f83 100644 --- a/WindowsTools/Strings/LoopbackManager.en-us.resx +++ b/WindowsTools/Strings/LoopbackManager.en-us.resx @@ -117,6 +117,30 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + The device has no application + + + Refresh + + + Reset + + + Save + + + Search app name + + + No apps found + + + Select all + + + Select none + Loop back manager diff --git a/WindowsTools/Strings/LoopbackManager.resx b/WindowsTools/Strings/LoopbackManager.resx index 5a450b2..0f48f83 100644 --- a/WindowsTools/Strings/LoopbackManager.resx +++ b/WindowsTools/Strings/LoopbackManager.resx @@ -117,6 +117,30 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + The device has no application + + + Refresh + + + Reset + + + Save + + + Search app name + + + No apps found + + + Select all + + + Select none + Loop back manager diff --git a/WindowsTools/Strings/LoopbackManager.zh-hans.resx b/WindowsTools/Strings/LoopbackManager.zh-hans.resx index 12bfad0..1e2cc74 100644 --- a/WindowsTools/Strings/LoopbackManager.zh-hans.resx +++ b/WindowsTools/Strings/LoopbackManager.zh-hans.resx @@ -117,6 +117,30 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 该设备没有任何应用 + + + 刷新 + + + 重置 + + + 保存 + + + 搜索应用名称 + + + 没有搜索到任何应用 + + + 全选 + + + 全部不选 + 网络回环管理 diff --git a/WindowsTools/Styles/ListView.xaml b/WindowsTools/Styles/ListView.xaml index f98cda9..a70e72e 100644 --- a/WindowsTools/Styles/ListView.xaml +++ b/WindowsTools/Styles/ListView.xaml @@ -36,7 +36,8 @@ - + + diff --git a/WindowsTools/Views/Pages/DownloadManagerPage.xaml b/WindowsTools/Views/Pages/DownloadManagerPage.xaml index 492e90f..7a313cf 100644 --- a/WindowsTools/Views/Pages/DownloadManagerPage.xaml +++ b/WindowsTools/Views/Pages/DownloadManagerPage.xaml @@ -212,7 +212,7 @@ VerticalAlignment="Center" PlaceholderText="{x:Bind string:DownloadManager.SearchDownloadPHText}" QuerySubmitted="{x:Bind OnSearchDownloadQuerySubmitted}" - Text="{x:Bind SearchDownload, Mode=OneWay}" + Text="{x:Bind SearchDownloadText, Mode=OneWay}" TextChanged="{x:Bind OnSearchDownloadTextChanged}" />