private void button1_Click(object sender, EventArgs e) { DemoForm demoForm = new DemoForm(this.graphicsPlatform); demoForm.PrepareSamples(); demoForm.Show(); demoForm.Activate(); }
private void button1_Click(object sender, EventArgs e) { DemoForm demoForm = new DemoForm(); demoForm.PrepareSamples(); demoForm.Show(); demoForm.Activate(); }
private void button3_Click(object sender, EventArgs e) { for (int i = 0; i < 10; ++i) { DemoForm demoForm = new DemoForm(); demoForm.StartAtSampleIndex = 2; demoForm.PrepareSamples(); demoForm.Show(); demoForm.Activate(); System.Threading.Thread.Sleep(10); demoForm.Close(); } }
void lstDemoList_DoubleClick(object sender, EventArgs e) { var demoInfo = lstDemoList.SelectedItem as DemoInfo; if (demoInfo != null) { DemoBase demoInstance = (DemoBase)Activator.CreateInstance(demoInfo.DemoType); if (demoInstance != null) { DemoForm demoForm = new DemoForm(this.graphicsPlatform); demoForm.Show(); demoForm.Activate(); demoForm.LoadDemo(demoInstance); } } }
void lstDemoList_DoubleClick(object sender, EventArgs e) { var demoInfo = lstDemoList.SelectedItem as DemoInfo; if (demoInfo != null) { DemoBase demoInstance = (DemoBase)Activator.CreateInstance(demoInfo.DemoType); if (demoInstance != null) { DemoForm demoForm = new DemoForm(); demoForm.Show(); demoForm.Activate(); demoForm.LoadDemo(demoInstance); } } }
private void button3_Click(object sender, EventArgs e) { for (int i = 0; i < 10; ++i) { DemoForm demoForm = new DemoForm(this.graphicsPlatform); demoForm.StartAtSampleIndex = 2; demoForm.PrepareSamples(); demoForm.Show(); demoForm.Activate(); System.Threading.Thread.Sleep(10); demoForm.Close(); } }