private WorldCon GetNewWorldCon() { if (AppCon.Options.OpenInNewWindow) { return(AppCon.AddNewWorldCon()); } if (!JsonCon.SaveIfModified()) { return(null); } JsonCon.Clear(); SetDefaultCamera(); return(WorldCon); }
private void WorldForm_FormClosing(object sender, FormClosingEventArgs e) => e.Cancel = !JsonCon.SaveIfModified();