MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / MainForm_FormClosing

Method MainForm_FormClosing

PerformanceMonitor/MainForm.cs:315–329  ·  view source on GitHub ↗
(object sender, FormClosingEventArgs e)

Source from the content-addressed store, hash-verified

313 }
314
315 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
316 {
317 if (_Target != null && _Target.IsRunning())
318 {
319 if (MessageBox.Show(
320 "程序正在运行,是否退出?", "提示",
321 MessageBoxButtons.YesNo,
322 MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
323 {
324 _Target.Kill();
325 _CloseAfterExited = true;
326 }
327 e.Cancel = true;
328 }
329 }
330
331 private void timer_main_Tick(object sender, EventArgs e)
332 {

Callers

nothing calls this directly

Calls 2

IsRunningMethod · 0.80
KillMethod · 0.45

Tested by

no test coverage detected