This commit is contained in:
世元 李
2020-03-23 09:38:30 +08:00
parent ab9535dc03
commit e84d435499
29 changed files with 49 additions and 44 deletions

View File

@@ -23,7 +23,8 @@
</LinearGradientBrush>
</TextBox.Background>
</TextBox>
<Button x:Name="apply" Content="Apply" HorizontalAlignment="Left" Height="25" Margin="349.2,220,0,0" VerticalAlignment="Top" Width="90
<Button x:Name="apply" Content="Commit
" HorizontalAlignment="Left" Height="25" Margin="349.2,220,0,0" VerticalAlignment="Top" Width="90
" Click="Button_Click" Grid.Column="1">
<Button.Background>
<ImageBrush ImageSource="04.jpg"/>

View File

@@ -17,6 +17,7 @@ using System.Runtime.InteropServices;
using System.Windows.Threading;
using System.Messaging;
using System.Windows.Interop;
using System.Activities;
namespace cs2_chs
{
@@ -49,8 +50,12 @@ namespace cs2_chs
[DllImport("Kernel32.dll", EntryPoint = "WaitForSingleObject")]
public extern static int WaitForSingleObject(uint hHandle, uint dwMilliseconds);
[DllImport("cs2_patch.dll", EntryPoint = "InjectSelfTo")]
public static extern uint pStart([MarshalAs(UnmanagedType.LPStr)] string path);
[DllImport("cs2_patch.dll", EntryPoint = "CreateDataExport")]
public static extern void CreateData([MarshalAs(UnmanagedType.LPWStr)] string src,[MarshalAs(UnmanagedType.LPWStr)] string path);
[DllImport("Kernel32.dll", EntryPoint = "TerminateProcess")]

View File

@@ -69,6 +69,7 @@
<HintPath>..\packages\Microsoft.IdentityModel.Logging.5.6.0\lib\net461\Microsoft.IdentityModel.Logging.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Activities" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Messaging" />

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F04B42CA40D1146EA344AEDB60ADCFC400A88DF0B94E1795A45B0787A037611F"
#pragma checksum "..\..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9C0A69ED616F64906BBA693AC0D9DF77D16D80985CEA89DB342BEC5391CE52FD"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -57,7 +57,7 @@ namespace cs2_chs {
#line hidden
#line 32 "..\..\..\MainWindow.xaml"
#line 33 "..\..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ProgressBar PBS;
@@ -65,7 +65,7 @@ namespace cs2_chs {
#line hidden
#line 41 "..\..\..\MainWindow.xaml"
#line 42 "..\..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox SRC_OUTPUT;
@@ -146,7 +146,7 @@ namespace cs2_chs {
case 3:
this.apply = ((System.Windows.Controls.Button)(target));
#line 27 "..\..\..\MainWindow.xaml"
#line 28 "..\..\..\MainWindow.xaml"
this.apply.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
#line default
@@ -157,13 +157,13 @@ namespace cs2_chs {
return;
case 5:
#line 33 "..\..\..\MainWindow.xaml"
#line 34 "..\..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
#line default
#line hidden
#line 33 "..\..\..\MainWindow.xaml"
#line 34 "..\..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Button_MouseRightButtonUp);
#line default
@@ -172,7 +172,7 @@ namespace cs2_chs {
case 6:
this.SRC_OUTPUT = ((System.Windows.Controls.TextBox)(target));
#line 41 "..\..\..\MainWindow.xaml"
#line 42 "..\..\..\MainWindow.xaml"
this.SRC_OUTPUT.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.SRC_OUTPUT_MouseRightButtonUp);
#line default
@@ -180,13 +180,13 @@ namespace cs2_chs {
return;
case 7:
#line 65 "..\..\..\MainWindow.xaml"
#line 66 "..\..\..\MainWindow.xaml"
((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CommandBinding_ShowMainWindow_CanExecute);
#line default
#line hidden
#line 66 "..\..\..\MainWindow.xaml"
#line 67 "..\..\..\MainWindow.xaml"
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_ShowMainWindow_Executed);
#line default

View File

@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F04B42CA40D1146EA344AEDB60ADCFC400A88DF0B94E1795A45B0787A037611F"
#pragma checksum "..\..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "9C0A69ED616F64906BBA693AC0D9DF77D16D80985CEA89DB342BEC5391CE52FD"
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -57,7 +57,7 @@ namespace cs2_chs {
#line hidden
#line 32 "..\..\..\MainWindow.xaml"
#line 33 "..\..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.ProgressBar PBS;
@@ -65,7 +65,7 @@ namespace cs2_chs {
#line hidden
#line 41 "..\..\..\MainWindow.xaml"
#line 42 "..\..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox SRC_OUTPUT;
@@ -146,7 +146,7 @@ namespace cs2_chs {
case 3:
this.apply = ((System.Windows.Controls.Button)(target));
#line 27 "..\..\..\MainWindow.xaml"
#line 28 "..\..\..\MainWindow.xaml"
this.apply.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
#line default
@@ -157,13 +157,13 @@ namespace cs2_chs {
return;
case 5:
#line 33 "..\..\..\MainWindow.xaml"
#line 34 "..\..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
#line default
#line hidden
#line 33 "..\..\..\MainWindow.xaml"
#line 34 "..\..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Button_MouseRightButtonUp);
#line default
@@ -172,7 +172,7 @@ namespace cs2_chs {
case 6:
this.SRC_OUTPUT = ((System.Windows.Controls.TextBox)(target));
#line 41 "..\..\..\MainWindow.xaml"
#line 42 "..\..\..\MainWindow.xaml"
this.SRC_OUTPUT.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.SRC_OUTPUT_MouseRightButtonUp);
#line default
@@ -180,13 +180,13 @@ namespace cs2_chs {
return;
case 7:
#line 65 "..\..\..\MainWindow.xaml"
#line 66 "..\..\..\MainWindow.xaml"
((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CommandBinding_ShowMainWindow_CanExecute);
#line default
#line hidden
#line 66 "..\..\..\MainWindow.xaml"
#line 67 "..\..\..\MainWindow.xaml"
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_ShowMainWindow_Executed);
#line default

View File

@@ -1 +1 @@
2be805b5b109991f8cd375e426d41b98980631b6
13037deefd7b2bcb290d940d5795e4320ac588ef

Binary file not shown.

Binary file not shown.

View File

@@ -13,7 +13,7 @@ D:\VSProject\cs2\cs2_united\cs2_chs\App.xaml
360698734
10-2131267635
171117567902
18-1702095681
Advance.xaml;MainWindow.xaml;TextView.xaml;
False

View File

@@ -13,7 +13,7 @@ D:\VSProject\cs2\cs2_united\cs2_chs\App.xaml
360698734
111053777973
171117567902
18-1702095681
Advance.xaml;MainWindow.xaml;TextView.xaml;
True

View File

@@ -1,5 +1,5 @@

FD:\VSProject\cs2\cs2_united\cs2_chs\App.xaml;;
FD:\VSProject\cs2\cs2_united\cs2_chs\Advance.xaml;;
FD:\VSProject\cs2\cs2_united\cs2_chs\MainWindow.xaml;;
FD:\VSProject\cs2\cs2_united\cs2_chs\TextView.xaml;;