Confirm quit dialog, multiple selection improvements

This commit is contained in:
dexy
2020-01-14 17:56:11 +11:00
Unverified
parent c43ad09e43
commit e2ac3c6420
12 changed files with 868 additions and 33 deletions
+1
View File
@@ -24,5 +24,6 @@ namespace CodeWalker.Rendering
void CleanupScene();
void RenderScene(DeviceContext context);
void BuffersResized(int w, int h);
bool ConfirmQuit();
}
}
+11 -1
View File
@@ -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)
{