mirror of
https://github.com/ckaczor/FloatingStatusWindow.git
synced 2026-01-14 01:25:36 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7be7af5980 | |||
| c9041badbe |
@@ -118,6 +118,15 @@ namespace FloatingStatusWindowLibrary
|
|||||||
|
|
||||||
contextMenu.Items.Add(new Separator());
|
contextMenu.Items.Add(new Separator());
|
||||||
|
|
||||||
|
if (_windowSource.HasAboutMenu)
|
||||||
|
{
|
||||||
|
menuItem = new MenuItem { Header = Resources.ContextMenuAbout };
|
||||||
|
menuItem.Click += (sender, args) => _windowSource.ShowAbout();
|
||||||
|
contextMenu.Items.Add(menuItem);
|
||||||
|
|
||||||
|
contextMenu.Items.Add(new Separator());
|
||||||
|
}
|
||||||
|
|
||||||
menuItem = new MenuItem
|
menuItem = new MenuItem
|
||||||
{
|
{
|
||||||
Name = "contextMenuItemExit",
|
Name = "contextMenuItemExit",
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ namespace FloatingStatusWindowLibrary
|
|||||||
|
|
||||||
bool HasSettingsMenu { get; }
|
bool HasSettingsMenu { get; }
|
||||||
bool HasRefreshMenu { get; }
|
bool HasRefreshMenu { get; }
|
||||||
|
bool HasAboutMenu { get; }
|
||||||
|
|
||||||
void ShowSettings();
|
void ShowSettings();
|
||||||
void Refresh();
|
void Refresh();
|
||||||
|
void ShowAbout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
Library/Properties/Resources.Designer.cs
generated
9
Library/Properties/Resources.Designer.cs
generated
@@ -105,6 +105,15 @@ namespace FloatingStatusWindowLibrary.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to About.
|
||||||
|
/// </summary>
|
||||||
|
public static string ContextMenuAbout {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("ContextMenuAbout", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Start with Windows.
|
/// Looks up a localized string similar to Start with Windows.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -132,6 +132,9 @@
|
|||||||
<data name="ChangeAppearanceWindow" xml:space="preserve">
|
<data name="ChangeAppearanceWindow" xml:space="preserve">
|
||||||
<value>Change Appearance</value>
|
<value>Change Appearance</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ContextMenuAbout" xml:space="preserve">
|
||||||
|
<value>About</value>
|
||||||
|
</data>
|
||||||
<data name="ContextMenuAutoStart" xml:space="preserve">
|
<data name="ContextMenuAutoStart" xml:space="preserve">
|
||||||
<value>Start with Windows</value>
|
<value>Start with Windows</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
Library to create a "floating" window that blends in with the Windows desktop and allows displaying status text.
|
Library to create a "floating" window that blends in with the Windows desktop and allows displaying status text.
|
||||||
|
|
||||||
|
[](https://ci.appveyor.com/project/ckaczor/floatingstatuswindow)
|
||||||
|
[](https://www.nuget.org/packages/FloatingStatusWindow)
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
* **Chris Kaczor** - *Initial work* - https://github.com/ckaczor - https://chriskaczor.com
|
* **Chris Kaczor** - *Initial work* - https://github.com/ckaczor - https://chriskaczor.com
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using FloatingStatusWindowLibrary;
|
using FloatingStatusWindowLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Reflection;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
|
|
||||||
@@ -53,6 +54,13 @@ namespace TestWindow
|
|||||||
get { return true; }
|
get { return true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasAboutMenu => true;
|
||||||
|
|
||||||
|
public void ShowAbout()
|
||||||
|
{
|
||||||
|
_floatingStatusWindow.SetText(Assembly.GetEntryAssembly().GetName().Version.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
public void ShowSettings()
|
public void ShowSettings()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using FloatingStatusWindowLibrary;
|
using FloatingStatusWindowLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Reflection;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
|
|
||||||
@@ -53,6 +54,13 @@ namespace TestWindow
|
|||||||
get { return true; }
|
get { return true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasAboutMenu => true;
|
||||||
|
|
||||||
|
public void ShowAbout()
|
||||||
|
{
|
||||||
|
_floatingStatusWindow.SetText(Assembly.GetEntryAssembly().GetName().Version.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
public void ShowSettings()
|
public void ShowSettings()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using FloatingStatusWindowLibrary;
|
using FloatingStatusWindowLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Reflection;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
|
|
||||||
@@ -53,6 +54,13 @@ namespace TestWindow
|
|||||||
get { return true; }
|
get { return true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasAboutMenu => true;
|
||||||
|
|
||||||
|
public void ShowAbout()
|
||||||
|
{
|
||||||
|
_floatingStatusWindow.SetText(Assembly.GetEntryAssembly().GetName().Version.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
public void ShowSettings()
|
public void ShowSettings()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using FloatingStatusWindowLibrary;
|
using FloatingStatusWindowLibrary;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Reflection;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
|
|
||||||
@@ -53,6 +54,13 @@ namespace TestWindow
|
|||||||
get { return true; }
|
get { return true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasAboutMenu => true;
|
||||||
|
|
||||||
|
public void ShowAbout()
|
||||||
|
{
|
||||||
|
_floatingStatusWindow.SetText(Assembly.GetEntryAssembly().GetName().Version.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
public void ShowSettings()
|
public void ShowSettings()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user