Fixed warnings in Vanara.Windows.Forms

pull/161/head
dahall 2020-08-25 12:40:35 -06:00
parent c6cd401ae3
commit 8a06335cd9
3 changed files with 7 additions and 0 deletions

View File

@ -1391,7 +1391,9 @@ namespace Vanara.Windows.Forms
/// <summary>This provides a connection point container compatible dispatch interface for hooking into the ExplorerBrowser view.</summary>
[ComVisible(true)]
#pragma warning disable CS0618 // Type or member is obsolete
[ClassInterface(ClassInterfaceType.AutoDual)]
#pragma warning restore CS0618 // Type or member is obsolete
public class ViewEvents : IDisposable
{
private static readonly Guid IID_DShellFolderViewEvents = new Guid("62112AA2-EBE4-11cf-A5FB-0020AFE7292D");

View File

@ -902,12 +902,16 @@ namespace Vanara.Windows.Forms
SetFocus(hWndTreeView);
}
/// <summary>Raises the <see cref="E:System.Windows.Forms.Control.KeyDown"/> event.</summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.KeyEventArgs"/> that contains the event data.</param>
protected override void OnKeyDown(KeyEventArgs e)
{
System.Diagnostics.Debug.WriteLine($"Base KeyDown: {e.KeyCode}");
base.OnKeyDown(e);
}
/// <summary>Raises the <see cref="E:System.Windows.Forms.Control.KeyUp"/> event.</summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.KeyEventArgs"/> that contains the event data.</param>
protected override void OnKeyUp(KeyEventArgs e)
{
System.Diagnostics.Debug.WriteLine($"Base KeyUp: {e.KeyCode}");

View File

@ -237,6 +237,7 @@ namespace Vanara.Windows.Forms.Design
/// <summary>Initializes a new instance of the <see cref="AttributedControlDesigner{TControl}"/> class.</summary>
public AttributedControlDesigner()
{
redirectedEvents = this.GetRedirectedEvents();
redirectedProps = this.GetRedirectedProperties();
verbs = this.GetAttributedVerbs();
}