private void openFileDialog1_FileOk(object sender, CancelEventArgs e) { try { _app = JsonConvert.DeserializeObject <NoxApp>(File.ReadAllText(openAppDialog.FileName)); _app.NoxInstance = _noxInstance; } catch (Exception ex) { _app = new NoxApp { NoxInstance = _noxInstance }; MessageBox.Show($"Could not open App: {ex.Message} at {ex.StackTrace}", "Error Opening App", MessageBoxButtons.OK); } }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { _app = new NoxApp { NoxInstance = _noxInstance }; }