Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     DemoForm demoForm = new DemoForm(this.graphicsPlatform);
     demoForm.PrepareSamples();
     demoForm.Show();
     demoForm.Activate();
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
 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);
         }
     }
 }