mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 07:54:45 +08:00
Confirm quit dialog, multiple selection improvements
This commit is contained in:
@@ -24,5 +24,6 @@ namespace CodeWalker.Rendering
|
||||
void CleanupScene();
|
||||
void RenderScene(DeviceContext context);
|
||||
void BuffersResized(int w, int h);
|
||||
bool ConfirmQuit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,7 +227,17 @@ namespace CodeWalker.Rendering
|
||||
}
|
||||
private void Dxform_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Cleanup();
|
||||
if (!e.Cancel)
|
||||
{
|
||||
if (!dxform.ConfirmQuit())
|
||||
{
|
||||
e.Cancel = true;
|
||||
}
|
||||
}
|
||||
if (!e.Cancel)
|
||||
{
|
||||
Cleanup();
|
||||
}
|
||||
}
|
||||
private void Dxform_ClientSizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user