🚨 捕获异常, 取消崩溃通知
This commit is contained in:
@@ -170,25 +170,33 @@ namespace GeekDesk.Control.Other
|
|||||||
new Thread(() =>
|
new Thread(() =>
|
||||||
{
|
{
|
||||||
Thread.Sleep(time);
|
Thread.Sleep(time);
|
||||||
Dispatcher.Invoke(() =>
|
try
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(P1.Password))
|
Dispatcher.Invoke(() =>
|
||||||
{
|
{
|
||||||
P1.Focus();
|
try
|
||||||
return;
|
{
|
||||||
}
|
if (string.IsNullOrEmpty(P1.Password))
|
||||||
if (string.IsNullOrEmpty(P2.Password))
|
{
|
||||||
{
|
P1.Focus();
|
||||||
P2.Focus();
|
return;
|
||||||
return;
|
}
|
||||||
}
|
if (string.IsNullOrEmpty(P2.Password))
|
||||||
if (string.IsNullOrEmpty(P3.Password))
|
{
|
||||||
{
|
P2.Focus();
|
||||||
P3.Focus();
|
return;
|
||||||
return;
|
}
|
||||||
}
|
if (string.IsNullOrEmpty(P3.Password))
|
||||||
P4.Focus();
|
{
|
||||||
});
|
P3.Focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
P4.Focus();
|
||||||
|
}
|
||||||
|
catch (Exception ex) { }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (Exception e2) { }
|
||||||
}).Start();
|
}).Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,8 +77,12 @@ namespace GeekDesk
|
|||||||
|
|
||||||
private void Window_SourceInitialized(object sender, EventArgs e)
|
private void Window_SourceInitialized(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//禁用窗口最大化
|
try
|
||||||
WindowUtil.DisableMaxWindow(this);
|
{
|
||||||
|
//禁用窗口最大化
|
||||||
|
WindowUtil.DisableMaxWindow(this);
|
||||||
|
}
|
||||||
|
catch (Exception) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ namespace ShowSeconds
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception) { }
|
catch (Exception e1) { }
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ namespace GeekDesk.Task
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception) { }
|
catch (Exception e1) { }
|
||||||
//ClearMemory();
|
//ClearMemory();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user