Пример #1
0
 public AracdeForm()
 {
     InitializeComponent();
     arcadeMusic.SoundLocation = "ArcadeSound.wav";
     arcadeMusic.LoadAsync();
     cGL = new cOGL(displayPanel);
     cGL.ScrollValue[10] = 5;
     cGL.ScrollValue[11] = 12;
     cGL.ScrollValue[12] = -5;
     //apply the bars values as cGL.ScrollValue[..] properties
     //!!!
     hScrollBarScroll(hScrollBar1, null);
     hScrollBarScroll(hScrollBar2, null);
     hScrollBarScroll(hScrollBar3, null);
     hScrollBarScroll(hScrollBar4, null);
     hScrollBarScroll(hScrollBar5, null);
     hScrollBarScroll(hScrollBar6, null);
     hScrollBarScroll(hScrollBar7, null);
     hScrollBarScroll(hScrollBar8, null);
     hScrollBarScroll(hScrollBar9, null);
     displayPanel.MouseWheel += Panel1_MouseWheel;
     displayPanel.MouseDown  += Panel1_MouseDown;
     displayPanel.MouseUp    += Panel1_MouseUp;
     displayPanel.MouseMove  += Panel1_MouseMove;
 }
Пример #2
0
 public Form1()
 {
     InitializeComponent();
     cGL             = new cOGL(panel1);
     Cursor.Position = new Point(cGL.lastMouseX, Cursor.Position.Y);
     panel1.Focus();
     timer1.Enabled = true;
     Firstboot      = true;
     Cursor.Hide();
 }
Пример #3
0
        public MainWindow()
        {
            InitializeComponent();
            cGL = new cOGL(panel);

            sbVerticalViewAngle.Minimum = (int)(GlobalProperties.MinVerticalViewAngle * 100);
            sbVerticalViewAngle.Maximum = (int)(GlobalProperties.MaxVerticalViewAngle * 100);
            sbVerticalViewAngle.Value   = (int)(GlobalProperties.CurrentVerticalViewAngle * 100);
            lblVerticalViewAngle.Text   = "Vertical View Angle: " + GlobalProperties.CurrentVerticalViewAngle + " °";
            sbLightIntensity.Value      = GlobalProperties.LightBeamIntesity;

            timerAnimate.Interval = sbInterval.Value;
            lblInterval.Text      = "Time Interval:" + sbInterval.Value;
            Log.Write("Time interval set to " + sbInterval.Value);
        }
Пример #4
0
 public Form1()
 {
     InitializeComponent();
     cGL = new cOGL(panel1);
     //apply the bars values as cGL.ScrollValue[..] properties
     //!!!
     hScrollBarScroll(hScrollBar1, null);
     hScrollBarScroll(hScrollBar2, null);
     hScrollBarScroll(hScrollBar3, null);
     hScrollBarScroll(hScrollBar4, null);
     hScrollBarScroll(hScrollBar5, null);
     hScrollBarScroll(hScrollBar6, null);
     hScrollBarScroll(hScrollBar7, null);
     hScrollBarScroll(hScrollBar8, null);
     hScrollBarScroll(hScrollBar9, null);
 }
Пример #5
0
        public Form1()
        {
            InitializeComponent();
            cGL = new cOGL(panel1);



            //apply the bars values as cGL.ScrollValue[..] properties
            //!!!

            hScrollBarScroll(hScrollBar2, null);

            // initialize ScrollValue array

            cGL.ScrollValue[10] = (hScrollBar11.Value - 100) / 10.0f;
            cGL.ScrollValue[11] = (hScrollBar12.Value - 100) / 10.0f;
            cGL.ScrollValue[12] = (hScrollBar13.Value - 100) / 10.0f;
        }
Пример #6
0
        public Form1()
        {
            //enable the keys events
            this.KeyPreview = true;

            InitializeComponent();

            //update version number in the Form Label
            Version version = Assembly.GetEntryAssembly().GetName().Version;

            this.Text = "My Robot " + version.ToString();

            this.MouseWheel += new MouseEventHandler(panel1_MouseWheel);


            cGL = new cOGL(panel1);

            //initialize timers
            timer1.Enabled = true;
            timer2.Enabled = false;
            timer3.Enabled = false;
            timer4.Enabled = false;


            timer3.Interval = 1;
            timer4.Interval = 1;


            //apply the bars values as cGL.ScrollValue[..] properties
            hScrollBarScroll(hScrollBar2, null);
            hScrollBarScroll(hScrollBar3, null);
            hScrollBarScroll(hScrollBar8, null);
            hScrollBarScroll(hScrollBar11, null);
            hScrollBarScroll(hScrollBar12, null);
            hScrollBarScroll(hScrollBar13, null);
        }
Пример #7
0
        public Form1()
        {
            InitializeComponent();

            cGL = new cOGL(panel1);
            //3D model b4
            listBox1.Items.Add("Stop");
            listBox2.Items.Add("Stop");

            foreach (Animation anim in cGL.ch.Animations)
            {
                listBox1.Items.Add(anim.Name);
            }

            foreach (Animation anim1 in cGL.ch1.Animations)
            {
                listBox2.Items.Add(anim1.Name);
            }

            //cGL.ch.Stop();
            //cGL.ch1.Stop();

            //3D model e

            //apply the bars values as cGL.ScrollValue[..] properties
            //!!!
            hScrollBarScroll(hScrollBar1, null);
            hScrollBarScroll(hScrollBar2, null);
            hScrollBarScroll(hScrollBar3, null);
            hScrollBarScroll(hScrollBar4, null);
            hScrollBarScroll(hScrollBar5, null);
            hScrollBarScroll(hScrollBar6, null);
            hScrollBarScroll(hScrollBar7, null);
            hScrollBarScroll(hScrollBar8, null);
            hScrollBarScroll(hScrollBar9, null);
        }
Пример #8
0
 public MainForm()
 {
     InitializeComponent();
     cGL = new cOGL(DrawPanel);
 }
Пример #9
0
 public Form1()
 {
     InitializeComponent();
     cGL = new cOGL(panel1);
 }