Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-03-20 20:36:00 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-03-20 20:36:00 +0300
commita1590b08308921b95656046224bc3dd75131b42c (patch)
tree98440677ec33d24858450df9f1401bbec90b2957 /MainForm.cs
parentf1bd4ab0679dd02c8a28e763ada4e7ed34322c81 (diff)
Life View tool for remote debug
Diffstat (limited to 'MainForm.cs')
-rw-r--r--MainForm.cs50
1 files changed, 28 insertions, 22 deletions
diff --git a/MainForm.cs b/MainForm.cs
index d6b2c9de..b62161cb 100644
--- a/MainForm.cs
+++ b/MainForm.cs
@@ -1711,31 +1711,37 @@ namespace com.clusterrr.hakchi_gui
{
if (WaitingClovershellForm.WaitForDevice(this))
{
- var screenshot = WorkerForm.TakeScreenshot();
- var screenshotPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".png");
- screenshot.Save(screenshotPath, ImageFormat.Png);
- var showProcess = new Process()
+ if (Control.ModifierKeys != Keys.Shift)
{
- StartInfo = new ProcessStartInfo()
- {
- FileName = screenshotPath
- }
- };
- showProcess.Start();
- new Thread(delegate ()
- {
- try
+ var screenshot = WorkerForm.TakeScreenshot();
+ var screenshotPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".png");
+ screenshot.Save(screenshotPath, ImageFormat.Png);
+ var showProcess = new Process()
{
- Thread.Sleep(5000);
- showProcess.WaitForExit();
- }
- catch { }
- try
+ StartInfo = new ProcessStartInfo()
+ {
+ FileName = screenshotPath
+ }
+ };
+ showProcess.Start();
+ new Thread(delegate ()
{
- File.Delete(screenshotPath);
- }
- catch { }
- }).Start();
+ try
+ {
+ Thread.Sleep(5000);
+ showProcess.WaitForExit();
+ }
+ catch { }
+ try
+ {
+ File.Delete(screenshotPath);
+ }
+ catch { }
+ }).Start();
+ } else // Shift pressed
+ {
+ new LifeViewForm().ShowDialog();
+ }
}
}
catch (Exception ex)