示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     DemoForm demoForm = new DemoForm(this.graphicsPlatform);
     demoForm.PrepareSamples();
     demoForm.Show();
     demoForm.Activate();
 }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DemoForm demoForm = new DemoForm();

            demoForm.PrepareSamples();
            demoForm.Show();
            demoForm.Activate();
        }
示例#3
0
 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();
     }
 }
示例#4
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);
         }
     }
 }
示例#5
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();
                    demoForm.Show();
                    demoForm.Activate();
                    demoForm.LoadDemo(demoInstance);
                }
            }
        }
示例#6
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();
     }
 }