Skip to content

Commit 582c8e2

Browse files
committed
#10 #15 add option to hide email button and remove machine/user ui fields
1 parent 4fb7a01 commit 582c8e2

12 files changed

+1130
-1157
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ packages/
6767
*.testsettings
6868
.idea/
6969

70-
\.vs/ExceptionReporter\.NET/xs/
70+
\.vs

ExceptionReporter.NET.sln

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

2-
Microsoft Visual Studio Solution File, Format Version 11.00
3-
# Visual Studio 2010
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27703.2000
5+
MinimumVisualStudioVersion = 10.0.40219.1
46
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.ExceptionReporter", "src\Test.ExceptionReporter\Tests.ExceptionReporter.csproj", "{38C592CC-F774-4A0F-95FA-318AB0DDB476}"
57
EndProject
68
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExceptionReporter", "src\ExceptionReporter\ExceptionReporter.csproj", "{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}"
@@ -10,39 +12,51 @@ EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
13-
Release|Any CPU = Release|Any CPU
1415
Debug|x86 = Debug|x86
16+
Release|Any CPU = Release|Any CPU
1517
Release|x86 = Release|x86
1618
EndGlobalSection
1719
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1820
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1921
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Debug|x86.ActiveCfg = Debug|Any CPU
23+
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Debug|x86.Build.0 = Debug|Any CPU
2024
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Release|Any CPU.ActiveCfg = Debug|Any CPU
2125
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Release|Any CPU.Build.0 = Debug|Any CPU
26+
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Release|x86.ActiveCfg = Release|Any CPU
27+
{38C592CC-F774-4A0F-95FA-318AB0DDB476}.Release|x86.Build.0 = Release|Any CPU
2228
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2329
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Debug|x86.ActiveCfg = Debug|Any CPU
31+
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Debug|x86.Build.0 = Debug|Any CPU
2432
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
2533
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Release|x86.ActiveCfg = Release|Any CPU
35+
{C49896A3-C0DA-45C4-B30E-4D17E548DBF6}.Release|x86.Build.0 = Release|Any CPU
2636
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2737
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Debug|x86.ActiveCfg = Debug|Any CPU
39+
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Debug|x86.Build.0 = Debug|Any CPU
2840
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Release|Any CPU.ActiveCfg = Release|Any CPU
2941
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Release|x86.ActiveCfg = Release|Any CPU
43+
{2FC9BAC6-3AC4-43C2-A8E2-C9655446531E}.Release|x86.Build.0 = Release|Any CPU
3044
EndGlobalSection
3145
GlobalSection(SolutionProperties) = preSolution
3246
HideSolutionNode = FALSE
3347
EndGlobalSection
34-
GlobalSection(NestedProjects) = preSolution
48+
GlobalSection(ExtensibilityGlobals) = postSolution
49+
SolutionGuid = {A41916D2-4760-445D-A8C7-B3058A358266}
3550
EndGlobalSection
3651
GlobalSection(MonoDevelopProperties) = preSolution
3752
Policies = $0
3853
$0.DotNetNamingPolicy = $1
3954
$1.DirectoryNamespaceAssociation = PrefixedHierarchical
40-
$0.TextStylePolicy = $2
55+
$0.TextStylePolicy = $4
4156
$2.inheritsSet = null
4257
$2.scope = text/x-csharp
4358
$0.CSharpFormattingPolicy = $3
4459
$3.scope = text/x-csharp
45-
$0.TextStylePolicy = $4
4660
$4.inheritsSet = null
4761
$4.scope = application/config+xml
4862
$0.XmlFormattingPolicy = $5

src/Demos/WinForms/DemoAppView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ static void ThrowAndShowExceptionReporter(bool detailView = false)
107107
{
108108
exceptionReporter.Config.ShowFullDetail = false;
109109
exceptionReporter.Config.ShowLessMoreDetailButton = true;
110+
// exceptionReporter.Config.ShowEmailButton = false; // just for testing that removing email button works well positioning etc
110111
}
111112
exceptionReporter.Show(exception);
112113
}
@@ -130,6 +131,5 @@ static void AndAnotherOne()
130131
"This is an Inner Exception message - with a message that is not too small but perhaps it should be smaller"));
131132
throw exception;
132133
}
133-
134134
}
135135
}

src/Demos/WinForms/DemoAppView.designer.cs

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Demos/WinForms/DemoAppView.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@
112112
<value>2.0</value>
113113
</resheader>
114114
<resheader name="reader">
115-
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116116
</resheader>
117117
<resheader name="writer">
118-
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
</root>

src/ExceptionReporter/Core/ExceptionReport.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public ExceptionReport(StringBuilder stringBuilder, ExceptionReportInfo reportIn
2323
_sysInfoResults = sysInfoResults;
2424
}
2525

26-
/// <returns>A <see cref="T:System.String"/> that represents the current <see cref="T:ExceptionReporting.Core.ExceptionReport"/>.</returns>
26+
/// <returns>
27+
/// A <see cref="T:System.String"/> that represents the current <see cref="T:ExceptionReporting.Core.ExceptionReport"/>
28+
/// </returns>
2729
public override string ToString()
2830
{
2931
return _reportString.ToString();
@@ -32,6 +34,7 @@ public override string ToString()
3234
/// <summary>
3335
/// Gets the report info.
3436
/// </summary>
37+
// ReSharper disable once ConvertToAutoProperty
3538
public ExceptionReportInfo ReportInfo
3639
{
3740
get { return _reportInfo; }
@@ -40,6 +43,7 @@ public ExceptionReportInfo ReportInfo
4043
/// <summary>
4144
/// Gets the sys info results.
4245
/// </summary>
46+
// ReSharper disable once ConvertToAutoProperty
4347
public IList<SysInfoResult> SysInfoResults
4448
{
4549
get { return _sysInfoResults; }

src/ExceptionReporter/Core/ExceptionReportInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public bool ShowAssembliesTab
136136
public bool ShowLessMoreDetailButton { get; set; }
137137
public bool ShowFullDetail { get; set; }
138138
public bool ShowButtonIcons { get; set; }
139+
public bool ShowEmailButton { get; set; }
139140

140141
/// <summary>
141142
/// Dialog title text
@@ -204,6 +205,7 @@ private void SetDefaultValues()
204205
ShowFlatButtons = true;
205206
ShowFullDetail = true;
206207
ShowButtonIcons = true;
208+
ShowEmailButton = true;
207209
BackgroundColor = Color.WhiteSmoke;
208210
ShowExceptionsTab = true;
209211
ShowContactTab = false;

0 commit comments

Comments
 (0)