public SystemStatusForm()
      {
         this.InitializeComponent();

         this.dimmerForm = new PopupDimmerForm();
         this.dimmerForm.Opacity = 0.65;
         this.dimmerForm.ShowInTaskbar = false;
      }
      public GuideSetupForm()
      {
         this.InitializeComponent();

         this.dimmerForm = new PopupDimmerForm();
         this.dimmerForm.Opacity = 0.65;
         this.dimmerForm.ShowInTaskbar = false;
      }
Exemple #3
0
      public MainForm()
      {
         this.InitializeComponent();

         this.fileTraceListener = new FileTraceListener();
         this.fileTraceListener.LogFilePath = @"c:\logs\nicbot";
         this.fileTraceListener.MaximumLines = 10000;
         this.fileTraceListener.Prefix = "NICBOT_";
         Trace.Listeners.Add(this.fileTraceListener);

         this.traceListener = new UdpTraceListener("127.0.0.1", 10000);
         Trace.Listeners.Add(this.traceListener);

         Tracer.MaskString = "FFFFFFFF";

         this.cameraButtons = new CameraSelectButton[16];
         this.cameraButtons[0] = this.RobotCamera1Button;
         this.cameraButtons[1] = this.RobotCamera2Button;
         this.cameraButtons[2] = this.RobotCamera3Button;
         this.cameraButtons[3] = this.RobotCamera4Button;
         this.cameraButtons[4] = this.RobotCamera5Button;
         this.cameraButtons[5] = this.RobotCamera6Button;
         this.cameraButtons[6] = this.RobotCamera7Button;
         this.cameraButtons[7] = this.RobotCamera8Button;
         this.cameraButtons[8] = this.RobotCamera9Button;
         this.cameraButtons[9] = this.RobotCamera10Button;
         this.cameraButtons[10] = this.RobotCamera11Button;
         this.cameraButtons[11] = this.RobotCamera12Button;
         this.cameraButtons[12] = this.LaunchCamera1Button;
         this.cameraButtons[13] = this.LaunchCamera2Button;
         this.cameraButtons[14] = this.LaunchCamera3Button;
         this.cameraButtons[15] = this.LaunchCamera4Button;

         this.dimmerForm = new PopupDimmerForm();
         this.dimmerForm.Opacity = 0.65;
         this.dimmerForm.ShowInTaskbar = false;
         
         LocationServer.Instance.OnLocationRequest = new LocationServer.LocationHandler(this.LocationDataProvider);
         LocationServer.Instance.OnThicknessReading = new LocationServer.ThicknessReadingHandler(this.ReceiveThicknessReading);
         LocationServer.Instance.OnStressReading = new LocationServer.StressReadingHandler(this.ReceiveStressReading);
      }