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:
Markus Hofknecht 2020-06-01 00:08:10 +02:00
parent 2714df18b9
commit 0ff0aff66b
3 changed files with 27 additions and 28 deletions

View file

@ -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;

View file

@ -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)

View file

@ -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")]