Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _app = new NoxApp {
         NoxInstance = _noxInstance
     };
 }