public static Simulator GetInstance() { if(instance == null) { instance = new Simulator(); } return instance; }
private void startSimBtn_Click(object sender, EventArgs e) { sim = Simulator.GetInstance(); sim.Show(); this.TopMost = true; }