From 7f2857b992a6c862e9b38a2a1b693d267f3a6938 Mon Sep 17 00:00:00 2001 From: wenjy Date: Fri, 20 Sep 2024 15:19:21 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=B7=BB=E5=8A=A0=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Page/Version/VersionInfoWindow.xaml | 44 ++++++++++++++++++ .../Page/Version/VersionInfoWindow.xaml.cs | 27 +++++++++++ SlnMesnac.WPF/Page/Version/logo.png | Bin 0 -> 2485 bytes SlnMesnac.WPF/SlnMesnac.WPF.csproj | 4 ++ SlnMesnac.WPF/Templates/image/logo.png | Bin 0 -> 2485 bytes .../ViewModel/MainWindowViewModel.cs | 7 +++ 6 files changed, 82 insertions(+) create mode 100644 SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml create mode 100644 SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs create mode 100644 SlnMesnac.WPF/Page/Version/logo.png create mode 100644 SlnMesnac.WPF/Templates/image/logo.png diff --git a/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml new file mode 100644 index 0000000..c1c6535 --- /dev/null +++ b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs new file mode 100644 index 0000000..ab59010 --- /dev/null +++ b/SlnMesnac.WPF/Page/Version/VersionInfoWindow.xaml.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace SlnMesnac.WPF.Page.Version +{ + /// + /// VersionInfoWindow.xaml 的交互逻辑 + /// + public partial class VersionInfoWindow : Window + { + public VersionInfoWindow() + { + InitializeComponent(); + } + } +} diff --git a/SlnMesnac.WPF/Page/Version/logo.png b/SlnMesnac.WPF/Page/Version/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..e83bb9614bd3914e550b32bba891614adc129079 GIT binary patch literal 2485 zcmd6pdpK148poG;R$1e=XNKHmHKszkY23HW(qLvM6r${ra;vR~hB&S*vPX#tkqX%5|D-&S?18BIj6Xg9keQNEl>z_$+c}+St;Id|1I}* z$3(u*OuKpv3|z_q4bEa_2qYxDi+i#e2U$nZ0OYO|#3%k1&ky!~0fPh|F1=c4ii1e4 z*AB-MXk3IOG#-UuhNg+FyfuJqWKsu{b>iUQzg3MOsbC~GuWnR%;PHup(5vr7Jim}| zM^_haPuA?^&~a8uk#FvW=+HBchOMXlBs~`{o~(%I?Lcc~Lq!HvZXc~fhEAbWgI2yG zvf0J847K;*X42{0mN6Q4E@rI8fb)RThO%L4l)a5pL}8+AGA4C78I&%RO~Ir-CxLPp zb7InfagWl3IWf75afR{*rAjuhTv~34xLuoG8?pS>OurQhv7^f5zSS)R*URi}M85PK+3(^b;Hv>mP`l1*&)e+M0UKcYd@Nh1i>6Qhc zFUB0%V<3SZfx3ILaL|z~tF9Z0G{PAER75BqX0X=iZVmvFv7Iy4yEP6DT~TEHeuTsUe<2`uv1N-8JVh=w&L=t5ykVNGJ zM2M7Y4&wd$rXdjTsD&o%3kUVVp?6XSva_H3R_~aDx-DV=?hS$S+2!*SAODf_soJR&3*aLLGb^o`v zb0cu|8wXfwn!MSU&yh)(O)!VFd?Xf(XF&^M@?)ITIt&UowCoJlh3Tna{s<@Zu3N`f z3#|kNYw7&>Z%JG)Ts>pLMv`CfhVztoRY&=IxWbZ*XOR{83HGLM%en8#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 7634670..0b263dd 100644 --- a/SlnMesnac.WPF/SlnMesnac.WPF.csproj +++ b/SlnMesnac.WPF/SlnMesnac.WPF.csproj @@ -9,8 +9,10 @@ + + @@ -45,8 +47,10 @@ + + diff --git a/SlnMesnac.WPF/Templates/image/logo.png b/SlnMesnac.WPF/Templates/image/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..e83bb9614bd3914e550b32bba891614adc129079 GIT binary patch literal 2485 zcmd6pdpK148poG;R$1e=XNKHmHKszkY23HW(qLvM6r${ra;vR~hB&S*vPX#tkqX%5|D-&S?18BIj6Xg9keQNEl>z_$+c}+St;Id|1I}* z$3(u*OuKpv3|z_q4bEa_2qYxDi+i#e2U$nZ0OYO|#3%k1&ky!~0fPh|F1=c4ii1e4 z*AB-MXk3IOG#-UuhNg+FyfuJqWKsu{b>iUQzg3MOsbC~GuWnR%;PHup(5vr7Jim}| zM^_haPuA?^&~a8uk#FvW=+HBchOMXlBs~`{o~(%I?Lcc~Lq!HvZXc~fhEAbWgI2yG zvf0J847K;*X42{0mN6Q4E@rI8fb)RThO%L4l)a5pL}8+AGA4C78I&%RO~Ir-CxLPp zb7InfagWl3IWf75afR{*rAjuhTv~34xLuoG8?pS>OurQhv7^f5zSS)R*URi}M85PK+3(^b;Hv>mP`l1*&)e+M0UKcYd@Nh1i>6Qhc zFUB0%V<3SZfx3ILaL|z~tF9Z0G{PAER75BqX0X=iZVmvFv7Iy4yEP6DT~TEHeuTsUe<2`uv1N-8JVh=w&L=t5ykVNGJ zM2M7Y4&wd$rXdjTsD&o%3kUVVp?6XSva_H3R_~aDx-DV=?hS$S+2!*SAODf_soJR&3*aLLGb^o`v zb0cu|8wXfwn!MSU&yh)(O)!VFd?Xf(XF&^M@?)ITIt&UowCoJlh3Tna{s<@Zu3N`f z3#|kNYw7&>Z%JG)Ts>pLMv`CfhVztoRY&=IxWbZ*XOR{83HGLM%en8#-`(X09-}&a z)5L&}nS)Q8vxP0Uc7I(p4B?#*O3gJGb$XpDZm^2dh~>R3ch=Ud-8Zh}Ey*6JD)9(( z&TdW7mT)%7UJD+@)@g8v&_M@Vryw;k`2c{lv>91kgX3W0b5%nHDNt>D|1=c^P&&<9 zUiky_e>d2%t{NgqK)7 z-5($rG6F7{;@Di%z-09V0F_HSU880PAR~Y5{e^&o3>gIjewtEX(rC+F1cC){lHcuM za2#B*4Ai$pezU@1WtSf8*e@JB5jb!imI8?hZ7!=s8h0(EJq5(W9N50(T`GVsW;usZ z7ytsEG<1yx2}O-}?&}~p7Tz#Ar)j!6Y#B%oUn^g(4y%1HkdzPEN6HTsf^JRbsk!$o z5X}?*dpzUF+oBEupT7ducBJIA`a6}yb*i^-p??+i8S5-F8Qu%N3a-ITptC<+YP zuj-u=J;59AN#ggby}TSfrlE*LF{2~3P?+O3cAhV8F8WMf?|9LU46M!b_w>v;D%*xs zx-dk#H~ob5J-k;*i!Yl#dv%?eDVbsng!*5uD2!ZYF56%baoCr;u~<(d8|nG=S{POI zN7hqVY}KuT`0$h6(L@X&GAn;Q*6mR5EZo_dv-~S^@!aHUd*x%}&%cb7_UWvmGi>3K>DoQgzPg`WRhQ^rrEZq#4xJ%;eKj^QBkv-AOTYzF0Q&6p98XoO?A9erw2;FLlBS-VUC z6^MOmMA%C3$NO5`$9CMz?bV^S0AhYnckuewJ!$aJ&<|t}nGRz+FADOgPCFq@Mz>PreGZPic&4s}CA}QCj!8MK6k_RNovRr?CBlhly#)h}2;-TW(#lZIkoQa(P*a z@M|AkY~rEtUzS{EU@2+Ps2eKHIWOKz*~=`p+mxEc_DV>-wrR?f&S|3&gq!O|#^f+a_U($?>#< zSeJ^=^7=+FYZ`*9p##YAcIAMb*z~-jv)${zbq~i{=F~a;!;^a!JBI;G8wYx&wHNv? DI>J5M literal 0 HcmV?d00001 diff --git a/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs b/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs index 2439555..6d4bff3 100644 --- a/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/MainWindowViewModel.cs @@ -5,6 +5,7 @@ using Microsoft.Extensions.Logging; using SlnMesnac.Business; using SlnMesnac.WPF.Page; using SlnMesnac.WPF.Page.History; +using SlnMesnac.WPF.Page.Version; using System; using System.Windows; @@ -168,6 +169,12 @@ namespace SlnMesnac.WPF.ViewModel case "History": UserContent = historyControl; break; //historyControl + case "Version": + VersionInfoWindow versionInfoWindow = new VersionInfoWindow(); + versionInfoWindow.Topmost = true; // 设置为最顶层 + versionInfoWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; // 设置为居中 + versionInfoWindow.ShowDialog(); + break; default: break; } }