mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-10 06:24:46 +12:00
Double Click on file (#82), File contextmenu (#18), Double Click to start item not only one click (#66), version 0.10.1.2
This commit is contained in:
parent
2714df18b9
commit
0ff0aff66b
|
@ -533,7 +533,6 @@ namespace SystemTrayMenu.Business
|
|||
}
|
||||
}
|
||||
|
||||
#warning [Feature] Double Click to start item not only one click #66
|
||||
private void Dgv_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
DataGridView dgv = (DataGridView)sender;
|
||||
|
|
|
@ -305,31 +305,6 @@ namespace SystemTrayMenu.DataClasses
|
|||
waitMenuOpen.Click();
|
||||
}
|
||||
|
||||
if (e == null ||
|
||||
e.Button == MouseButtons.Left &&
|
||||
!ContainsMenu)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (Process p = new Process())
|
||||
{
|
||||
p.StartInfo = new ProcessStartInfo(TargetFilePath)
|
||||
{
|
||||
FileName = TargetFilePathOrig,
|
||||
Arguments = Arguments,
|
||||
WorkingDirectory = WorkingDirectory,
|
||||
CreateNoWindow = true
|
||||
};
|
||||
p.Start();
|
||||
};
|
||||
}
|
||||
catch (Win32Exception ex)
|
||||
{
|
||||
Log.Warn($"path:'{TargetFilePath}'", ex);
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
if (e != null &&
|
||||
e.Button == MouseButtons.Right &&
|
||||
FileInfo != null &&
|
||||
|
@ -372,6 +347,31 @@ namespace SystemTrayMenu.DataClasses
|
|||
|
||||
internal void DoubleClick(MouseEventArgs e)
|
||||
{
|
||||
if (e == null ||
|
||||
e.Button == MouseButtons.Left &&
|
||||
!ContainsMenu)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (Process p = new Process())
|
||||
{
|
||||
p.StartInfo = new ProcessStartInfo(TargetFilePath)
|
||||
{
|
||||
FileName = TargetFilePathOrig,
|
||||
Arguments = Arguments,
|
||||
WorkingDirectory = WorkingDirectory,
|
||||
CreateNoWindow = true
|
||||
};
|
||||
p.Start();
|
||||
};
|
||||
}
|
||||
catch (Win32Exception ex)
|
||||
{
|
||||
Log.Warn($"path:'{TargetFilePath}'", ex);
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
if (e == null ||
|
||||
e.Button == MouseButtons.Left &&
|
||||
ContainsMenu)
|
||||
|
|
|
@ -35,5 +35,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("0.10.1.1")]
|
||||
[assembly: AssemblyFileVersion("0.10.1.1")]
|
||||
[assembly: AssemblyVersion("0.10.1.2")]
|
||||
[assembly: AssemblyFileVersion("0.10.1.2")]
|
||||
|
|
Loading…
Reference in a new issue