From 26c3d1678004427b1ff4719a1816bf199c19c1ed Mon Sep 17 00:00:00 2001 From: xxe Date: Tue, 6 Sep 2022 16:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardIN/Bootstrapper.cs | 68 ++++++++++++++- HKCardIN/HKCardIN.csproj | 9 +- HKCardIN/HKResouces/头像.png | Bin 0 -> 3017 bytes HKCardIN/ViewModels/RootViewModel.cs | 9 +- HKCardIN/Views/RootView.xaml | 122 +++++++++++++++++++++++---- HKCardOUT/HKCardOUT.csproj | 3 +- 6 files changed, 185 insertions(+), 26 deletions(-) create mode 100644 HKCardIN/HKResouces/头像.png diff --git a/HKCardIN/Bootstrapper.cs b/HKCardIN/Bootstrapper.cs index fe98aeb..53476ae 100644 --- a/HKCardIN/Bootstrapper.cs +++ b/HKCardIN/Bootstrapper.cs @@ -1,11 +1,77 @@ -using HKCardIN.ViewModels; +using HandyControl.Controls; +using HKCardIN.ViewModels; using Stylet; +using StyletIoC; using System; +using System.Configuration; +using System.Windows.Controls; +using System.Windows.Threading; +using System.Windows; namespace HKCardIN { public class Bootstrapper : Bootstrapper { + /// + /// 程序启动 + /// + protected override void OnStart() + { + } + protected override void ConfigureIoC(IStyletIoCBuilder builder) + { + } + + /// + /// 初始化系统相关参数配置 + /// + protected override void Configure() + { + base.Configure(); + } + + /// + /// 初始化VM + /// + protected override void Launch() + { + base.Launch(); + } + + /// + /// 加载首页VM + /// + /// + protected override void DisplayRootView(object rootViewModel) + { + base.DisplayRootView(rootViewModel); + } + + /// + ///VM加载完毕 + /// + protected override void OnLaunch() + { + base.OnLaunch(); + } + + /// + /// 退出 + /// + /// + protected override void OnExit(ExitEventArgs e) + { + base.OnExit(e); + } + + /// + /// 全局异常捕获 + /// + /// + protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e) + { + GC.Collect(); + } } } diff --git a/HKCardIN/HKCardIN.csproj b/HKCardIN/HKCardIN.csproj index 1befbc5..b789c4e 100644 --- a/HKCardIN/HKCardIN.csproj +++ b/HKCardIN/HKCardIN.csproj @@ -1,7 +1,8 @@  WinExe - net5.0-windows + net6.0-windows + zh-Hans true HKCardIN HKCardIN @@ -17,8 +18,14 @@ TRACE;Core + + + + + + diff --git a/HKCardIN/HKResouces/头像.png b/HKCardIN/HKResouces/头像.png new file mode 100644 index 0000000000000000000000000000000000000000..d3f28c213ca4d3e2ec9d2c43b76e3dad19c6e050 GIT binary patch literal 3017 zcmZ`*dpuO@8g_}v$S@a|Tt*b83mcB{C?-3^T%52d)NBD_x-;2dEe(*LS_(M z2WyN~QBl$H_oM9u&s1<-TCNH17OM_C1`pN5opf)Nnun&dz*rXL73ig+QeUL~X`cqL zwc`DDC#tC6x|Ek{Z(Q|36&3Apf120#$>H+RQJ&1%VEew`Zhi?xHVNNJ569K~v8LpA zuR}hBdqop!_X3$sk@Bqfto3kJw#K7PYkPC2dgJa4x}J13abHrHqlz1Uy!kBEXd1=k zCe43ZX7}i=qDHo+PAYCuZE~mXESjb@NXw!hTj5&^e69%GyTqlj%|5hd=_s*m ze-w$UgOkL_%))na^IEdKc_WeN1~vW*R?VqbJ(U&iITKnMVOc)5GER}@x7VE0ZB}l4 zRDk4k&QYWuhH#Wi<2Cs_#gci0JiR!>acq&2OERWJF)2q$c*=;uH1EYPZ~!TU+{j%NO+@+6M)Z9cwL;l+gQ-(g+ok83gJ|$Rn-0Iy6?eq*(Y|b^DZj%@gvr zi@BVk)r;}oe?7xh68nOeB)%1zj8|?gJ%z}&6d@edF`h;hNB+5MJBZ6|u;SSbK26H! zY(k8udFK)$2(T9e4RK68sS`ps!PE#5{un|kB*(#hVYyR-G_>;^5;u0rMnclC2lTFM8GHKX~zd`q~TE?ej*?70){EqZ@ALk#&tlzokW0FYF)?tOy zU|6fNuz~hPbnZvf77P*kzR!;uFQapQ`Osk;3 z;9H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HilMx0%wGz&B2N-!(>XG~5*HA9b@kKjndy_&81X{v2qY$jklGncAd9UjerSxp5{ z;%4_{jp55d7I%cRQ7h6wN6LoFcP*$f{brUtHKi2nrX@`jlbsP9o(f8{nWSXwEiLa6 zhj-6@CoG>$2!Klj<(>d!GVBzior~6WB;5!>b3IOdGX5L`B$hPbHGX09nen@4yqi4z zuDh*_X|IW1>sr=V;SwgQeefo39q-TKq^XE|@F>k=Dbit6L!F(`Kvt&QU!AyOYaXKF z!(&o(7u>1h46Pi~)+*%Pge_#Fx6K4HUq62jXy`ZkEY;N9`kVk%DLo9fhZ};4ss7kO z&kQXL1H|*IOiUI48QJRibV8`}geXANPVFIrU&e^e4x&k&O { - private string _title = "HandyControl Application"; - public string Title - { - get { return _title; } - set { SetAndNotify(ref _title, value); } - } - public RootViewModel() { diff --git a/HKCardIN/Views/RootView.xaml b/HKCardIN/Views/RootView.xaml index 3d4577d..35efc34 100644 --- a/HKCardIN/Views/RootView.xaml +++ b/HKCardIN/Views/RootView.xaml @@ -1,16 +1,108 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HKCardOUT/HKCardOUT.csproj b/HKCardOUT/HKCardOUT.csproj index e952fab..f6a6848 100644 --- a/HKCardOUT/HKCardOUT.csproj +++ b/HKCardOUT/HKCardOUT.csproj @@ -1,7 +1,8 @@  WinExe - net5.0-windows + net6.0-windows + zh-Hans true HKCardOUT HKCardOUT