using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; //using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Core; namespace UI.Winforms.Prsn828 { public partial class MainWindow : Form { public Settings SettingsWindow = new Settings(); protected Simulation TheSimulation; public Graphics.Core.IWindowHandle WindowHandle { get; private set; } public MainWindow() { InitializeComponent(); Graphics.Core.IModule graphics = new Graphics.Xna.Module(); } private void MainWindow_Load(object sender, EventArgs e) { } private void SettingsOpen(object sender, EventArgs e) { SettingsWindow.ShowDialog(); } private void exitToolStripMenuItem_Click(object sender, EventArgs e) { SettingsWindow.Close(); this.Close(); } private void FromCurrentSettingsToolStripMenuItem_Click(object sender, EventArgs e) { TheSimulation = new Simulation(SettingsWindow.getSettings(), new Graphics.Xna.Module()); TheSimulation.Reset(); } private void fromDefaultSettingsToolStripMenuItem_Click(object sender, EventArgs e) { Core.Settings temp = new Core.Settings(); temp.Load("Default.txt"); TheSimulation = new Simulation(temp, new Graphics.Xna.Module()); TheSimulation.Reset(); } } }