Permalink
Browse files

added systray context menu

  • Loading branch information...
1 parent 970fae7 commit 1801f2ca29712e4b45ddfa9ff1d3b017fec2f834 seuffert committed Nov 22, 2011
Showing with 42 additions and 13 deletions.
  1. +33 −13 XBSlink/Form1.Designer.cs
  2. +6 −0 XBSlink/Form1.cs
  3. +3 −0 XBSlink/Form1.resx
Oops, something went wrong.
View
@@ -180,6 +180,7 @@ private void initializeTrayIcon()
notify_icon.Text = "XBSlink " + xbs_settings.xbslink_version;
notify_icon.Visible = true;
notify_icon.DoubleClick += new EventHandler(NotifyIconDoubleClick);
+ notify_icon.ContextMenuStrip = contextMenuStrip_systray;
}
catch (Exception)
{
@@ -1705,5 +1706,10 @@ private void checkBox_minimize2systray_CheckedChanged(object sender, EventArgs e
{
}
+
+ private void toolStripMenuItem_exit_Click(object sender, EventArgs e)
+ {
+ Application.Exit();
+ }
}
}
View
@@ -135,6 +135,9 @@
<metadata name="toolTip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>601, 17</value>
</metadata>
+ <metadata name="contextMenuStrip_systray.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>698, 17</value>
+ </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>58</value>
</metadata>

0 comments on commit 1801f2c

Please sign in to comment.