Пример #1
0
        public Model(Communication inCommunication)
        {
            mComm = inCommunication;

            gLazerCop = 0;			// 0,5, HZ
            gLazerEpilation = 0;			// 0, 5 HZ
            gCopIntensity = 2;    // 2 - 15
            gPowerIntensity = 25;  //2.5 - 3.8 (0.1)				(value from 25 to 38)
            gFadeIn = 0;			//0 - 20 (1)
            gTimer = 5;			// 0.5 - 5.0 (0.5)				(value from 5 to 50)
            gPowerBi = 0;
            gPowerMono = 1;
            gTimerMono = 5;    // 5 - 15	in Min
            gTimerBi = 5;   // 5 - 15		inMin
            gMonoState = 0;
            gBiState = 0;
            gLazerTwinLight = 0;			// on/off
            gRFState = 0;      // 0 off -, 1 - mid , 2- Hi
            gLampState = 0;     // 0 off -, 1 - on
            gPulseTwinLight = 5; 			// 5,25,50
            gPowerTwinLight = 0;
            gFastPulse = 20;
            gFastPulseSCR = 1;			// scale 1-6 jump 1

            gTimerMonoCurValSec = 0;    // this is the real timer counter - time left in sec
            gTimerBiCurValSec = 0;    // this is the real timer counter - time left in sec
        }
Пример #2
0
        public MainMDI()
        {
            InitializeComponent();

            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.WindowState = FormWindowState.Maximized;
            Communication comm = new Communication();
            comm.CommandRecived += comm_CommandRecived;

            mModel = new Model(comm);

            mModel.ValueUpdatedEvent = new Model.ValueUpdatedDelegate(InvokeUpdateUI);

            InitForms();
        }
Пример #3
0
 public Model(Communication inCommunication)
 {
     mComm = inCommunication;
     ResetAll();
 }
Пример #4
0
        protected override void OnLoad(EventArgs e)
        {
            //SetFullScreen();
            //mSplash = new SplashForm();
            //mSplash.Show();
            //mSplash.Width = Screen.PrimaryScreen.Bounds.Width;
            //mSplash.Height = Screen.PrimaryScreen.Bounds.Height + 40;
            //mSplash.Left = 0;
            //mSplash.Top = 0;

            Communication comm = new Communication();
            comm.CommandRecived += comm_CommandRecived;
            comm.Start();

            mModel = new Model(comm);

            mModel.ValueUpdatedEvent = new Model.ValueUpdatedDelegate(InvokeUpdateUI);

            InitForms();
            mSplash.Close();
        }
Пример #5
0
 public CommTesterForm()
 {
     InitializeComponent();
     mComm = new Communication(mRS232);
     mComm.CommandRecived += mComm_CommandRecived;
 }