public override void OnInitialized(EventArgs e) { MainForm = new MainForm(); base.OnInitialized(e); // show the main form MainForm.Show(); }
protected override void OnInitialized(EventArgs e) { MainForm = new MainForm(); base.OnInitialized(e); /* int count = 100000; var start = DateTime.Now; for (int i = 0; i < count; i++) { new Button(); } var end = DateTime.Now; Debug.WriteLine("Time: {0}", end - start); */ // show the main form MainForm.Show(); }
protected override void OnInitialized(EventArgs e) { MainForm = new MainForm(TestSections.Get(TestAssemblies)); base.OnInitialized(e); /** Debug.WriteLine("Starting test..."); const int count = 1000; var sw = new Stopwatch(); sw.Start(); for (int i = 0; i < count; i++) { new Sections.Serialization.Xaml.Test(); } sw.Stop(); Debug.WriteLine("Time: {0}", sw.Elapsed); /**/ // show the main form MainForm.Show(); }