static void Main() { /* * Application.EnableVisualStyles(); * Application.SetCompatibleTextRenderingDefault(false); * Application.Run(new Lissascoupe()); */ Sharpscope scope; using (scope = new Sharpscope(1024, 1024, "Sharpscope")) { scope.Run(120, 60); } }
protected override void OnLoad(EventArgs e) { if (_instance == null || _instance != this) { _instance = this; } random = new Random((int)DateTime.Now.Ticks); // load settings settings = new Settings(); settings.PropertyChanged += OnSettingsChanged; loadFrameBuffer(); loadGL(); loadNAudio(); base.OnLoad(e); }