mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-15 01:35:38 -05:00
Code modernising (#8)
* Applied some code conventions, used more current language features which should improve readability and making it easier to re-factor / modify. Also fixed some typos in documentation. * Changes based on PR conversation for the SystemInfo * Some modifications due to conversations on the PR, especially I removed the FlagsAttribute on the BalloonFlags. * Removed Silverlight targeting in code.
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows;
|
||||
|
||||
namespace Samples.Tutorials.ContextMenus
|
||||
{
|
||||
@@ -24,12 +21,12 @@ namespace Samples.Tutorials.ContextMenus
|
||||
base.OnClosing(e);
|
||||
}
|
||||
|
||||
private void MyNotifyIcon_TrayContextMenuOpen(object sender, System.Windows.RoutedEventArgs e)
|
||||
private void MyNotifyIcon_TrayContextMenuOpen(object sender, RoutedEventArgs e)
|
||||
{
|
||||
OpenEventCounter.Text = (int.Parse(OpenEventCounter.Text) + 1).ToString();
|
||||
}
|
||||
|
||||
private void MyNotifyIcon_PreviewTrayContextMenuOpen(object sender, System.Windows.RoutedEventArgs e)
|
||||
private void MyNotifyIcon_PreviewTrayContextMenuOpen(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//marking the event as handled suppresses the context menu
|
||||
e.Handled = (bool) SuppressContextMenu.IsChecked;
|
||||
|
||||
Reference in New Issue
Block a user