Browse Source

Cleanup - FxCop

pull/520/merge
Peter Forstmeier 11 years ago
parent
commit
f10a461683
  1. 16
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs
  2. 20
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs
  3. 16
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs
  4. 6
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs
  5. 2
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs

16
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseLineItem.cs

@ -22,9 +22,8 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
Point toPoint; Point toPoint;
LineCap startLineCap; LineCap startLineCap;
LineCap endLineCap; LineCap endLineCap;
DashCap dashLineCap;
public BaseLineItem() public BaseLineItem()
{ {
this.Size = new Size(50,10); this.Size = new Size(50,10);
@ -42,8 +41,6 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
} }
// [System.ComponentModel.EditorBrowsableAttribute()]
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{ {
e.Graphics.SmoothingMode = SmoothingMode.HighQuality; e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
@ -113,16 +110,5 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
Invalidate(); Invalidate();
} }
} }
// [Category("Appearance")]
// public DashCap DashLineCap {
// get { return dashLineCap; }
// set {
// dashLineCap = value;
// Invalidate();
// }
// }
} }
} }

20
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseRectangleItem.cs

@ -146,17 +146,17 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
public static GraphicsPath Create(Rectangle rect, int radius, RectangleCorners c) public static GraphicsPath Create(Rectangle rect, int radius, RectangleCorners c)
{ return Create(rect.X, rect.Y, rect.Width, rect.Height, radius, c); } { return Create(rect.X, rect.Y, rect.Width, rect.Height, radius, c); }
//
// public static GraphicsPath Create(int x, int y, int width, int height, int radius)
// { return Create(x, y, width, height, radius, RectangleCorners.All); }
public static GraphicsPath Create(int x, int y, int width, int height, int radius) // public static GraphicsPath Create(Rectangle rect, int radius)
{ return Create(x, y, width, height, radius, RectangleCorners.All); } // { return Create(rect.X, rect.Y, rect.Width, rect.Height, radius); }
//
// public static GraphicsPath Create(int x, int y, int width, int height)
// { return Create(x, y, width, height, 5); }
public static GraphicsPath Create(Rectangle rect, int radius) // public static GraphicsPath Create(Rectangle rect)
{ return Create(rect.X, rect.Y, rect.Width, rect.Height, radius); } // { return Create(rect.X, rect.Y, rect.Width, rect.Height); }
public static GraphicsPath Create(int x, int y, int width, int height)
{ return Create(x, y, width, height, 5); }
public static GraphicsPath Create(Rectangle rect)
{ return Create(rect.X, rect.Y, rect.Width, rect.Height); }
} }
} }

16
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/Services/HelpService.cs

@ -60,14 +60,14 @@ namespace ICSharpCode.Reporting.Addin.Services
{ {
HelpProvider.ShowHelpByKeyword(helpKeyword); HelpProvider.ShowHelpByKeyword(helpKeyword);
} }
public void ShowGeneralHelp() // public void ShowGeneralHelp()
{ // {
ShowHelpFromKeyword(generalKeyword); // ShowHelpFromKeyword(generalKeyword);
} // }
static public void ShowHelp() // static public void ShowHelp()
{ // {
// HelpProvider.ShowHelp(f1Keyword); //// HelpProvider.ShowHelp(f1Keyword);
} // }
public void ShowHelpFromUrl(string helpUrl) public void ShowHelpFromUrl(string helpUrl)
{ {

6
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/TypeProvider/AbstractItemTypeProvider.cs

@ -22,9 +22,9 @@ namespace ICSharpCode.Reporting.Addin.TypeProvider
{ {
} }
public AbstractItemTypeProvider(TypeDescriptionProvider parent): base(parent) // public AbstractItemTypeProvider(TypeDescriptionProvider parent): base(parent)
{ // {
} // }
public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)

2
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs

@ -25,7 +25,7 @@ namespace ICSharpCode.Reporting.Globals
/// </summary> /// </summary>
public sealed class GlobalEnums public sealed class GlobalEnums
{ {
GlobalEnums() { private GlobalEnums() {
} }
public enum ReportSection { public enum ReportSection {

Loading…
Cancel
Save