mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-02-17 02:51:51 -05:00
Reformatting code (NTFY-20)
git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@183 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -35,7 +35,6 @@ using Hardcodet.Wpf.TaskbarNotification.Interop;
|
|||||||
using Point = Hardcodet.Wpf.TaskbarNotification.Interop.Point;
|
using Point = Hardcodet.Wpf.TaskbarNotification.Interop.Point;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace Hardcodet.Wpf.TaskbarNotification
|
namespace Hardcodet.Wpf.TaskbarNotification
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -89,7 +88,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks whether a non-tooltip popup is currently opened.
|
/// Checks whether a non-tooltip popup is currently opened.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -104,13 +102,11 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
return popup != null && popup.IsOpen ||
|
return popup != null && popup.IsOpen ||
|
||||||
menu != null && menu.IsOpen ||
|
menu != null && menu.IsOpen ||
|
||||||
balloon != null && balloon.IsOpen;
|
balloon != null && balloon.IsOpen;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region Construction
|
#region Construction
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -146,7 +142,6 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region Custom Balloons
|
#region Custom Balloons
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -437,10 +432,10 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
if (me == MouseEvent.IconLeftMouseUp && !isLeftClickCommandInvoked)
|
if (me == MouseEvent.IconLeftMouseUp && !isLeftClickCommandInvoked)
|
||||||
{
|
{
|
||||||
//show context menu once we are sure it's not a double click
|
//show context menu once we are sure it's not a double click
|
||||||
delayedTimerAction = () => LeftClickCommand.ExecuteIfEnabled(LeftClickCommandParameter, LeftClickCommandTarget ?? this);
|
delayedTimerAction =
|
||||||
|
() => LeftClickCommand.ExecuteIfEnabled(LeftClickCommandParameter, LeftClickCommandTarget ?? this);
|
||||||
singleClickTimer.Change(WinApi.GetDoubleClickTime(), Timeout.Infinite);
|
singleClickTimer.Change(WinApi.GetDoubleClickTime(), Timeout.Infinite);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@@ -705,6 +700,7 @@ namespace Hardcodet.Wpf.TaskbarNotification
|
|||||||
ContextMenu.Placement = PlacementMode.AbsolutePoint;
|
ContextMenu.Placement = PlacementMode.AbsolutePoint;
|
||||||
ContextMenu.HorizontalOffset = cursorPosition.X;
|
ContextMenu.HorizontalOffset = cursorPosition.X;
|
||||||
ContextMenu.VerticalOffset = cursorPosition.Y;
|
ContextMenu.VerticalOffset = cursorPosition.Y;
|
||||||
|
|
||||||
ContextMenu.IsOpen = true;
|
ContextMenu.IsOpen = true;
|
||||||
|
|
||||||
//activate the message window to track deactivation - otherwise, the context menu
|
//activate the message window to track deactivation - otherwise, the context menu
|
||||||
|
|||||||
Reference in New Issue
Block a user