Пример #1
0
        private void VisualizerGui_Load(object sender, EventArgs e)
        {
            var configForm = new ConfigurationForm();

            if (configForm.ShowDialog() == DialogResult.OK)
            {
                configFilePath = configForm.ConfigFilePath;
                runApp();
            }
        }
Пример #2
0
 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();
         }
     }
 }
Пример #3
0
        private void configurationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var configForm = new ConfigurationForm();

            configForm.ShowDialog();
        }