//--------------------------------------------------------------
// Press F1 to get help about using script.
// To access an object that is not located in the current class, start the call with Globals.
// When using events and timers be cautious not to generate memoryleaks,
// please see the help for more information.
//---------------------------------------------------------------

namespace Neo.ApplicationFramework.Generated
{
    using System.Windows.Forms;
    using System;
    using System.Drawing;
    using Neo.ApplicationFramework.Tools;
    using Neo.ApplicationFramework.Common.Graphics.Logic;
    using Neo.ApplicationFramework.Controls;
    using Neo.ApplicationFramework.Interfaces;
    
    
    public partial class Jog
    {
		
		void Picture2_MouseDown(System.Object sender, System.Windows.Forms.MouseEventArgs e)
		{
			Globals.Tags.VL_CMDU.Value=Globals.Tags.JogSpeed.Value * -1;
		}
		
		void Picture3_MouseDown(System.Object sender, System.Windows.Forms.MouseEventArgs e)
		{
			Globals.Tags.VL_CMDU.Value=Globals.Tags.JogSpeed.Value;
		}
		
		void Jog_Opened(System.Object sender, System.EventArgs e)
		{
			Globals.Tags.DRV_OPMODE.Value=1;
		}
		
		void Picture1_MouseDown(System.Object sender, System.Windows.Forms.MouseEventArgs e)
		{
			Globals.Tags.VL_CMDU.Value=0;
		}
		
		void Jog_Closing(System.Object sender, System.ComponentModel.CancelEventArgs e)
		{
			Globals.Tags.VL_CMDU.Value=0;
			Globals.Tags.DRV_OPMODE.Value=2;
		}
    }
}
