mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-16 02:13:39 +12:00
This commit is contained in:
parent
1ff825f598
commit
fc55672814
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.3.8")]
|
||||
[assembly: AssemblyFileVersion("1.2.3.8")]
|
||||
[assembly: AssemblyVersion("1.2.3.9")]
|
||||
[assembly: AssemblyFileVersion("1.2.3.9")]
|
||||
|
|
2
Properties/Settings.Designer.cs
generated
2
Properties/Settings.Designer.cs
generated
|
@ -142,7 +142,7 @@ namespace SystemTrayMenu.Properties
|
|||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Configuration.SettingsProviderAttribute(typeof(CustomSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool ShowInTaskbar
|
||||
{
|
||||
get
|
||||
|
|
|
@ -1108,7 +1108,7 @@ namespace SystemTrayMenu.UserInterface
|
|||
|
||||
private void ButtonAdvancedDefault_Click(object sender, EventArgs e)
|
||||
{
|
||||
checkBoxShowInTaskbar.Checked = false;
|
||||
checkBoxShowInTaskbar.Checked = true;
|
||||
checkBoxOpenItemWithOneClick.Checked = true;
|
||||
checkBoxOpenDirectoryWithOneClick.Checked = true;
|
||||
|
||||
|
|
|
@ -44,32 +44,6 @@ namespace SystemTrayMenu.Utilities
|
|||
!path[2..].Contains(@"\", StringComparison.InvariantCulture);
|
||||
}
|
||||
|
||||
public static bool PingHost(string nameOrAddress)
|
||||
{
|
||||
bool pingable = false;
|
||||
Ping pinger = null;
|
||||
|
||||
try
|
||||
{
|
||||
pinger = new Ping();
|
||||
PingReply reply = pinger.Send(nameOrAddress);
|
||||
pingable = reply.Status == IPStatus.Success;
|
||||
}
|
||||
catch (PingException ex)
|
||||
{
|
||||
Log.Warn($"Ping {nameOrAddress} failed", ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (pinger != null)
|
||||
{
|
||||
pinger.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
return pingable;
|
||||
}
|
||||
|
||||
private static string GetShortcutFileNamePath(object shortcutFilename, out bool isFolder)
|
||||
{
|
||||
string resolvedFilename = string.Empty;
|
||||
|
|
Loading…
Reference in a new issue