This commit is contained in:
jianxin committed 2024-01-05 15:10:10 +08:00
1 parent b207468416
commit 3a0976680e
51 files changed
+227 -1781

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-3
View File
@@ -45,9 +45,6 @@ namespace SAPRecorderApp
{
m_window = new MainWindow();
m_window.Activate();
}
private Window m_window;
+8 -8
View File
@@ -46,23 +46,23 @@
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Button x:Name="recordButton" Click="RecordButton_Click" Grid.Row="0" Grid.Column="0" Style="{StaticResource AccentButtonStyle}" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="90">
<Button x:Name="recordButton" Click="RecordButton_Click" Grid.Row="0" Grid.Column="0" Style="{StaticResource AccentButtonStyle}" Margin="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="100">
<StackPanel Orientation="Horizontal">
<FontIcon Glyph="&#xE7C8;" />
<FontIcon x:Name="recordButtonIcon" Glyph="&#xE7C8;" />
<TextBlock Margin="5,0,0,0" Text="Record" HorizontalAlignment="Center"/>
</StackPanel>
</Button>
<Button x:Name="clearButton" Click="ClearButton_Click" Grid.Row="0" Grid.Column="1" Style="{StaticResource AccentButtonStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="90">
<Button x:Name="clearButton" Click="ClearButton_Click" Grid.Row="0" Grid.Column="1" Style="{StaticResource AccentButtonStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100">
<StackPanel Orientation="Horizontal">
<FontIcon Glyph="&#xE894;" />
<FontIcon x:Name="clearButtonIcon" Glyph="&#xE894;" />
<TextBlock Margin="5,0,0,0" Text="Clear" HorizontalAlignment="Center"/>
</StackPanel>
</Button>
<Button x:Name="copyButton" Click="CopyButton_Click" Grid.Row="0" Grid.Column="2" Style="{StaticResource AccentButtonStyle}" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="90">
<Button x:Name="copyButton" Click="CopyButton_Click" Grid.Row="0" Grid.Column="2" Style="{StaticResource AccentButtonStyle}" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="100">
<StackPanel Orientation="Horizontal">
<FontIcon Glyph="&#xE8C8;" />
<TextBlock Margin="5,0,0,0" Text="Copy" HorizontalAlignment="Center"/>
@@ -70,9 +70,9 @@
</Button>
<InfoBar Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" IsOpen="True" Severity="Informational" FontSize="6" Title="Title" Padding="0" Margin="10,10,10,0" Message="Essential." HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center"/>
<TextBox x:Name="recordTextBox" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Margin="10" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
<ProgressBar Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsIndeterminate="False" ShowPaused="True" ShowError="False" />
<InfoBar x:Name="recordInfoBar" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" IsOpen="False" Severity="Informational" FontSize="6" Title="Title" Padding="0" Margin="10,10,10,0" Message="Essential." HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Center"/>
<TextBox x:Name="recordTextBox" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Margin="10,10,10,5" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
<ProgressBar x:Name="recordProgressBar" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsIndeterminate="False" ShowPaused="False" ShowError="False" />
</Grid>
+62
View File
@@ -6,7 +6,11 @@ using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using System.Threading;
using Windows.ApplicationModel;
using System.Collections;
using System.Threading.Tasks;
using System.Collections.Concurrent;
@@ -18,8 +22,10 @@ namespace SAPRecorderApp
/// <summary>
/// An empty window that can be used on its own or navigated to within a Frame.
/// </summary>
///
public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
@@ -44,10 +50,60 @@ namespace SAPRecorderApp
SystemBackdrop = new DesktopAcrylicBackdrop();
Task.Run(() =>
{
foreach (var item in Globals.recordTextQueue.GetConsumingEnumerable())
{
SetTextBox(item + "\n");
}
});
}
private void SetTextBox(string text)
{
this.DispatcherQueue.TryEnqueue(() =>
{
this.recordTextBox.Text += text;
});
}
private void RecordButton_Click(object sender, RoutedEventArgs e)
{
var sapGui = new SapGui();
sapGui.textBox = recordTextBox;
sapGui.Session.Record = true;
if (recordButton.Content == "Record")
{
if (sapGui.Session != null)
{
recordButton.Content = "Stop";
recordInfoBar.IsOpen = false;
recordInfoBar.Message = "";
recordInfoBar.Title = "";
recordInfoBar.Severity = InfoBarSeverity.Informational;
sapGui.BeginRecord();
recordProgressBar.IsIndeterminate = true;
}
else
{
recordInfoBar.IsOpen = true;
recordInfoBar.Message = "Please login SAP First";
recordInfoBar.Title = "";
recordInfoBar.Severity = InfoBarSeverity.Warning;
}
}
else
{
recordButton.Content = "Record";
recordButtonIcon.Glyph = "\uE7C8";
recordProgressBar.IsIndeterminate = false;
}
}
private void CopyButton_Click(object sender, RoutedEventArgs e)
@@ -100,4 +156,10 @@ namespace SAPRecorderApp
// return AppWindow.GetFromWindowId(wndId);
//}
}
public static class Globals
{
//public static Queue recordTextQueue = new Queue();
public static BlockingCollection<string> recordTextQueue = new BlockingCollection<string>();
}
}
+2 -4
View File
@@ -7,12 +7,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PublishProtocol>FileSystem</PublishProtocol>
<Platform>x86</Platform>
<RuntimeIdentifier>win10-x86</RuntimeIdentifier>
<PublishDir>bin\\\win10-x86\publish\</PublishDir>
<PublishDir>bin\\\win10-x86\publish\win10-x86\win10-x86\</PublishDir>
<SelfContained>false</SelfContained>
<PublishSingleFile>false</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">true</PublishReadyToRun>
<Configuration>Release</Configuration>
<Configuration>Debug</Configuration>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2024-01-04T16:11:10.2241756Z;True|2024-01-05T00:10:19.9868526+08:00;</History>
<History>True|2024-01-05T02:34:52.3017409Z;True|2024-01-05T10:32:49.4162961+08:00;True|2024-01-05T10:31:08.8075962+08:00;True|2024-01-05T10:23:59.9136701+08:00;True|2024-01-05T00:11:10.2241756+08:00;True|2024-01-05T00:10:19.9868526+08:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>
+128
View File
@@ -0,0 +1,128 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using SAPFEWSELib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Core;
using Microsoft.UI;
using Microsoft.UI.Windowing;
using System.Diagnostics;
namespace SAPRecorderApp;
public class SapGui
{
public GuiApplication Application { get; set; }
public GuiConnection Connection { get; set; }
public GuiSession Session { get; set; }
public TextBox textBox { get; set; }
public SapGui()
{
SapROTWr.CSapROTWrapper sapROTWrapper = new SapROTWr.CSapROTWrapper();
object SapGuilRot = sapROTWrapper.GetROTEntry("SAPGUI");
if (SapGuilRot != null)
{
object engine = SapGuilRot.GetType().InvokeMember("GetScriptingEngine", System.Reflection.BindingFlags.InvokeMethod, null, SapGuilRot, null);
Application = (GuiApplication)engine;
Connection = (GuiConnection)Application.Connections.ElementAt(0);
Session = (GuiSession)Connection.Sessions.ElementAt(0);
}
}
public void login(string desc, string username, string password)
{
Application.OpenConnection(desc);
Connection = (GuiConnection)Application.Connections.ElementAt(0);
Session = (GuiSession)Connection.Sessions.ElementAt(0);
GuiFrameWindow frame = (GuiFrameWindow)Session.FindById("wnd[0]");
frame.Maximize();
GuiTextField usernameTextField = (GuiTextField)Session.FindById("wnd[0]/usr/txtRSYST-BNAME");
usernameTextField.Text = username;
GuiTextField passwordTextField = (GuiTextField)Session.FindById("wnd[0]/usr/pwdRSYST-BCODE");
passwordTextField.Text = password;
frame.SendVKey(0);
}
public void BeginRecord()
{
Session.Change += Session_Change;
}
private void SetTextBox(string text)
{
textBox.Text = text;
}
private void Session_Change(GuiSession Session, GuiComponent Component, object CommandArray)
{
object[] objs = CommandArray as object[];
objs = objs[0] as object[];
var Action = "SetProperty";
switch (objs[0].ToString().ToLower())
{
case "m":
Action = "InvokeMethod";
break;
case "sp":
Action = "SetProperty";
break;
}
var ActionName = objs[1].ToString();
string id = Component.Id;
var pathToRoot = new List<GuiComponent>();
GuiComponent element = Component;
while (element != null)
{
// Program.log(element.Id);
if (element is GuiSession)
{
id = id.Substring(element.Id.Length + 1);
}
pathToRoot.Add(element);
element = element.Parent as GuiComponent;
}
var prefix = $"sap.session.findByid({id})";
if (Action == "InvokeMethod")
{
prefix += $".{ActionName}(";
var parameters = new List<string>();
if (objs.Length >= 3)
{
var array = objs[2] as object[];
if (array != null)
{
foreach (var item in array)
{
Console.WriteLine(item.ToString());
parameters.Add(item.ToString());
}
prefix += string.Join(",", parameters);
}
}
prefix += ")";
}
else if (Action == "SetProperty")
{
prefix += $".{ActionName} = \"{objs[2].ToString()}\"";
}
Console.WriteLine(prefix);
Globals.recordTextQueue.Add(prefix);
//SetTextBox(prefix + "\n");
}
}
+21
View File
@@ -10,7 +10,28 @@
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
</PropertyGroup>
<ItemGroup>
<COMReference Include="SAPFEWSELib">
<WrapperTool>tlbimp</WrapperTool>
<VersionMinor>0</VersionMinor>
<VersionMajor>1</VersionMajor>
<Guid>5ea428a0-f2b8-45e7-99fa-0e994e82b5bc</Guid>
<Lcid>0</Lcid>
<Isolated>false</Isolated>
<EmbedInteropTypes>true</EmbedInteropTypes>
</COMReference>
<COMReference Include="SapROTWr">
<VersionMinor>0</VersionMinor>
<VersionMajor>1</VersionMajor>
<Guid>e2779c61-f87e-4038-98a0-1d9e71334706</Guid>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>false</Isolated>
<EmbedInteropTypes>true</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<ItemGroup>
<Content Include="Assets\SplashScreen.scale-200.png" />
+5 -1
View File
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>D:\CS\SAPRecorderApp\Properties\PublishProfiles\win10-x86.pubxml</_LastSelectedProfileId>
<_LastSelectedProfileId>C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\Properties\PublishProfiles\win10-x64.pubxml</_LastSelectedProfileId>
<ActiveDebugProfile>SAPRecorderApp (Package)</ActiveDebugProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
<ItemGroup>
<None Update="App.xaml">
-137
View File
@@ -1,137 +0,0 @@
{
"format": 1,
"restore": {
"D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj": {}
},
"projects": {
"D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj",
"projectName": "SAPRecorderApp",
"projectPath": "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj",
"packagesPath": "C:\\Users\\wn\\.nuget\\packages\\",
"outputPath": "D:\\CS\\SAPRecorderApp\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\wn\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net8.0-windows10.0.19041.0"
],
"sources": {
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {},
"https://pkgs.dev.azure.com/ms/DevHome/_packaging/DevHomeDependencies/nuget/v3/index.json": {}
},
"frameworks": {
"net8.0-windows10.0.19041": {
"targetAlias": "net8.0-windows10.0.19041.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "default"
}
},
"frameworks": {
"net8.0-windows10.0.19041": {
"targetAlias": "net8.0-windows10.0.19041.0",
"dependencies": {
"Microsoft.Windows.SDK.BuildTools": {
"target": "Package",
"version": "[10.0.22621.755, )"
},
"Microsoft.WindowsAppSDK": {
"target": "Package",
"version": "[1.4.231115000, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.win-arm64",
"version": "[8.0.0-preview.7.23375.9, 8.0.0-preview.7.23375.9]"
},
{
"name": "Microsoft.AspNetCore.App.Runtime.win-x64",
"version": "[8.0.0-preview.7.23375.9, 8.0.0-preview.7.23375.9]"
},
{
"name": "Microsoft.AspNetCore.App.Runtime.win-x86",
"version": "[8.0.0-preview.7.23375.9, 8.0.0-preview.7.23375.9]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-arm64",
"version": "[8.0.0-preview.7.23375.6, 8.0.0-preview.7.23375.6]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-x64",
"version": "[8.0.0-preview.7.23375.6, 8.0.0-preview.7.23375.6]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-x86",
"version": "[8.0.0-preview.7.23375.6, 8.0.0-preview.7.23375.6]"
},
{
"name": "Microsoft.Windows.SDK.NET.Ref",
"version": "[10.0.19041.29, 10.0.19041.29]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-arm64",
"version": "[8.0.0-preview.7.23376.1, 8.0.0-preview.7.23376.1]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-x64",
"version": "[8.0.0-preview.7.23376.1, 8.0.0-preview.7.23376.1]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-x86",
"version": "[8.0.0-preview.7.23376.1, 8.0.0-preview.7.23376.1]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.Windows.SDK.NET.Ref": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100-preview.7.23376.3\\RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win10-arm64": {
"#import": []
},
"win10-x64": {
"#import": []
},
"win10-x86": {
"#import": []
}
}
}
}
}
-23
View File
@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\wn\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\wn\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.props" Condition="Exists('$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.props')" />
<Import Project="$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.props" Condition="Exists('$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_WindowsAppSDK Condition=" '$(PkgMicrosoft_WindowsAppSDK)' == '' ">C:\Users\wn\.nuget\packages\microsoft.windowsappsdk\1.4.231115000</PkgMicrosoft_WindowsAppSDK>
</PropertyGroup>
</Project>
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.targets')" />
</ImportGroup>
</Project>
File diff suppressed because it is too large. Load diff
@@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
Whitespace-only changes.
@@ -1,17 +0,0 @@
#pragma checksum "C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "98DCE876EA2EBE3A726188EF04999052B6FC3BB81D66C1066B8B2D18720DBF66"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SAPRecorderApp
{
partial class App : global::Microsoft.UI.Xaml.Application
{
}
}
Whitespace-only changes.
@@ -1,51 +0,0 @@
#pragma checksum "C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "189B70B06EF0EEA689F1266D17271F1B299134CF063CE0E665416C1F6861223D"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SAPRecorderApp
{
partial class MainWindow :
global::Microsoft.UI.Xaml.Window,
global::Microsoft.UI.Xaml.Markup.IComponentConnector
{
/// <summary>
/// Connect()
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2306")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Connect(int connectionId, object target)
{
switch(connectionId)
{
case 2: // MainWindow.xaml line 19
{
this.myButton = global::WinRT.CastExtensions.As<global::Microsoft.UI.Xaml.Controls.Button>(target);
((global::Microsoft.UI.Xaml.Controls.Button)this.myButton).Click += this.myButton_Click;
}
break;
default:
break;
}
this._contentLoaded = true;
}
/// <summary>
/// GetBindingConnector(int connectionId, object target)
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2306")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::Microsoft.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
{
global::Microsoft.UI.Xaml.Markup.IComponentConnector returnValue = null;
return returnValue;
}
}
}
@@ -1,9 +0,0 @@
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.AssemblyReference.cache
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.g.i.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.g.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.g.i.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.g.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.xaml
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.xaml
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.xbf
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.xbf
@@ -1,100 +0,0 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Microsoft.Windows.SDK.BuildTools/10.0.22621.755": {},
"Microsoft.WindowsAppSDK/1.3.230602002": {
"dependencies": {
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.755"
},
"runtime": {
"lib/net6.0-windows10.0.18362.0/Microsoft.InteractiveExperiences.Projection.dll": {
"assemblyVersion": "10.0.0.0",
"fileVersion": "10.0.22623.1046"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.WinUI.dll": {
"assemblyVersion": "3.0.0.0",
"fileVersion": "3.0.0.2306"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.AppLifecycle.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.AppNotifications.Builder.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.AppNotifications.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.ApplicationModel.Resources.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.PushNotifications.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.Security.AccessControl.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.System.Power.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.System.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.Widgets.Projection.dll": {
"assemblyVersion": "1.0.0.0",
"fileVersion": "1.0.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.WindowsAppRuntime.Bootstrap.Net.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.WindowsAppRuntime.Release.Net.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
}
},
"native": {
"runtimes/win10-x86/native/Microsoft.WindowsAppRuntime.Bootstrap.dll": {
"fileVersion": "1.3.0.0"
}
}
}
}
},
"libraries": {
"Microsoft.Windows.SDK.BuildTools/10.0.22621.755": {
"type": "package",
"serviceable": true,
"sha512": "sha512-zGXDCZc2/slVjpNtopNETCjnOqH9KiEdo9dPCcjtNWwK5W+EmOcEn7X5Ftj3tOE9kLvroga1s7WwLh2a5jQEEg==",
"path": "microsoft.windows.sdk.buildtools/10.0.22621.755",
"hashPath": "microsoft.windows.sdk.buildtools.10.0.22621.755.nupkg.sha512"
},
"Microsoft.WindowsAppSDK/1.3.230602002": {
"type": "package",
"serviceable": true,
"sha512": "sha512-O0l35DvaYfFDyGPPABppmc8Y9RByN0ch/XHTJulqolNeDoR4JN9itd/k8CQTnuql+nte22564laohoelZxV3XA==",
"path": "microsoft.windowsappsdk/1.3.230602002",
"hashPath": "microsoft.windowsappsdk.1.3.230602002.nupkg.sha512"
}
}
}
@@ -1,18 +0,0 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.20"
},
"additionalProbingPaths": [
"C:\\Users\\32075\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\32075\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
@@ -1,2 +0,0 @@
App.xbf
MainWindow.xbf
@@ -1,2 +0,0 @@
App.xbf
MainWindow.xbf
@@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
@@ -1,63 +0,0 @@
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.exe
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.xbf
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.xbf
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.deps.json
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.runtimeconfig.json
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.pdb
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\resources.pri
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\AppxManifest.xml
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.InteractiveExperiences.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.WinUI.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.AppLifecycle.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.AppNotifications.Builder.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.AppNotifications.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.ApplicationModel.Resources.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.PushNotifications.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.Security.AccessControl.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.System.Power.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.System.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.Widgets.Providers.Projection.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.WindowsAppRuntime.Bootstrap.Net.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.WindowsAppRuntime.Bootstrap.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.SDK.NET.dll
D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\WinRT.Runtime.dll
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.AssemblyReference.cache
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.g.i.cs
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.g.cs
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.g.i.cs
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.g.cs
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\XamlTypeInfo.g.cs
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.xaml
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.xaml
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.xbf
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.xbf
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\XamlSaveStateFile.xml
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.GeneratedMSBuildEditorConfig.editorconfig
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.AssemblyInfoInputs.cache
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.AssemblyInfo.cs
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.CoreCompileInputs.cache
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.CopyComplete
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.dll
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\refint\SAPRecorderApp.dll
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.pdb
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.genruntimeconfig.cache
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\ref\SAPRecorderApp.dll
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\priconfig.xml
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\priconfig.xml.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\unfiltered.layout.resfiles
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\unfiltered.layout.resfiles.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\filtered.layout.resfiles
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\filtered.layout.resfiles.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\excluded.layout.resfiles
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\excluded.layout.resfiles.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\resources.resfiles
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\resources.resfiles.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\pri.resfiles
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\pri.resfiles.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\qualifiers.txt
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\qualifiers.txt.intermediate
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MultipleQualifiersPerDimensionFound.txt
D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\ProjectArchitectures.txt
@@ -1,2 +0,0 @@
App.xbf
MainWindow.xbf
@@ -1,2 +0,0 @@
App.xbf
MainWindow.xbf