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