Example #1
0
 public DebugWindow()
 {
     InitializeComponent();
     _control = ControlClass.GetInstance();
     _control.StartPreview(AngleImg, ShiftImg);
     updateTimer.Interval = (40);
     updateTimer.Tick    += (o, e) => _control.DrawCross();
 }
Example #2
0
        public MainWindow(PowerMode mode, Form powerModeWindow)
        {
            InitializeComponent();
            _control  = ControlClass.GetInstance();
            _mode     = mode;
            _lastForm = powerModeWindow;
            switch (_mode)
            {
            case PowerMode.High:
                PowerModeLabel.Text = "工作模式:高功率"; break;

            case PowerMode.Medium:
                PowerModeLabel.Text = "工作模式:中功率";
                Calibrate.Enabled   = true;
                break;

            case PowerMode.Low:
                PowerModeLabel.Text = "工作模式:低功率"; break;
            }
            _control.StartPreview(AnglePicture, ShiftPicture);

            img = _control.imageX;
            UpDateTask.Start();
        }