Skip to content

Commit

Permalink
Fixed decompilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danong committed Sep 2, 2018
1 parent e765ad5 commit 72288e2
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 42 deletions.
4 changes: 2 additions & 2 deletions App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ namespace mhw_dps_wpf
{
public class App : Application
{
[DebuggerNonUserCode]
// [DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent()
{
this.StartupUri = new Uri("MainWindow.xaml", UriKind.Relative);
}

[STAThread]
[DebuggerNonUserCode]
// [DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
public static void Main()
{
Expand Down
40 changes: 4 additions & 36 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public partial class MainWindow : Window, IComponentConnector
private double last_activated = MainWindow.time();
private Process game;
private bool init_finished;
internal Canvas front_canvas;
private bool _contentLoaded;

public MainWindow()
{
Expand Down Expand Up @@ -217,10 +215,10 @@ private void init_canvas()
Canvas.SetLeft((UIElement) this.player_dmg_tbs[index], this.front_canvas.ActualWidth - this.player_dmg_tbs[index].Width - 3.0);
this.front_canvas.Children.Add((UIElement) this.player_dmg_tbs[index]);
}
this.player_name_tbs[0].Text = "拖统计条:移动窗口";
this.player_name_tbs[1].Text = "drag bars to move";
this.player_name_tbs[2].Text = "滚轮:放大缩小窗口";
this.player_name_tbs[3].Text = "mouse wheel to zoom";
this.player_name_tbs[0].Text = "This is Daniel";
this.player_name_tbs[1].Text = "I'm modifying the mod now!";
this.player_name_tbs[2].Text = "Click and drag to move";
this.player_name_tbs[3].Text = "Scroll mouse wheel to zoom";
this.update_layout();
}

Expand Down Expand Up @@ -290,35 +288,5 @@ private void Window_MouseWheel(object sender, MouseWheelEventArgs e)
}
}

[DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent()
{
if (this._contentLoaded)
return;
this._contentLoaded = true;
Application.LoadComponent((object) this, new Uri("/mhw_dps_wpf;component/mainwindow.xaml", UriKind.Relative));
}

[DebuggerNonUserCode]
[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
[EditorBrowsable(EditorBrowsableState.Never)]
void IComponentConnector.Connect(int connectionId, object target)
{
if (connectionId != 1)
{
if (connectionId == 2)
this.front_canvas = (Canvas) target;
else
this._contentLoaded = true;
}
else
{
((FrameworkElement) target).Loaded += new RoutedEventHandler(this.Window_Loaded);
((FrameworkElement) target).SizeChanged += new SizeChangedEventHandler(this.Window_SizeChanged);
((UIElement) target).MouseDown += new MouseButtonEventHandler(this.Window_MouseDown);
((UIElement) target).MouseWheel += new MouseWheelEventHandler(this.Window_MouseWheel);
}
}
}
}
1 change: 1 addition & 0 deletions mainwindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:mhw_dps_wpf"
Loaded="Window_Loaded" SizeChanged="Window_SizeChanged" MouseDown="Window_MouseDown" MouseWheel="Window_MouseWheel"
Title="mhw_dps_display" Height="187" Width="369" MinWidth="300" MinHeight="140"
Background="Transparent">
<Grid>
Expand Down
20 changes: 20 additions & 0 deletions mhw_damage_meter_1_0.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationFramework" />
<Reference Include="System" />
Expand Down
18 changes: 14 additions & 4 deletions mhw_damage_meter_1_0.sln
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mhw_dps_wpf", "mhw_damage_meter_1_0.csproj", "{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}"
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2016
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mhw_damage_meter_1_0", "mhw_damage_meter_1_0.csproj", "{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Debug|x64.ActiveCfg = Debug|x64
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Debug|x64.Build.0 = Debug|x64
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Release|Any CPU.Build.0 = Release|Any CPU
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Release|x64.ActiveCfg = Release|x64
{D4F66696-B9F6-4DDD-B068-7C09EBDD4242}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4144D727-8B45-4CE5-B879-CD2E9A0D7CE1}
EndGlobalSection
EndGlobal

0 comments on commit 72288e2

Please sign in to comment.