private void VisualizerGui_Load(object sender, EventArgs e) { var configForm = new ConfigurationForm(); if (configForm.ShowDialog() == DialogResult.OK) { configFilePath = configForm.ConfigFilePath; runApp(); } }
private void openConfigurationToolStripMenuItem_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK) { if (!string.IsNullOrEmpty(openFileDialog1.FileName)) { var config = JsonConvert.DeserializeObject <Configuration>(File.ReadAllText(openFileDialog1.FileName)); var configForm = new ConfigurationForm(); configForm.ShowDialog(); } } }
private void configurationToolStripMenuItem_Click(object sender, EventArgs e) { var configForm = new ConfigurationForm(); configForm.ShowDialog(); }