From 0287e8cd62f9fcb33a53c6e749467e996874a384 Mon Sep 17 00:00:00 2001 From: ZGGSONG Date: Fri, 16 Dec 2022 17:25:55 +0800 Subject: [PATCH] feat: add notify --- STranslate/Images/translate2.ico | Bin 0 -> 8593 bytes STranslate/MainWindow.xaml | 18 ++++++++++++++++-- STranslate/Properties/Resources.Designer.cs | 10 ++++++++++ STranslate/Properties/Resources.resx | 3 +++ STranslate/STranslate.csproj | 6 +++++- 5 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 STranslate/Images/translate2.ico diff --git a/STranslate/Images/translate2.ico b/STranslate/Images/translate2.ico new file mode 100644 index 0000000000000000000000000000000000000000..5afe6d493b7e0987d821138426ce05f83c29930e GIT binary patch literal 8593 zcmbtagmLlT13wM`Xrbpw9W50SLPkR9kwi`PzV7wg z>l+^rYE0b=ZJ~z1P1VQ)03xdE8wOI-=>bGR?Y`0zpY*K^Z=WaK-@23{tnOD*4FlqG^TeLoBF7sUI*2rZpWTKtM1H*QOrIK+n5=q^*k$f(Y)A|83hf%|9(i>y z=P7s^KI=-4iS6w*EOe4>N$tjK+b6N>6ICM9A$%2FLAAR&OqXUsBcXkHViW zuZ6{vE_*ND9eYj`+$YdQ87+6D`hBmjFk-Xf5mvR@4?(>zLoxi(^c%*TyDG|0R>elb z#kO42%GAo3fDZAdg$?V((!0>?e?}{TEJ=xt%XaclVeg!jCB96M7cxf3(W>DGKMR;x zamQ=W^j;Q%=}(-lMM3{c_lh>(08@qo%Ets{COA!40i>Qn3@HWOKlfZKVwQ(UYY!g#W#O6!2pK7e?KQM2cZ`pxZ!p1#TaUs###QYKSG{(HG1 zQPIt-mMy!QoERbY-p&Pg<6C|3OvC4&d~5M~J%Lq)9}ct3J6U_GD$H%9$pUWfk%4kU zN9H4XZh|KTr^|K^=uvtuQhvS}k(b9o{K_{o&A1jfLZ35Tclg-7xaUi;g0Q~X!Z96V zFiym$8#u#};MK)iz@@aFY;q*H4SXB~TNtL_E1iEa6oS>!9Y+^kksL{K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Ymq4^*qTJizTiMbqD$zTjwYw{**8(s<>6iKYGD##_Un z!WMPysm%Fp3k1u1_UQ{wWzLU$3eBfmtqQzrRGXD*Kb7L}^0};2QEBGl=iL!^+WN02 zn$6V9uyb_B|Bc*jHR%_~?V35Ol(}A4)^o92`gHr@p`kfUy+%97WU<}XyMCiHuCw00 zX{b8O+f0nKxlyMubHu=u%`@t4%PVv5?8PjQOdza87VEc9Q8g*&h#QuUJwU2 z{8Jhk6Wbj6qLqUqpu+2p%LQ~=faCfsKsTeBt{jcnr3YDzN~qi=ZIu!y<#5a_Z5YzR zlgdi?SNG0S3yU3$Rh-ZVs + Icon="/Images/translate2.ico"> @@ -34,7 +34,21 @@ Click="NotifyIcon_Click" IsBlink="False" Visibility="Visible" - Icon="/Images/translate.ico"/> + Icon="/Images/translate2.ico"> + + + + + + + + + + + /// 查找 System.Byte[] 类型的本地化资源。 + /// + internal static byte[] translate2 { + get { + object obj = ResourceManager.GetObject("translate2", resourceCulture); + return ((byte[])(obj)); + } + } } } diff --git a/STranslate/Properties/Resources.resx b/STranslate/Properties/Resources.resx index 2a42a7b..c220c70 100644 --- a/STranslate/Properties/Resources.resx +++ b/STranslate/Properties/Resources.resx @@ -127,6 +127,9 @@ ..\images\translate.ico;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\images\translate2.ico;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + ..\images\translate_x128.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 diff --git a/STranslate/STranslate.csproj b/STranslate/STranslate.csproj index 32cfa36..b8e1ae3 100644 --- a/STranslate/STranslate.csproj +++ b/STranslate/STranslate.csproj @@ -4,7 +4,7 @@ WinExe net5.0-windows true - Images\translate.ico + Images\translate2.ico @@ -12,6 +12,7 @@ + @@ -38,6 +39,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest