‪Black Box
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
BBTasker.BBtaskScheduler Class Reference
Inheritance diagram for BBTasker.BBtaskScheduler:

Public Member Functions

 BBtaskScheduler ()
 
string RemoveUnwantedChar (string input)
 ‪Parse model info More...
 

Static Public Attributes

static string StartDate = ""
 
static string StopDate = ""
 

Protected Member Functions

override void Dispose (bool disposing)
 ‪Clean up any resources being used. More...
 

Private Member Functions

void BBPSS ()
 ‪Black Box presence sensor status More...
 
void BBTSS ()
 ‪Black Box thermostat sensor status More...
 
void BBFSS ()
 ‪Black Box fitness tracker status More...
 
void StartPIR ()
 ‪Presence sensor file location More...
 
void StartThermostate ()
 ‪thermostat file location More...
 
void StartFitnessTracker ()
 ‪Fitness tracker file location More...
 
void BBTaskCheck ()
 ‪Checking the operation status More...
 
void StatusChecker_Tick (object sender, EventArgs e)
 ‪Intervals which status are checked More...
 
void TSStatusChecker ()
 ‪Check operation status More...
 
void BBSmartSetup_Click (object sender, EventArgs e)
 ‪Check network status More...
 
void BBAdvSetup_Click (object sender, EventArgs e)
 ‪Open the advance dialog box More...
 
void BBtaskScheduler_Load (object sender, EventArgs e)
 
bool ScheduleChecker ()
 ‪Get and check schedule dates More...
 
void BBRestart_Click (object sender, EventArgs e)
 ‪Restart task scheduler More...
 
void CheckDate ()
 ‪validate selected dates More...
 
void submitBtn_Click (object sender, EventArgs e)
 
void offBtn_Click (object sender, EventArgs e)
 ‪power down button More...
 
void networkDisconnect_Click (object sender, EventArgs e)
 ‪Stop network connection More...
 
void networkSetup_Click (object sender, EventArgs e)
 ‪Start network connection More...
 
void adaptorBtn_Click (object sender, EventArgs e)
 ‪Network connection window More...
 
void NetSetup_Click (object sender, EventArgs e)
 ‪Setup Black Box network More...
 
void InitializeComponent ()
 ‪Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

Process PIRSensorTask = new Process()
 
Process ThermostatTask = new Process()
 
Process FitnessTask = new Process()
 
Process BBNetwork = new Process()
 
string BBNSetup = @"netSetup.bat"
 
string BBPpath = @"BBPresenseSensor.exe"
 
string BBTpath = @"BBThermostatSensor.exe"
 
string BBFpath = @"MiBand-Heartrate.exe"
 
BBSensorObjects BBSO = new BBSensorObjects()
 
bool BBPSStatus = false
 
bool BBTSStatus = false
 
string BBTSname = ""
 
bool BBTSGetModel = false
 
bool BBFSStatus = false
 
string fileName = ""
 
bool ScheduleSet = false
 
DateTime startdate
 
DateTime enddate
 
DateTime today = DateTime.Today
 
System.ComponentModel.IContainer components = null
 ‪Required designer variable. More...
 
System.Windows.Forms.GroupBox groupBox2
 
System.Windows.Forms.GroupBox groupBox3
 
System.Windows.Forms.GroupBox groupBox4
 
System.Windows.Forms.GroupBox groupBox5
 
System.Windows.Forms.GroupBox groupBox7
 
System.Windows.Forms.GroupBox groupBox8
 
System.Windows.Forms.GroupBox groupBox9
 
System.Windows.Forms.PictureBox BBbanner
 
System.Windows.Forms.PictureBox pictureBox2
 
System.Windows.Forms.PictureBox pictureBox3
 
System.Windows.Forms.PictureBox BBfaqIcon
 
System.Windows.Forms.PictureBox pictureBox5
 
System.Windows.Forms.PictureBox BBRestart
 
System.Windows.Forms.PictureBox BBSmartSetup
 
System.Windows.Forms.PictureBox BBAdvSetup
 
System.Windows.Forms.PictureBox ThermostatStatusIcon
 
System.Windows.Forms.GroupBox BBTName
 
System.Windows.Forms.GroupBox groupBox14
 
System.Windows.Forms.PictureBox FitnessStatusIcon
 
System.Windows.Forms.Label label1
 
System.Windows.Forms.Label label5
 
System.Windows.Forms.Label label6
 
System.Windows.Forms.Label label7
 
System.Windows.Forms.Timer StatusChecker
 
System.Windows.Forms.GroupBox groupBox1
 
System.Windows.Forms.GroupBox groupBox15
 
System.Windows.Forms.PictureBox MotionStatusIcon
 
System.Windows.Forms.PictureBox pictureBox1
 
System.Windows.Forms.PictureBox SchedulerIcon
 
System.Windows.Forms.PictureBox StatusIcon
 
System.Windows.Forms.Label label3
 
System.Windows.Forms.Label label2
 
System.Windows.Forms.Label BBTModel
 
System.Windows.Forms.PictureBox pictureBox4
 
System.Windows.Forms.PictureBox pictureBox6
 
System.Windows.Forms.PictureBox pictureBox7
 
System.Windows.Forms.Label label4
 
System.Windows.Forms.Label label8
 
System.Windows.Forms.Label label9
 
System.Windows.Forms.GroupBox groupBox6
 
System.Windows.Forms.ProgressBar ResearchSpand
 
System.Windows.Forms.GroupBox groupBox10
 
System.Windows.Forms.PictureBox pictureBox8
 
System.Windows.Forms.Button submitBtn
 
System.Windows.Forms.GroupBox groupBox11
 
System.Windows.Forms.DateTimePicker StopDateObj
 
System.Windows.Forms.GroupBox groupBox12
 
System.Windows.Forms.DateTimePicker StartDateObj
 
System.Windows.Forms.PictureBox offBtn
 
System.Windows.Forms.Label label10
 
System.Windows.Forms.Label label12
 
System.Windows.Forms.PictureBox networkDisconnect
 
System.Windows.Forms.Label label11
 
System.Windows.Forms.PictureBox networkSetup
 
System.Windows.Forms.Label label14
 
System.Windows.Forms.PictureBox adaptorBtn
 
System.Windows.Forms.Label label13
 
System.Windows.Forms.PictureBox NetSetup
 

Detailed Description

Definition at line 23 of file BBtaskScheduler.cs.

Constructor & Destructor Documentation

◆ BBtaskScheduler()

BBTasker.BBtaskScheduler.BBtaskScheduler ( )

Definition at line 68 of file BBtaskScheduler.cs.

69  {
71 
72  ‪StatusChecker = new ‪Timer();
73  ‪StatusChecker.Tick += new EventHandler(‪StatusChecker_Tick);
74  ‪StatusChecker.Interval = 5000;
75  ‪StatusChecker.Enabled = true;
76  ‪StatusChecker.Stop();
77  }
‪void StatusChecker_Tick(object sender, EventArgs e)
‪Intervals which status are checked
‪System.Windows.Forms.Timer StatusChecker
‪void InitializeComponent()
‪Required method for Designer support - do not modify the contents of this method with the code editor...
‪System.Windows.Forms.Timer Timer

Member Function Documentation

◆ adaptorBtn_Click()

void BBTasker.BBtaskScheduler.adaptorBtn_Click ( object  sender,
EventArgs  e 
)
private

‪Network connection window

Parameters
sender
e

Definition at line 604 of file BBtaskScheduler.cs.

605  {
606  BBAccessPad AccessPad = new BBAccessPad();
607  AccessPad.ShowDialog();
608 
609  if (BBAccessPad.access)
610  {
611  ProcessStartInfo proc1 = new ProcessStartInfo();
612  string Command;
613  proc1.UseShellExecute = true;
614  Command = @"ncpa.cpl";
615  proc1.WorkingDirectory = @"C:\Windows\System32";
616  proc1.FileName = @"C:\Windows\System32\cmd.exe";
617  proc1.Arguments = "/k " + Command;
618  proc1.WindowStyle = ProcessWindowStyle.Hidden;
619  Process.Start(proc1);
620  }
621  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ BBAdvSetup_Click()

void BBTasker.BBtaskScheduler.BBAdvSetup_Click ( object  sender,
EventArgs  e 
)
private

‪Open the advance dialog box

Parameters
sender
e

Definition at line 401 of file BBtaskScheduler.cs.

402  {
403  BBAccessPad AccessPad = new BBAccessPad();
404  AccessPad.ShowDialog();
405 
406  if (BBAccessPad.access)
407  {
409  }
410  }
‪void StartFitnessTracker()
‪Fitness tracker file location

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ BBFSS()

void BBTasker.BBtaskScheduler.BBFSS ( )
private

‪Black Box fitness tracker status

Definition at line 181 of file BBtaskScheduler.cs.

182  {
183  ‪fileName = Path.GetFileName(‪BBFpath);
184 
185  //check if process still running
186  Process[] processName = Process.GetProcessesByName(‪fileName.Substring(0, ‪fileName.LastIndexOf('.')));
187  if (processName.Length > 0)
188  {
189  ‪FitnessStatusIcon.Image = Properties.Resources.trafficlight_green;
190  }
191  else
192  {
193  ‪FitnessStatusIcon.Image = Properties.Resources.trafficlight_red;
194  ‪BBFSStatus = false;
195  }
196  }
‪System.Windows.Forms.PictureBox FitnessStatusIcon

Referenced by BBTasker.BBtaskScheduler.TSStatusChecker().

◆ BBPSS()

void BBTasker.BBtaskScheduler.BBPSS ( )
private

‪Black Box presence sensor status

Definition at line 86 of file BBtaskScheduler.cs.

87  {
88  ‪fileName = Path.GetFileName(‪BBPpath);
89 
90  //check if process still running
91  Process[] processName = Process.GetProcessesByName(‪fileName.Substring(0, ‪fileName.LastIndexOf('.')));
92  if (processName.Length > 0)
93  {
94  ‪MotionStatusIcon.Image = Properties.Resources.trafficlight_green;
95 
96  // Check running condition
98 
99  // Operation status
100  if (‪BBPSStatus)
101  {
102  ‪MotionStatusIcon.Image = Properties.Resources.trafficlight_green;
103  }
104  if (!‪BBPSStatus)
105  {
106  ‪MotionStatusIcon.Image = Properties.Resources.trafficlight_yellow;
107  }
108  }
109  else
110  {
111  ‪MotionStatusIcon.Image = Properties.Resources.trafficlight_red;
112  ‪BBPSStatus = false;
113  }
114  }
‪System.Windows.Forms.PictureBox MotionStatusIcon

Referenced by BBTasker.BBtaskScheduler.TSStatusChecker().

◆ BBRestart_Click()

void BBTasker.BBtaskScheduler.BBRestart_Click ( object  sender,
EventArgs  e 
)
private

‪Restart task scheduler

Parameters
sender
e

Definition at line 453 of file BBtaskScheduler.cs.

454  {
455  BBAccessPad AccessPad = new BBAccessPad();
456  AccessPad.ShowDialog();
457 
458  if (BBAccessPad.access)
459  {
460  ‪PIRSensorTask.Kill();
461  ‪ThermostatTask.Kill();
462  ‪FitnessTask.Kill();
463  Thread.Sleep(1000);
464  ‪PIRSensorTask.Start();
465  Thread.Sleep(500);
466  ‪ThermostatTask.Start();
467  Thread.Sleep(500);
468  ‪FitnessTask.Kill();
469  }
470  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ BBSmartSetup_Click()

void BBTasker.BBtaskScheduler.BBSmartSetup_Click ( object  sender,
EventArgs  e 
)
private

‪Check network status

Parameters
sender
e

Definition at line 376 of file BBtaskScheduler.cs.

377  {
378  BBAccessPad AccessPad = new BBAccessPad();
379  AccessPad.ShowDialog();
380 
381  if (BBAccessPad.access)
382  {
383  ProcessStartInfo proc1 = new ProcessStartInfo();
384  string Command;
385  proc1.UseShellExecute = true;
386  Command = @"netsh wlan show hostednetwork";
387  proc1.WorkingDirectory = @"C:\Windows\System32";
388  proc1.FileName = @"C:\Windows\System32\cmd.exe";
389  proc1.Verb = "runas";
390  proc1.Arguments = "/k " + Command;
391  proc1.WindowStyle = ProcessWindowStyle.Normal;
392  Process.Start(proc1);
393  }
394  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ BBTaskCheck()

void BBTasker.BBtaskScheduler.BBTaskCheck ( )
private

‪Checking the operation status

Definition at line 261 of file BBtaskScheduler.cs.

262  {
263  ‪StatusIcon.Image = Properties.Resources.trafficlight_green;
264 
265  try
266  {
267  // Checking the status of the sensors
269  {
270  ‪SchedulerIcon.Image = Properties.Resources.trafficlight_green;
271  }
273  {
274  ‪SchedulerIcon.Image = Properties.Resources.trafficlight_green;
275  }
277  {
278  ‪SchedulerIcon.Image = Properties.Resources.trafficlight_yellow;
279  }
281  {
282  ‪SchedulerIcon.Image = Properties.Resources.trafficlight_yellow;
283  }
284  }
285  catch (Exception ex)
286  {
287  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
288  ‪SchedulerIcon.Image = Properties.Resources.trafficlight_red;
289  }
290  }
‪System.Windows.Forms.PictureBox StatusIcon
‪static void SaveErrorData(string error)
‪Log all the error that occurs in the program
‪System.Windows.Forms.PictureBox SchedulerIcon

Referenced by BBTasker.BBtaskScheduler.TSStatusChecker().

◆ BBtaskScheduler_Load()

void BBTasker.BBtaskScheduler.BBtaskScheduler_Load ( object  sender,
EventArgs  e 
)
private

Parameters
sender
e

Definition at line 416 of file BBtaskScheduler.cs.

417  {
418  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ BBTSS()

void BBTasker.BBtaskScheduler.BBTSS ( )
private

‪Black Box thermostat sensor status

Definition at line 119 of file BBtaskScheduler.cs.

121  {
122  string ‪fileName = Path.GetFileName(‪BBTpath);
123 
124  //check if process still running
125  Process[] processName = Process.GetProcessesByName(‪fileName.Substring(0, ‪fileName.LastIndexOf('.')));
126  if (processName.Length > 0)
127  {
128  ‪ThermostatStatusIcon.Image = Properties.Resources.trafficlight_green;
129 
130  // Get thermostat model
131  if (!‪BBTSGetModel)
132  {
134 
136 
137  ‪BBTModel.Text = ‪BBTSname;
138  ‪BBTSGetModel = true;
139  }
140 
141  //Checking thermostat data status
143 
144  // Operation status
145  if (‪BBTSStatus)
146  {
147  ‪ThermostatStatusIcon.Image = Properties.Resources.trafficlight_green;
148  }
149  if (!‪BBTSStatus)
150  {
151  ‪ThermostatStatusIcon.Image = Properties.Resources.trafficlight_red;
152  }
153  }
154  else
155  {
156  ‪ThermostatStatusIcon.Image = Properties.Resources.trafficlight_red;
157  ‪BBTSStatus = false;
158  }
159  }
‪string RemoveUnwantedChar(string input)
‪Parse model info
‪static string BBThermostatType()
‪This method retrieve thermostat model
‪System.Windows.Forms.Label BBTModel
‪System.Windows.Forms.PictureBox ThermostatStatusIcon

Referenced by BBTasker.BBtaskScheduler.TSStatusChecker().

◆ CheckDate()

void BBTasker.BBtaskScheduler.CheckDate ( )
private

‪validate selected dates

Definition at line 479 of file BBtaskScheduler.cs.

480  {
481  DateTime ‪today = DateTime.Today;
482  if ((‪startdate <= ‪today) && (‪today <= ‪enddate))
483  {
485 
486  if (‪ScheduleSet)
487  {
489  ‪StatusChecker.Start();
490  Thread.Sleep(500);
492  Thread.Sleep(500);
494  Thread.Sleep(500);
495  ‪StartPIR();
496  }
497  }
498  else
499  {
500  ‪StopDate = "";
501  ‪StartDate = "";
502  MessageBox.Show("Schedule date invalid");
503  }
504  }
‪void StartPIR()
‪Presence sensor file location
‪void StartThermostate()
‪thermostat file location
‪bool ScheduleChecker()
‪Get and check schedule dates
‪System.Windows.Forms.Timer StatusChecker
‪void StartFitnessTracker()
‪Fitness tracker file location

Referenced by BBTasker.BBtaskScheduler.submitBtn_Click().

◆ Dispose()

override void BBTasker.BBtaskScheduler.Dispose ( bool  disposing)
protected

‪Clean up any resources being used.

Parameters
disposing‪true if managed resources should be disposed; otherwise, false.

Definition at line 14 of file BBtaskScheduler.Designer.cs.

15  {
16  if (disposing && (‪components != null))
17  {
18  ‪components.Dispose();
19  }
20  base.Dispose(disposing);
21  }
‪System.ComponentModel.IContainer components
‪Required designer variable.

◆ InitializeComponent()

void BBTasker.BBtaskScheduler.InitializeComponent ( )
private

‪Required method for Designer support - do not modify the contents of this method with the code editor.

Definition at line 29 of file BBtaskScheduler.Designer.cs.

30  {
31  this.‪components = new System.ComponentModel.Container();
32  System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(‪BBtaskScheduler));
33  this.‪groupBox2 = new System.Windows.Forms.GroupBox();
34  this.‪BBTName = new System.Windows.Forms.GroupBox();
35  this.‪ThermostatStatusIcon = new System.Windows.Forms.PictureBox();
36  this.‪BBTModel = new System.Windows.Forms.Label();
37  this.‪pictureBox2 = new System.Windows.Forms.PictureBox();
38  this.‪groupBox3 = new System.Windows.Forms.GroupBox();
39  this.‪groupBox14 = new System.Windows.Forms.GroupBox();
40  this.‪FitnessStatusIcon = new System.Windows.Forms.PictureBox();
41  this.‪pictureBox3 = new System.Windows.Forms.PictureBox();
42  this.‪groupBox4 = new System.Windows.Forms.GroupBox();
43  this.‪label1 = new System.Windows.Forms.Label();
44  this.‪BBfaqIcon = new System.Windows.Forms.PictureBox();
45  this.‪groupBox5 = new System.Windows.Forms.GroupBox();
46  this.‪label3 = new System.Windows.Forms.Label();
47  this.‪label2 = new System.Windows.Forms.Label();
48  this.‪SchedulerIcon = new System.Windows.Forms.PictureBox();
49  this.‪StatusIcon = new System.Windows.Forms.PictureBox();
50  this.‪pictureBox5 = new System.Windows.Forms.PictureBox();
51  this.‪groupBox7 = new System.Windows.Forms.GroupBox();
52  this.‪label10 = new System.Windows.Forms.Label();
53  this.‪offBtn = new System.Windows.Forms.PictureBox();
54  this.‪label7 = new System.Windows.Forms.Label();
55  this.‪BBRestart = new System.Windows.Forms.PictureBox();
56  this.‪groupBox8 = new System.Windows.Forms.GroupBox();
57  this.‪label12 = new System.Windows.Forms.Label();
58  this.‪networkDisconnect = new System.Windows.Forms.PictureBox();
59  this.‪label11 = new System.Windows.Forms.Label();
60  this.‪networkSetup = new System.Windows.Forms.PictureBox();
61  this.‪label5 = new System.Windows.Forms.Label();
62  this.‪BBSmartSetup = new System.Windows.Forms.PictureBox();
63  this.‪groupBox9 = new System.Windows.Forms.GroupBox();
64  this.‪label14 = new System.Windows.Forms.Label();
65  this.‪adaptorBtn = new System.Windows.Forms.PictureBox();
66  this.‪label13 = new System.Windows.Forms.Label();
67  this.‪NetSetup = new System.Windows.Forms.PictureBox();
68  this.‪label6 = new System.Windows.Forms.Label();
69  this.‪BBAdvSetup = new System.Windows.Forms.PictureBox();
70  this.‪StatusChecker = new System.Windows.Forms.Timer(this.‪components);
71  this.‪groupBox1 = new System.Windows.Forms.GroupBox();
72  this.‪groupBox15 = new System.Windows.Forms.GroupBox();
73  this.‪MotionStatusIcon = new System.Windows.Forms.PictureBox();
74  this.‪pictureBox1 = new System.Windows.Forms.PictureBox();
75  this.‪label4 = new System.Windows.Forms.Label();
76  this.‪label8 = new System.Windows.Forms.Label();
77  this.‪label9 = new System.Windows.Forms.Label();
78  this.‪groupBox6 = new System.Windows.Forms.GroupBox();
79  this.‪pictureBox7 = new System.Windows.Forms.PictureBox();
80  this.‪pictureBox6 = new System.Windows.Forms.PictureBox();
81  this.‪pictureBox4 = new System.Windows.Forms.PictureBox();
82  this.‪ResearchSpand = new System.Windows.Forms.ProgressBar();
83  this.‪groupBox10 = new System.Windows.Forms.GroupBox();
84  this.‪pictureBox8 = new System.Windows.Forms.PictureBox();
85  this.‪submitBtn = new System.Windows.Forms.Button();
86  this.‪groupBox11 = new System.Windows.Forms.GroupBox();
87  this.‪StopDateObj = new System.Windows.Forms.DateTimePicker();
88  this.‪groupBox12 = new System.Windows.Forms.GroupBox();
89  this.‪StartDateObj = new System.Windows.Forms.DateTimePicker();
90  this.‪BBbanner = new System.Windows.Forms.PictureBox();
91  this.‪groupBox2.SuspendLayout();
92  this.‪BBTName.SuspendLayout();
93  ((System.ComponentModel.ISupportInitialize)(this.‪ThermostatStatusIcon)).BeginInit();
94  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox2)).BeginInit();
95  this.‪groupBox3.SuspendLayout();
96  this.‪groupBox14.SuspendLayout();
97  ((System.ComponentModel.ISupportInitialize)(this.‪FitnessStatusIcon)).BeginInit();
98  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox3)).BeginInit();
99  this.‪groupBox4.SuspendLayout();
100  ((System.ComponentModel.ISupportInitialize)(this.‪BBfaqIcon)).BeginInit();
101  this.‪groupBox5.SuspendLayout();
102  ((System.ComponentModel.ISupportInitialize)(this.‪SchedulerIcon)).BeginInit();
103  ((System.ComponentModel.ISupportInitialize)(this.‪StatusIcon)).BeginInit();
104  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox5)).BeginInit();
105  this.‪groupBox7.SuspendLayout();
106  ((System.ComponentModel.ISupportInitialize)(this.‪offBtn)).BeginInit();
107  ((System.ComponentModel.ISupportInitialize)(this.‪BBRestart)).BeginInit();
108  this.‪groupBox8.SuspendLayout();
109  ((System.ComponentModel.ISupportInitialize)(this.‪networkDisconnect)).BeginInit();
110  ((System.ComponentModel.ISupportInitialize)(this.‪networkSetup)).BeginInit();
111  ((System.ComponentModel.ISupportInitialize)(this.‪BBSmartSetup)).BeginInit();
112  this.‪groupBox9.SuspendLayout();
113  ((System.ComponentModel.ISupportInitialize)(this.‪adaptorBtn)).BeginInit();
114  ((System.ComponentModel.ISupportInitialize)(this.‪NetSetup)).BeginInit();
115  ((System.ComponentModel.ISupportInitialize)(this.‪BBAdvSetup)).BeginInit();
116  this.‪groupBox1.SuspendLayout();
117  this.‪groupBox15.SuspendLayout();
118  ((System.ComponentModel.ISupportInitialize)(this.‪MotionStatusIcon)).BeginInit();
119  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox1)).BeginInit();
120  this.‪groupBox6.SuspendLayout();
121  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox7)).BeginInit();
122  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox6)).BeginInit();
123  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox4)).BeginInit();
124  this.‪groupBox10.SuspendLayout();
125  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox8)).BeginInit();
126  this.‪groupBox11.SuspendLayout();
127  this.‪groupBox12.SuspendLayout();
128  ((System.ComponentModel.ISupportInitialize)(this.‪BBbanner)).BeginInit();
129  this.SuspendLayout();
130  //
131  // groupBox2
132  //
133  this.‪groupBox2.BackColor = System.Drawing.Color.Navy;
134  this.‪groupBox2.Controls.Add(this.‪BBTName);
135  this.‪groupBox2.Controls.Add(this.‪BBTModel);
136  this.‪groupBox2.Controls.Add(this.‪pictureBox2);
137  this.‪groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
138  this.‪groupBox2.ForeColor = System.Drawing.SystemColors.ButtonFace;
139  this.‪groupBox2.Location = new System.Drawing.Point(30, 86);
140  this.‪groupBox2.Name = "groupBox2";
141  this.‪groupBox2.Size = new System.Drawing.Size(250, 365);
142  this.‪groupBox2.TabIndex = 1;
143  this.‪groupBox2.TabStop = false;
144  //
145  // BBTName
146  //
147  this.‪BBTName.Controls.Add(this.‪ThermostatStatusIcon);
148  this.‪BBTName.ForeColor = System.Drawing.SystemColors.Control;
149  this.‪BBTName.Location = new System.Drawing.Point(18, 228);
150  this.‪BBTName.Name = "BBTName";
151  this.‪BBTName.Size = new System.Drawing.Size(205, 124);
152  this.‪BBTName.TabIndex = 3;
153  this.‪BBTName.TabStop = false;
154  this.‪BBTName.Text = "Sensor Status";
155  //
156  // ThermostatStatusIcon
157  //
158  this.‪ThermostatStatusIcon.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
159  this.‪ThermostatStatusIcon.Image = global::BBTasker.Properties.Resources.trafficlight_yellow;
160  this.‪ThermostatStatusIcon.Location = new System.Drawing.Point(17, 20);
161  this.‪ThermostatStatusIcon.Name = "ThermostatStatusIcon";
162  this.‪ThermostatStatusIcon.Size = new System.Drawing.Size(173, 84);
163  this.‪ThermostatStatusIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
164  this.‪ThermostatStatusIcon.TabIndex = 3;
165  this.‪ThermostatStatusIcon.TabStop = false;
166  //
167  // BBTModel
168  //
169  this.‪BBTModel.AutoSize = true;
170  this.‪BBTModel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
171  this.‪BBTModel.ForeColor = System.Drawing.SystemColors.ButtonHighlight;
172  this.‪BBTModel.Location = new System.Drawing.Point(15, 41);
173  this.‪BBTModel.Name = "BBTModel";
174  this.‪BBTModel.Size = new System.Drawing.Size(51, 17);
175  this.‪BBTModel.TabIndex = 10;
176  this.‪BBTModel.Text = "Model";
177  //
178  // pictureBox2
179  //
180  this.‪pictureBox2.Image = global::BBTasker.Properties.Resources.appliance_home_house_household_thermostat_512;
181  this.‪pictureBox2.Location = new System.Drawing.Point(18, 80);
182  this.‪pictureBox2.Name = "pictureBox2";
183  this.‪pictureBox2.Size = new System.Drawing.Size(205, 142);
184  this.‪pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
185  this.‪pictureBox2.TabIndex = 1;
186  this.‪pictureBox2.TabStop = false;
187  //
188  // groupBox3
189  //
190  this.‪groupBox3.BackColor = System.Drawing.Color.Navy;
191  this.‪groupBox3.Controls.Add(this.‪groupBox14);
192  this.‪groupBox3.Controls.Add(this.‪pictureBox3);
193  this.‪groupBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
194  this.‪groupBox3.ForeColor = System.Drawing.SystemColors.Control;
195  this.‪groupBox3.Location = new System.Drawing.Point(542, 86);
196  this.‪groupBox3.Name = "groupBox3";
197  this.‪groupBox3.Size = new System.Drawing.Size(250, 365);
198  this.‪groupBox3.TabIndex = 2;
199  this.‪groupBox3.TabStop = false;
200  //
201  // groupBox14
202  //
203  this.‪groupBox14.Controls.Add(this.‪FitnessStatusIcon);
204  this.‪groupBox14.ForeColor = System.Drawing.SystemColors.ButtonFace;
205  this.‪groupBox14.Location = new System.Drawing.Point(13, 228);
206  this.‪groupBox14.Name = "groupBox14";
207  this.‪groupBox14.Size = new System.Drawing.Size(217, 124);
208  this.‪groupBox14.TabIndex = 4;
209  this.‪groupBox14.TabStop = false;
210  this.‪groupBox14.Text = "Sensor Status";
211  //
212  // FitnessStatusIcon
213  //
214  this.‪FitnessStatusIcon.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
215  this.‪FitnessStatusIcon.Image = global::BBTasker.Properties.Resources.trafficlight_yellow;
216  this.‪FitnessStatusIcon.Location = new System.Drawing.Point(16, 20);
217  this.‪FitnessStatusIcon.Name = "FitnessStatusIcon";
218  this.‪FitnessStatusIcon.Size = new System.Drawing.Size(173, 84);
219  this.‪FitnessStatusIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
220  this.‪FitnessStatusIcon.TabIndex = 3;
221  this.‪FitnessStatusIcon.TabStop = false;
222  //
223  // pictureBox3
224  //
225  this.‪pictureBox3.Image = global::BBTasker.Properties.Resources.smart_technology_fitness_tracker_128;
226  this.‪pictureBox3.Location = new System.Drawing.Point(44, 80);
227  this.‪pictureBox3.Name = "pictureBox3";
228  this.‪pictureBox3.Size = new System.Drawing.Size(158, 142);
229  this.‪pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
230  this.‪pictureBox3.TabIndex = 1;
231  this.‪pictureBox3.TabStop = false;
232  //
233  // groupBox4
234  //
235  this.‪groupBox4.BackColor = System.Drawing.Color.Navy;
236  this.‪groupBox4.Controls.Add(this.‪label1);
237  this.‪groupBox4.Controls.Add(this.‪BBfaqIcon);
238  this.‪groupBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
239  this.‪groupBox4.ForeColor = System.Drawing.SystemColors.Control;
240  this.‪groupBox4.Location = new System.Drawing.Point(30, 457);
241  this.‪groupBox4.Name = "groupBox4";
242  this.‪groupBox4.Size = new System.Drawing.Size(250, 261);
243  this.‪groupBox4.TabIndex = 3;
244  this.‪groupBox4.TabStop = false;
245  //
246  // label1
247  //
248  this.‪label1.AutoSize = true;
249  this.‪label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
250  this.‪label1.Location = new System.Drawing.Point(99, 30);
251  this.‪label1.Name = "label1";
252  this.‪label1.Size = new System.Drawing.Size(96, 60);
253  this.‪label1.TabIndex = 2;
254  this.‪label1.Text = "Wizards\r\nFAQs\r\nUser guide";
255  //
256  // BBfaqIcon
257  //
258  this.‪BBfaqIcon.Image = global::BBTasker.Properties.Resources.Cute_Ball_Help_icon;
259  this.‪BBfaqIcon.Location = new System.Drawing.Point(12, 20);
260  this.‪BBfaqIcon.Name = "BBfaqIcon";
261  this.‪BBfaqIcon.Size = new System.Drawing.Size(70, 70);
262  this.‪BBfaqIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
263  this.‪BBfaqIcon.TabIndex = 1;
264  this.‪BBfaqIcon.TabStop = false;
265  //
266  // groupBox5
267  //
268  this.‪groupBox5.BackColor = System.Drawing.Color.Navy;
269  this.‪groupBox5.Controls.Add(this.‪label3);
270  this.‪groupBox5.Controls.Add(this.‪label2);
271  this.‪groupBox5.Controls.Add(this.‪SchedulerIcon);
272  this.‪groupBox5.Controls.Add(this.‪StatusIcon);
273  this.‪groupBox5.Controls.Add(this.‪pictureBox5);
274  this.‪groupBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
275  this.‪groupBox5.ForeColor = System.Drawing.SystemColors.Control;
276  this.‪groupBox5.Location = new System.Drawing.Point(798, 86);
277  this.‪groupBox5.Name = "groupBox5";
278  this.‪groupBox5.Size = new System.Drawing.Size(250, 365);
279  this.‪groupBox5.TabIndex = 4;
280  this.‪groupBox5.TabStop = false;
281  //
282  // label3
283  //
284  this.‪label3.AutoSize = true;
285  this.‪label3.Location = new System.Drawing.Point(26, 228);
286  this.‪label3.Name = "label3";
287  this.‪label3.Size = new System.Drawing.Size(116, 15);
288  this.‪label3.TabIndex = 9;
289  this.‪label3.Text = "Scheduler Status";
290  //
291  // label2
292  //
293  this.‪label2.AutoSize = true;
294  this.‪label2.Location = new System.Drawing.Point(26, 120);
295  this.‪label2.Name = "label2";
296  this.‪label2.Size = new System.Drawing.Size(121, 15);
297  this.‪label2.TabIndex = 8;
298  this.‪label2.Text = "Dashboard Status";
299  //
300  // SchedulerIcon
301  //
302  this.‪SchedulerIcon.Image = global::BBTasker.Properties.Resources.trafficlight_yellow;
303  this.‪SchedulerIcon.Location = new System.Drawing.Point(29, 248);
304  this.‪SchedulerIcon.Name = "SchedulerIcon";
305  this.‪SchedulerIcon.Size = new System.Drawing.Size(173, 84);
306  this.‪SchedulerIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
307  this.‪SchedulerIcon.TabIndex = 7;
308  this.‪SchedulerIcon.TabStop = false;
309  //
310  // StatusIcon
311  //
312  this.‪StatusIcon.Image = global::BBTasker.Properties.Resources.trafficlight_yellow;
313  this.‪StatusIcon.Location = new System.Drawing.Point(29, 138);
314  this.‪StatusIcon.Name = "StatusIcon";
315  this.‪StatusIcon.Size = new System.Drawing.Size(173, 84);
316  this.‪StatusIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
317  this.‪StatusIcon.TabIndex = 6;
318  this.‪StatusIcon.TabStop = false;
319  //
320  // pictureBox5
321  //
322  this.‪pictureBox5.Image = global::BBTasker.Properties.Resources.computer_status_2_512;
323  this.‪pictureBox5.Location = new System.Drawing.Point(57, 20);
324  this.‪pictureBox5.Name = "pictureBox5";
325  this.‪pictureBox5.Size = new System.Drawing.Size(116, 97);
326  this.‪pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
327  this.‪pictureBox5.TabIndex = 1;
328  this.‪pictureBox5.TabStop = false;
329  //
330  // groupBox7
331  //
332  this.‪groupBox7.BackColor = System.Drawing.Color.Navy;
333  this.‪groupBox7.Controls.Add(this.‪label10);
334  this.‪groupBox7.Controls.Add(this.‪offBtn);
335  this.‪groupBox7.Controls.Add(this.‪label7);
336  this.‪groupBox7.Controls.Add(this.‪BBRestart);
337  this.‪groupBox7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
338  this.‪groupBox7.ForeColor = System.Drawing.SystemColors.Control;
339  this.‪groupBox7.Location = new System.Drawing.Point(798, 457);
340  this.‪groupBox7.Name = "groupBox7";
341  this.‪groupBox7.Size = new System.Drawing.Size(250, 261);
342  this.‪groupBox7.TabIndex = 6;
343  this.‪groupBox7.TabStop = false;
344  //
345  // label10
346  //
347  this.‪label10.AutoSize = true;
348  this.‪label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
349  this.‪label10.Location = new System.Drawing.Point(84, 144);
350  this.‪label10.Name = "label10";
351  this.‪label10.Size = new System.Drawing.Size(90, 40);
352  this.‪label10.TabIndex = 6;
353  this.‪label10.Text = "Power Off\r\nScheduler";
354  //
355  // offBtn
356  //
357  this.‪offBtn.Image = global::BBTasker.Properties.Resources.Crystal_Project_Exit;
358  this.‪offBtn.Location = new System.Drawing.Point(10, 132);
359  this.‪offBtn.Name = "offBtn";
360  this.‪offBtn.Size = new System.Drawing.Size(68, 61);
361  this.‪offBtn.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
362  this.‪offBtn.TabIndex = 5;
363  this.‪offBtn.TabStop = false;
364  this.‪offBtn.Click += new System.EventHandler(this.‪offBtn_Click);
365  //
366  // label7
367  //
368  this.‪label7.AutoSize = true;
369  this.‪label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
370  this.‪label7.Location = new System.Drawing.Point(84, 29);
371  this.‪label7.Name = "label7";
372  this.‪label7.Size = new System.Drawing.Size(90, 40);
373  this.‪label7.TabIndex = 4;
374  this.‪label7.Text = "Refresh\r\nScheduler";
375  //
376  // BBRestart
377  //
378  this.‪BBRestart.Image = global::BBTasker.Properties.Resources.Quick_restart;
379  this.‪BBRestart.Location = new System.Drawing.Point(10, 20);
380  this.‪BBRestart.Name = "BBRestart";
381  this.‪BBRestart.Size = new System.Drawing.Size(68, 61);
382  this.‪BBRestart.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
383  this.‪BBRestart.TabIndex = 3;
384  this.‪BBRestart.TabStop = false;
385  this.‪BBRestart.Click += new System.EventHandler(this.‪BBRestart_Click);
386  //
387  // groupBox8
388  //
389  this.‪groupBox8.BackColor = System.Drawing.Color.Navy;
390  this.‪groupBox8.Controls.Add(this.‪label12);
391  this.‪groupBox8.Controls.Add(this.‪networkDisconnect);
392  this.‪groupBox8.Controls.Add(this.‪label11);
393  this.‪groupBox8.Controls.Add(this.‪networkSetup);
394  this.‪groupBox8.Controls.Add(this.‪label5);
395  this.‪groupBox8.Controls.Add(this.‪BBSmartSetup);
396  this.‪groupBox8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
397  this.‪groupBox8.ForeColor = System.Drawing.SystemColors.Control;
398  this.‪groupBox8.Location = new System.Drawing.Point(286, 457);
399  this.‪groupBox8.Name = "groupBox8";
400  this.‪groupBox8.Size = new System.Drawing.Size(250, 261);
401  this.‪groupBox8.TabIndex = 6;
402  this.‪groupBox8.TabStop = false;
403  //
404  // label12
405  //
406  this.‪label12.AutoSize = true;
407  this.‪label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
408  this.‪label12.Location = new System.Drawing.Point(82, 193);
409  this.‪label12.Name = "label12";
410  this.‪label12.Size = new System.Drawing.Size(99, 40);
411  this.‪label12.TabIndex = 8;
412  this.‪label12.Text = "Disconnect\r\nNetwork";
413  //
414  // networkDisconnect
415  //
416  this.‪networkDisconnect.Image = global::BBTasker.Properties.Resources.Crystal_Project_Exit;
417  this.‪networkDisconnect.Location = new System.Drawing.Point(6, 178);
418  this.‪networkDisconnect.Name = "networkDisconnect";
419  this.‪networkDisconnect.Size = new System.Drawing.Size(70, 67);
420  this.‪networkDisconnect.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
421  this.‪networkDisconnect.TabIndex = 7;
422  this.‪networkDisconnect.TabStop = false;
423  this.‪networkDisconnect.Click += new System.EventHandler(this.‪networkDisconnect_Click);
424  //
425  // label11
426  //
427  this.‪label11.AutoSize = true;
428  this.‪label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
429  this.‪label11.Location = new System.Drawing.Point(82, 111);
430  this.‪label11.Name = "label11";
431  this.‪label11.Size = new System.Drawing.Size(74, 40);
432  this.‪label11.TabIndex = 6;
433  this.‪label11.Text = "Start\r\nNetwork";
434  //
435  // networkSetup
436  //
437  this.‪networkSetup.Image = global::BBTasker.Properties.Resources._256_256_ada8cdcc2d399ed2ee327ebe5d479797_power;
438  this.‪networkSetup.Location = new System.Drawing.Point(6, 96);
439  this.‪networkSetup.Name = "networkSetup";
440  this.‪networkSetup.Size = new System.Drawing.Size(70, 67);
441  this.‪networkSetup.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
442  this.‪networkSetup.TabIndex = 5;
443  this.‪networkSetup.TabStop = false;
444  this.‪networkSetup.Click += new System.EventHandler(this.‪networkSetup_Click);
445  //
446  // label5
447  //
448  this.‪label5.AutoSize = true;
449  this.‪label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
450  this.‪label5.Location = new System.Drawing.Point(82, 29);
451  this.‪label5.Name = "label5";
452  this.‪label5.Size = new System.Drawing.Size(132, 40);
453  this.‪label5.TabIndex = 4;
454  this.‪label5.Text = "Check\r\nNetwork Status";
455  //
456  // BBSmartSetup
457  //
458  this.‪BBSmartSetup.Image = global::BBTasker.Properties.Resources._12197296601743874679Ambox_warning_blue_svg_med;
459  this.‪BBSmartSetup.Location = new System.Drawing.Point(6, 14);
460  this.‪BBSmartSetup.Name = "BBSmartSetup";
461  this.‪BBSmartSetup.Size = new System.Drawing.Size(70, 67);
462  this.‪BBSmartSetup.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
463  this.‪BBSmartSetup.TabIndex = 3;
464  this.‪BBSmartSetup.TabStop = false;
465  this.‪BBSmartSetup.Click += new System.EventHandler(this.‪BBSmartSetup_Click);
466  //
467  // groupBox9
468  //
469  this.‪groupBox9.BackColor = System.Drawing.Color.Navy;
470  this.‪groupBox9.Controls.Add(this.‪label14);
471  this.‪groupBox9.Controls.Add(this.‪adaptorBtn);
472  this.‪groupBox9.Controls.Add(this.‪label13);
473  this.‪groupBox9.Controls.Add(this.‪NetSetup);
474  this.‪groupBox9.Controls.Add(this.‪label6);
475  this.‪groupBox9.Controls.Add(this.‪BBAdvSetup);
476  this.‪groupBox9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
477  this.‪groupBox9.ForeColor = System.Drawing.SystemColors.Control;
478  this.‪groupBox9.Location = new System.Drawing.Point(542, 457);
479  this.‪groupBox9.Name = "groupBox9";
480  this.‪groupBox9.Size = new System.Drawing.Size(250, 261);
481  this.‪groupBox9.TabIndex = 7;
482  this.‪groupBox9.TabStop = false;
483  //
484  // label14
485  //
486  this.‪label14.AutoSize = true;
487  this.‪label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
488  this.‪label14.Location = new System.Drawing.Point(82, 105);
489  this.‪label14.Name = "label14";
490  this.‪label14.Size = new System.Drawing.Size(122, 40);
491  this.‪label14.TabIndex = 9;
492  this.‪label14.Text = "Connection\r\nAdaptor Menu";
493  //
494  // adaptorBtn
495  //
496  this.‪adaptorBtn.Image = global::BBTasker.Properties.Resources.gear_47203_960_720;
497  this.‪adaptorBtn.Location = new System.Drawing.Point(6, 96);
498  this.‪adaptorBtn.Name = "adaptorBtn";
499  this.‪adaptorBtn.Size = new System.Drawing.Size(70, 61);
500  this.‪adaptorBtn.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
501  this.‪adaptorBtn.TabIndex = 8;
502  this.‪adaptorBtn.TabStop = false;
503  this.‪adaptorBtn.Click += new System.EventHandler(this.‪adaptorBtn_Click);
504  //
505  // label13
506  //
507  this.‪label13.AutoSize = true;
508  this.‪label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
509  this.‪label13.Location = new System.Drawing.Point(82, 180);
510  this.‪label13.Name = "label13";
511  this.‪label13.Size = new System.Drawing.Size(127, 40);
512  this.‪label13.TabIndex = 7;
513  this.‪label13.Text = "Automatic\r\nNetwork Setup";
514  //
515  // NetSetup
516  //
517  this.‪NetSetup.Image = global::BBTasker.Properties.Resources.gear_47203_960_720;
518  this.‪NetSetup.Location = new System.Drawing.Point(6, 172);
519  this.‪NetSetup.Name = "NetSetup";
520  this.‪NetSetup.Size = new System.Drawing.Size(70, 61);
521  this.‪NetSetup.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
522  this.‪NetSetup.TabIndex = 6;
523  this.‪NetSetup.TabStop = false;
524  this.‪NetSetup.Click += new System.EventHandler(this.‪NetSetup_Click);
525  //
526  // label6
527  //
528  this.‪label6.AutoSize = true;
529  this.‪label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
530  this.‪label6.Location = new System.Drawing.Point(82, 29);
531  this.‪label6.Name = "label6";
532  this.‪label6.Size = new System.Drawing.Size(133, 40);
533  this.‪label6.TabIndex = 5;
534  this.‪label6.Text = "Fitness Tracker\r\nSetup Menu";
535  //
536  // BBAdvSetup
537  //
538  this.‪BBAdvSetup.Image = global::BBTasker.Properties.Resources.gear_47203_960_720;
539  this.‪BBAdvSetup.Location = new System.Drawing.Point(6, 20);
540  this.‪BBAdvSetup.Name = "BBAdvSetup";
541  this.‪BBAdvSetup.Size = new System.Drawing.Size(70, 61);
542  this.‪BBAdvSetup.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
543  this.‪BBAdvSetup.TabIndex = 3;
544  this.‪BBAdvSetup.TabStop = false;
545  this.‪BBAdvSetup.Click += new System.EventHandler(this.‪BBAdvSetup_Click);
546  //
547  // StatusChecker
548  //
549  this.‪StatusChecker.Interval = 5000;
550  this.‪StatusChecker.Tick += new System.EventHandler(this.‪StatusChecker_Tick);
551  //
552  // groupBox1
553  //
554  this.‪groupBox1.BackColor = System.Drawing.Color.Navy;
555  this.‪groupBox1.Controls.Add(this.‪groupBox15);
556  this.‪groupBox1.Controls.Add(this.‪pictureBox1);
557  this.‪groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
558  this.‪groupBox1.ForeColor = System.Drawing.SystemColors.Control;
559  this.‪groupBox1.Location = new System.Drawing.Point(286, 86);
560  this.‪groupBox1.Name = "groupBox1";
561  this.‪groupBox1.Size = new System.Drawing.Size(250, 365);
562  this.‪groupBox1.TabIndex = 9;
563  this.‪groupBox1.TabStop = false;
564  //
565  // groupBox15
566  //
567  this.‪groupBox15.Controls.Add(this.‪MotionStatusIcon);
568  this.‪groupBox15.ForeColor = System.Drawing.SystemColors.ButtonFace;
569  this.‪groupBox15.Location = new System.Drawing.Point(15, 228);
570  this.‪groupBox15.Name = "groupBox15";
571  this.‪groupBox15.Size = new System.Drawing.Size(217, 124);
572  this.‪groupBox15.TabIndex = 4;
573  this.‪groupBox15.TabStop = false;
574  this.‪groupBox15.Text = "Sensor Status";
575  //
576  // MotionStatusIcon
577  //
578  this.‪MotionStatusIcon.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
579  this.‪MotionStatusIcon.Image = global::BBTasker.Properties.Resources.trafficlight_yellow;
580  this.‪MotionStatusIcon.Location = new System.Drawing.Point(17, 20);
581  this.‪MotionStatusIcon.Name = "MotionStatusIcon";
582  this.‪MotionStatusIcon.Size = new System.Drawing.Size(173, 84);
583  this.‪MotionStatusIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
584  this.‪MotionStatusIcon.TabIndex = 3;
585  this.‪MotionStatusIcon.TabStop = false;
586  //
587  // pictureBox1
588  //
589  this.‪pictureBox1.Image = global::BBTasker.Properties.Resources.motion_detector_video_recorder_for_android;
590  this.‪pictureBox1.Location = new System.Drawing.Point(32, 80);
591  this.‪pictureBox1.Name = "pictureBox1";
592  this.‪pictureBox1.Size = new System.Drawing.Size(173, 142);
593  this.‪pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
594  this.‪pictureBox1.TabIndex = 0;
595  this.‪pictureBox1.TabStop = false;
596  //
597  // label4
598  //
599  this.‪label4.AutoSize = true;
600  this.‪label4.Location = new System.Drawing.Point(97, 56);
601  this.‪label4.Name = "label4";
602  this.‪label4.Size = new System.Drawing.Size(119, 13);
603  this.‪label4.TabIndex = 14;
604  this.‪label4.Text = "Not Running / Error";
605  //
606  // label8
607  //
608  this.‪label8.AutoSize = true;
609  this.‪label8.Location = new System.Drawing.Point(97, 116);
610  this.‪label8.Name = "label8";
611  this.‪label8.Size = new System.Drawing.Size(110, 13);
612  this.‪label8.TabIndex = 15;
613  this.‪label8.Text = "Standby / Caution";
614  //
615  // label9
616  //
617  this.‪label9.AutoSize = true;
618  this.‪label9.Location = new System.Drawing.Point(97, 172);
619  this.‪label9.Name = "label9";
620  this.‪label9.Size = new System.Drawing.Size(133, 13);
621  this.‪label9.TabIndex = 16;
622  this.‪label9.Text = "Running / Operational";
623  //
624  // groupBox6
625  //
626  this.‪groupBox6.BackColor = System.Drawing.Color.Navy;
627  this.‪groupBox6.Controls.Add(this.‪label9);
628  this.‪groupBox6.Controls.Add(this.‪label8);
629  this.‪groupBox6.Controls.Add(this.‪label4);
630  this.‪groupBox6.Controls.Add(this.‪pictureBox7);
631  this.‪groupBox6.Controls.Add(this.‪pictureBox6);
632  this.‪groupBox6.Controls.Add(this.‪pictureBox4);
633  this.‪groupBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
634  this.‪groupBox6.ForeColor = System.Drawing.SystemColors.ButtonFace;
635  this.‪groupBox6.Location = new System.Drawing.Point(1054, 457);
636  this.‪groupBox6.Name = "groupBox6";
637  this.‪groupBox6.Size = new System.Drawing.Size(250, 261);
638  this.‪groupBox6.TabIndex = 17;
639  this.‪groupBox6.TabStop = false;
640  this.‪groupBox6.Text = "Status Keys";
641  //
642  // pictureBox7
643  //
644  this.‪pictureBox7.Image = global::BBTasker.Properties.Resources.trafficlight_green;
645  this.‪pictureBox7.Location = new System.Drawing.Point(18, 159);
646  this.‪pictureBox7.Name = "pictureBox7";
647  this.‪pictureBox7.Size = new System.Drawing.Size(73, 33);
648  this.‪pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
649  this.‪pictureBox7.TabIndex = 13;
650  this.‪pictureBox7.TabStop = false;
651  //
652  // pictureBox6
653  //
654  this.‪pictureBox6.Image = global::BBTasker.Properties.Resources.trafficlight_yellow;
655  this.‪pictureBox6.Location = new System.Drawing.Point(18, 104);
656  this.‪pictureBox6.Name = "pictureBox6";
657  this.‪pictureBox6.Size = new System.Drawing.Size(73, 33);
658  this.‪pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
659  this.‪pictureBox6.TabIndex = 12;
660  this.‪pictureBox6.TabStop = false;
661  //
662  // pictureBox4
663  //
664  this.‪pictureBox4.Image = global::BBTasker.Properties.Resources.trafficlight_red;
665  this.‪pictureBox4.Location = new System.Drawing.Point(17, 49);
666  this.‪pictureBox4.Name = "pictureBox4";
667  this.‪pictureBox4.Size = new System.Drawing.Size(73, 33);
668  this.‪pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
669  this.‪pictureBox4.TabIndex = 11;
670  this.‪pictureBox4.TabStop = false;
671  //
672  // ResearchSpand
673  //
674  this.‪ResearchSpand.Location = new System.Drawing.Point(36, 167);
675  this.‪ResearchSpand.Name = "ResearchSpand";
676  this.‪ResearchSpand.Size = new System.Drawing.Size(180, 16);
677  this.‪ResearchSpand.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
678  this.‪ResearchSpand.TabIndex = 18;
679  //
680  // groupBox10
681  //
682  this.‪groupBox10.BackColor = System.Drawing.Color.Navy;
683  this.‪groupBox10.Controls.Add(this.‪pictureBox8);
684  this.‪groupBox10.Controls.Add(this.‪ResearchSpand);
685  this.‪groupBox10.Controls.Add(this.‪submitBtn);
686  this.‪groupBox10.Controls.Add(this.‪groupBox11);
687  this.‪groupBox10.Controls.Add(this.‪groupBox12);
688  this.‪groupBox10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
689  this.‪groupBox10.ForeColor = System.Drawing.SystemColors.Control;
690  this.‪groupBox10.Location = new System.Drawing.Point(1054, 86);
691  this.‪groupBox10.Name = "groupBox10";
692  this.‪groupBox10.Size = new System.Drawing.Size(250, 365);
693  this.‪groupBox10.TabIndex = 19;
694  this.‪groupBox10.TabStop = false;
695  //
696  // pictureBox8
697  //
698  this.‪pictureBox8.Image = global::BBTasker.Properties.Resources.schedule_icon;
699  this.‪pictureBox8.Location = new System.Drawing.Point(36, 20);
700  this.‪pictureBox8.Name = "pictureBox8";
701  this.‪pictureBox8.Size = new System.Drawing.Size(180, 141);
702  this.‪pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
703  this.‪pictureBox8.TabIndex = 19;
704  this.‪pictureBox8.TabStop = false;
705  //
706  // submitBtn
707  //
708  this.‪submitBtn.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
709  this.‪submitBtn.Location = new System.Drawing.Point(91, 313);
710  this.‪submitBtn.Name = "submitBtn";
711  this.‪submitBtn.Size = new System.Drawing.Size(75, 23);
712  this.‪submitBtn.TabIndex = 9;
713  this.‪submitBtn.Text = "Set";
714  this.‪submitBtn.UseVisualStyleBackColor = true;
715  this.‪submitBtn.Click += new System.EventHandler(this.‪submitBtn_Click);
716  //
717  // groupBox11
718  //
719  this.‪groupBox11.Controls.Add(this.‪StopDateObj);
720  this.‪groupBox11.ForeColor = System.Drawing.SystemColors.ButtonFace;
721  this.‪groupBox11.Location = new System.Drawing.Point(18, 251);
722  this.‪groupBox11.Name = "groupBox11";
723  this.‪groupBox11.Size = new System.Drawing.Size(226, 56);
724  this.‪groupBox11.TabIndex = 8;
725  this.‪groupBox11.TabStop = false;
726  this.‪groupBox11.Text = "Stop Research";
727  //
728  // StopDateObj
729  //
730  this.‪StopDateObj.Location = new System.Drawing.Point(10, 19);
731  this.‪StopDateObj.Name = "StopDateObj";
732  this.‪StopDateObj.Size = new System.Drawing.Size(200, 21);
733  this.‪StopDateObj.TabIndex = 2;
734  //
735  // groupBox12
736  //
737  this.‪groupBox12.Controls.Add(this.‪StartDateObj);
738  this.‪groupBox12.ForeColor = System.Drawing.SystemColors.ButtonFace;
739  this.‪groupBox12.Location = new System.Drawing.Point(18, 189);
740  this.‪groupBox12.Name = "groupBox12";
741  this.‪groupBox12.Size = new System.Drawing.Size(226, 56);
742  this.‪groupBox12.TabIndex = 7;
743  this.‪groupBox12.TabStop = false;
744  this.‪groupBox12.Text = "Start Research";
745  //
746  // StartDateObj
747  //
748  this.‪StartDateObj.Location = new System.Drawing.Point(10, 19);
749  this.‪StartDateObj.Name = "StartDateObj";
750  this.‪StartDateObj.Size = new System.Drawing.Size(200, 21);
751  this.‪StartDateObj.TabIndex = 2;
752  //
753  // BBbanner
754  //
755  this.‪BBbanner.BackColor = System.Drawing.Color.Navy;
756  this.‪BBbanner.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
757  this.‪BBbanner.Image = global::BBTasker.Properties.Resources.Design__1_1;
758  this.‪BBbanner.Location = new System.Drawing.Point(12, 12);
759  this.‪BBbanner.Name = "BBbanner";
760  this.‪BBbanner.Size = new System.Drawing.Size(1326, 50);
761  this.‪BBbanner.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
762  this.‪BBbanner.TabIndex = 8;
763  this.‪BBbanner.TabStop = false;
764  //
765  // BBtaskScheduler
766  //
767  this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
768  this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
769  this.BackColor = System.Drawing.SystemColors.Highlight;
770  this.ClientSize = new System.Drawing.Size(1350, 731);
771  this.ControlBox = false;
772  this.Controls.Add(this.‪groupBox10);
773  this.Controls.Add(this.‪groupBox6);
774  this.Controls.Add(this.‪groupBox1);
775  this.Controls.Add(this.‪BBbanner);
776  this.Controls.Add(this.‪groupBox7);
777  this.Controls.Add(this.‪groupBox9);
778  this.Controls.Add(this.‪groupBox8);
779  this.Controls.Add(this.‪groupBox5);
780  this.Controls.Add(this.‪groupBox4);
781  this.Controls.Add(this.‪groupBox3);
782  this.Controls.Add(this.‪groupBox2);
783  this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
784  this.HelpButton = true;
785  this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
786  this.MaximizeBox = false;
787  this.MinimizeBox = false;
788  this.Name = "BBtaskScheduler";
789  this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
790  this.Text = "Black Box Task Scheduler";
791  this.Load += new System.EventHandler(this.‪BBtaskScheduler_Load);
792  this.‪groupBox2.ResumeLayout(false);
793  this.‪groupBox2.PerformLayout();
794  this.‪BBTName.ResumeLayout(false);
795  ((System.ComponentModel.ISupportInitialize)(this.‪ThermostatStatusIcon)).EndInit();
796  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox2)).EndInit();
797  this.‪groupBox3.ResumeLayout(false);
798  this.‪groupBox14.ResumeLayout(false);
799  ((System.ComponentModel.ISupportInitialize)(this.‪FitnessStatusIcon)).EndInit();
800  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox3)).EndInit();
801  this.‪groupBox4.ResumeLayout(false);
802  this.‪groupBox4.PerformLayout();
803  ((System.ComponentModel.ISupportInitialize)(this.‪BBfaqIcon)).EndInit();
804  this.‪groupBox5.ResumeLayout(false);
805  this.‪groupBox5.PerformLayout();
806  ((System.ComponentModel.ISupportInitialize)(this.‪SchedulerIcon)).EndInit();
807  ((System.ComponentModel.ISupportInitialize)(this.‪StatusIcon)).EndInit();
808  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox5)).EndInit();
809  this.‪groupBox7.ResumeLayout(false);
810  this.‪groupBox7.PerformLayout();
811  ((System.ComponentModel.ISupportInitialize)(this.‪offBtn)).EndInit();
812  ((System.ComponentModel.ISupportInitialize)(this.‪BBRestart)).EndInit();
813  this.‪groupBox8.ResumeLayout(false);
814  this.‪groupBox8.PerformLayout();
815  ((System.ComponentModel.ISupportInitialize)(this.‪networkDisconnect)).EndInit();
816  ((System.ComponentModel.ISupportInitialize)(this.‪networkSetup)).EndInit();
817  ((System.ComponentModel.ISupportInitialize)(this.‪BBSmartSetup)).EndInit();
818  this.‪groupBox9.ResumeLayout(false);
819  this.‪groupBox9.PerformLayout();
820  ((System.ComponentModel.ISupportInitialize)(this.‪adaptorBtn)).EndInit();
821  ((System.ComponentModel.ISupportInitialize)(this.‪NetSetup)).EndInit();
822  ((System.ComponentModel.ISupportInitialize)(this.‪BBAdvSetup)).EndInit();
823  this.‪groupBox1.ResumeLayout(false);
824  this.‪groupBox15.ResumeLayout(false);
825  ((System.ComponentModel.ISupportInitialize)(this.‪MotionStatusIcon)).EndInit();
826  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox1)).EndInit();
827  this.‪groupBox6.ResumeLayout(false);
828  this.‪groupBox6.PerformLayout();
829  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox7)).EndInit();
830  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox6)).EndInit();
831  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox4)).EndInit();
832  this.‪groupBox10.ResumeLayout(false);
833  ((System.ComponentModel.ISupportInitialize)(this.‪pictureBox8)).EndInit();
834  this.‪groupBox11.ResumeLayout(false);
835  this.‪groupBox12.ResumeLayout(false);
836  ((System.ComponentModel.ISupportInitialize)(this.‪BBbanner)).EndInit();
837  this.ResumeLayout(false);
838 
839  }
‪System.Windows.Forms.GroupBox groupBox9
‪System.Windows.Forms.GroupBox groupBox3
‪System.Windows.Forms.Label label4
‪System.Windows.Forms.PictureBox pictureBox2
‪System.Windows.Forms.PictureBox StatusIcon
‪System.Windows.Forms.DateTimePicker StartDateObj
‪System.Windows.Forms.PictureBox pictureBox4
‪System.Windows.Forms.PictureBox pictureBox1
‪System.Windows.Forms.GroupBox BBTName
‪System.Windows.Forms.PictureBox pictureBox7
‪System.Windows.Forms.ProgressBar ResearchSpand
‪void BBSmartSetup_Click(object sender, EventArgs e)
‪Check network status
‪System.Windows.Forms.Label label2
‪System.Windows.Forms.GroupBox groupBox10
‪System.Windows.Forms.Label label1
‪System.Windows.Forms.GroupBox groupBox7
‪void networkSetup_Click(object sender, EventArgs e)
‪Start network connection
‪System.Windows.Forms.PictureBox networkDisconnect
‪void BBRestart_Click(object sender, EventArgs e)
‪Restart task scheduler
‪void StatusChecker_Tick(object sender, EventArgs e)
‪Intervals which status are checked
‪void BBtaskScheduler_Load(object sender, EventArgs e)
‪System.Windows.Forms.PictureBox adaptorBtn
‪System.Windows.Forms.PictureBox BBbanner
‪System.Windows.Forms.PictureBox pictureBox6
‪System.Windows.Forms.GroupBox groupBox14
‪System.Windows.Forms.PictureBox pictureBox3
‪System.Windows.Forms.PictureBox pictureBox8
‪System.Windows.Forms.Label label14
‪void adaptorBtn_Click(object sender, EventArgs e)
‪Network connection window
‪System.Windows.Forms.Label label12
‪System.Windows.Forms.Label label9
‪System.Windows.Forms.Label label13
‪System.Windows.Forms.PictureBox offBtn
‪System.Windows.Forms.Label label3
‪System.Windows.Forms.GroupBox groupBox11
‪System.Windows.Forms.Label label5
‪System.Windows.Forms.PictureBox SchedulerIcon
‪System.Windows.Forms.Label label10
‪System.Windows.Forms.DateTimePicker StopDateObj
‪System.Windows.Forms.Label label8
‪System.Windows.Forms.Label label6
‪System.Windows.Forms.PictureBox BBSmartSetup
‪void networkDisconnect_Click(object sender, EventArgs e)
‪Stop network connection
‪void submitBtn_Click(object sender, EventArgs e)
‪System.Windows.Forms.PictureBox NetSetup
‪void NetSetup_Click(object sender, EventArgs e)
‪Setup Black Box network
‪System.Windows.Forms.GroupBox groupBox6
‪System.Windows.Forms.PictureBox MotionStatusIcon
‪void BBAdvSetup_Click(object sender, EventArgs e)
‪Open the advance dialog box
‪System.Windows.Forms.Label label11
‪void offBtn_Click(object sender, EventArgs e)
‪power down button
‪System.Windows.Forms.Timer StatusChecker
‪System.Windows.Forms.PictureBox BBRestart
‪System.Windows.Forms.Button submitBtn
‪System.Windows.Forms.GroupBox groupBox5
‪System.Windows.Forms.PictureBox BBfaqIcon
‪System.Windows.Forms.GroupBox groupBox4
‪System.Windows.Forms.PictureBox BBAdvSetup
‪System.Windows.Forms.GroupBox groupBox15
‪System.ComponentModel.IContainer components
‪Required designer variable.
‪System.Windows.Forms.GroupBox groupBox8
‪System.Windows.Forms.PictureBox networkSetup
‪System.Windows.Forms.GroupBox groupBox1
‪System.Windows.Forms.Label BBTModel
‪System.Windows.Forms.GroupBox groupBox12
‪System.Windows.Forms.Label label7
‪System.Windows.Forms.GroupBox groupBox2
‪System.Windows.Forms.PictureBox pictureBox5
‪System.Windows.Forms.PictureBox ThermostatStatusIcon
‪System.Windows.Forms.PictureBox FitnessStatusIcon

Referenced by BBTasker.BBtaskScheduler.BBtaskScheduler().

◆ NetSetup_Click()

void BBTasker.BBtaskScheduler.NetSetup_Click ( object  sender,
EventArgs  e 
)
private

‪Setup Black Box network

Parameters
sender
e

Definition at line 628 of file BBtaskScheduler.cs.

629  {
630  BBAccessPad AccessPad = new BBAccessPad();
631  AccessPad.ShowDialog();
632 
633  if (BBAccessPad.access)
634  {
635  Process proc = null;
636  try
637  {
638  string batDir = string.Format(@"NetSetup\");
639  proc = new Process();
640  proc.StartInfo.WorkingDirectory = batDir;
641  proc.StartInfo.FileName = ‪BBNSetup;
642  proc.StartInfo.CreateNoWindow = false;
643  proc.Start();
644  proc.WaitForExit();
645  MessageBox.Show("Bat file executed !!");
646  }
647  catch (Exception)
648  {
649  MessageBox.Show("Error setting up access point", "Configureation Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
650  }
651  }
652  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ networkDisconnect_Click()

void BBTasker.BBtaskScheduler.networkDisconnect_Click ( object  sender,
EventArgs  e 
)
private

‪Stop network connection

Parameters
sender
e

Definition at line 554 of file BBtaskScheduler.cs.

555  {
556  BBAccessPad AccessPad = new BBAccessPad();
557  AccessPad.ShowDialog();
558 
559  if (BBAccessPad.access)
560  {
561  ProcessStartInfo proc1 = new ProcessStartInfo();
562  string Command;
563  proc1.UseShellExecute = true;
564  Command = @"netsh wlan stop hostednetwork";
565  proc1.WorkingDirectory = @"C:\Windows\System32";
566  proc1.FileName = @"C:\Windows\System32\cmd.exe";
567  proc1.Verb = "runas";
568  proc1.Arguments = "/k " + Command;
569  proc1.WindowStyle = ProcessWindowStyle.Hidden;
570  Process.Start(proc1);
571  }
572  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ networkSetup_Click()

void BBTasker.BBtaskScheduler.networkSetup_Click ( object  sender,
EventArgs  e 
)
private

‪Start network connection

Parameters
sender
e

Definition at line 579 of file BBtaskScheduler.cs.

580  {
581  BBAccessPad AccessPad = new BBAccessPad();
582  AccessPad.ShowDialog();
583 
584  if (BBAccessPad.access)
585  {
586  ProcessStartInfo proc1 = new ProcessStartInfo();
587  string Command;
588  proc1.UseShellExecute = true;
589  Command = @"netsh wlan start hostednetwork";
590  proc1.WorkingDirectory = @"C:\Windows\System32";
591  proc1.FileName = @"C:\Windows\System32\cmd.exe";
592  proc1.Verb = "runas";
593  proc1.Arguments = "/k " + Command;
594  proc1.WindowStyle = ProcessWindowStyle.Hidden;
595  Process.Start(proc1);
596  }
597  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ offBtn_Click()

void BBTasker.BBtaskScheduler.offBtn_Click ( object  sender,
EventArgs  e 
)
private

‪power down button

Parameters
sender
e

Definition at line 526 of file BBtaskScheduler.cs.

527  {
528  BBAccessPad AccessPad = new BBAccessPad();
529  AccessPad.ShowDialog();
530 
531  if (BBAccessPad.access)
532 
533  {
534  try
535  {
536  ‪PIRSensorTask.Kill();
537  ‪ThermostatTask.Kill();
538  ‪FitnessTask.Kill();
539  Thread.Sleep(1000);
540  this.Close();
541  }
542  catch
543  {
544  this.Close();
545  }
546  }
547  }

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ RemoveUnwantedChar()

string BBTasker.BBtaskScheduler.RemoveUnwantedChar ( string  input)

‪Parse model info

Parameters
input
Returns

Definition at line 166 of file BBtaskScheduler.cs.

167  {
168  StringBuilder stringBuilder = new StringBuilder();
169 
170  foreach (object match in Regex.Matches(input, "[0-9nu BRevCTkMGHzVs%\\-.]"))
171  {
172  stringBuilder.Append(match.ToString());
173  }
174 
175  return stringBuilder.ToString();
176  }

Referenced by BBTasker.BBtaskScheduler.BBTSS().

◆ ScheduleChecker()

bool BBTasker.BBtaskScheduler.ScheduleChecker ( )
private

‪Get and check schedule dates

Returns

Definition at line 424 of file BBtaskScheduler.cs.

425  {
426  ‪ResearchSpand.Value = 0;
427  ‪startdate = Convert.ToDateTime(‪StartDateObj.Value.ToString("MM/dd/yyyy"));
428  ‪enddate = Convert.ToDateTime(‪StopDateObj.Value.ToString("MM/dd/yyyy"));
429 
430  if (‪startdate != null && ‪enddate != null)
431  {
432  int value = (int)((‪enddate - ‪startdate).TotalDays);
433  ‪ResearchSpand.Maximum = value;
434  ‪ResearchSpand.Minimum = 0;
435 
436  ‪StatusChecker.Start();
437  ‪ScheduleSet = true;
438  }
439  else
440  {
441  ‪StatusChecker.Start();
442  ‪ScheduleSet = false;
443  }
444 
445  return ‪ScheduleSet;
446  }
‪System.Windows.Forms.DateTimePicker StartDateObj
‪System.Windows.Forms.ProgressBar ResearchSpand
‪System.Windows.Forms.DateTimePicker StopDateObj
‪System.Windows.Forms.Timer StatusChecker

Referenced by BBTasker.BBtaskScheduler.CheckDate(), and BBTasker.BBtaskScheduler.submitBtn_Click().

◆ StartFitnessTracker()

void BBTasker.BBtaskScheduler.StartFitnessTracker ( )
private

‪Fitness tracker file location

Definition at line 240 of file BBtaskScheduler.cs.

241  {
242  try
243  {
244  ‪FitnessTask.StartInfo.FileName = ‪BBFpath;
245  ‪FitnessTask.StartInfo.CreateNoWindow = false;
246  ‪FitnessTask.Start();
247  }
248  catch (Exception ex)
249  {
250  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
251  }
252  }
‪static void SaveErrorData(string error)
‪Log all the error that occurs in the program

Referenced by BBTasker.BBtaskScheduler.BBAdvSetup_Click(), and BBTasker.BBtaskScheduler.CheckDate().

◆ StartPIR()

void BBTasker.BBtaskScheduler.StartPIR ( )
private

‪Presence sensor file location

Definition at line 205 of file BBtaskScheduler.cs.

206  {
207  try
208  {
209  ‪PIRSensorTask.StartInfo.FileName = ‪BBPpath;
210  ‪PIRSensorTask.StartInfo.CreateNoWindow = false;
211  ‪PIRSensorTask.Start();
212  }
213  catch (Exception ex)
214  {
215  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
216  }
217  }
‪static void SaveErrorData(string error)
‪Log all the error that occurs in the program

Referenced by BBTasker.BBtaskScheduler.CheckDate().

◆ StartThermostate()

void BBTasker.BBtaskScheduler.StartThermostate ( )
private

‪thermostat file location

Definition at line 222 of file BBtaskScheduler.cs.

223  {
224  try
225  {
226  ‪ThermostatTask.StartInfo.FileName = ‪BBTpath;
227  ‪ThermostatTask.StartInfo.CreateNoWindow = false;
228  ‪ThermostatTask.Start();
229  }
230  catch (Exception ex)
231  {
232  ‪ThermostatStatusIcon.Image = Properties.Resources.trafficlight_red;
233  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
234  }
235  }
‪static void SaveErrorData(string error)
‪Log all the error that occurs in the program
‪System.Windows.Forms.PictureBox ThermostatStatusIcon

Referenced by BBTasker.BBtaskScheduler.CheckDate().

◆ StatusChecker_Tick()

void BBTasker.BBtaskScheduler.StatusChecker_Tick ( object  sender,
EventArgs  e 
)
private

‪Intervals which status are checked

Parameters
sender
e

Definition at line 297 of file BBtaskScheduler.cs.

298  {
300  }
‪void TSStatusChecker()
‪Check operation status

Referenced by BBTasker.BBtaskScheduler.BBtaskScheduler(), and BBTasker.BBtaskScheduler.InitializeComponent().

◆ submitBtn_Click()

void BBTasker.BBtaskScheduler.submitBtn_Click ( object  sender,
EventArgs  e 
)
private

Parameters
sender
e

Definition at line 510 of file BBtaskScheduler.cs.

511  {
512  BBAccessPad AccessPad = new BBAccessPad();
513  AccessPad.ShowDialog();
514  if (BBAccessPad.access)
515  {
517  ‪CheckDate();
518  }
519  }
‪bool ScheduleChecker()
‪Get and check schedule dates
‪void CheckDate()
‪validate selected dates

Referenced by BBTasker.BBtaskScheduler.InitializeComponent().

◆ TSStatusChecker()

void BBTasker.BBtaskScheduler.TSStatusChecker ( )
private

‪Check operation status

Thermostat

Definition at line 305 of file BBtaskScheduler.cs.

306  {
308  {
310  try
311  {
312  ‪BBTSS();
313  }
314  catch (Exception ex)
315  {
316  ‪StatusIcon.Image = Properties.Resources.trafficlight_red;
317  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
318  }
319  //Fitness tracker
320  try
321  {
322  ‪BBFSS();
323  }
324  catch (Exception ex)
325  {
326  ‪StatusIcon.Image = Properties.Resources.trafficlight_red;
327  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
328  }
329  //Presence sensor
330  try
331  {
332  ‪BBPSS();
333 
334  ‪BBTaskCheck();
335  }
336  catch (Exception ex)
337  {
338  ‪MotionStatusIcon.Image = Properties.Resources.trafficlight_red;
339  ‪StatusIcon.Image = Properties.Resources.trafficlight_red;
340  ‪BBSensorErrorLog.‪SaveErrorData(ex.Message.ToString());
341  }
342 
343  // Update progress bar
344  ‪ResearchSpand.Value = (‪today).Day / ‪startdate.Day;
345  }
346  if (‪ResearchSpand.Value == 100)
347  {
348  ‪BBTaskCheck();
349  ‪StatusChecker.Stop();
350  MessageBox.Show("You have come to the end of the\n research period, thank you for participating.");
351  ‪ScheduleSet = false;
352  ‪PIRSensorTask.Kill();
353  ‪ThermostatTask.Kill();
354  ‪FitnessTask.Kill();
355  }
356 
357  //Reset status
358  ‪BBPSStatus = false;
359 
360  //Resetting thermostat data status
361  ‪BBTSStatus = false;
362 
363  //Resetting Fitness tracker status
364  ‪BBFSStatus = false;
365  }
‪void BBTSS()
‪Black Box thermostat sensor status
‪void BBFSS()
‪Black Box fitness tracker status
‪System.Windows.Forms.PictureBox StatusIcon
‪System.Windows.Forms.ProgressBar ResearchSpand
‪static void SaveErrorData(string error)
‪Log all the error that occurs in the program
‪void BBPSS()
‪Black Box presence sensor status
‪void BBTaskCheck()
‪Checking the operation status
‪System.Windows.Forms.PictureBox MotionStatusIcon
‪System.Windows.Forms.Timer StatusChecker

Referenced by BBTasker.BBtaskScheduler.StatusChecker_Tick().

Field Documentation

◆ adaptorBtn

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.adaptorBtn
private

◆ BBAdvSetup

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.BBAdvSetup
private

◆ BBbanner

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.BBbanner
private

◆ BBfaqIcon

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.BBfaqIcon
private

◆ BBFpath

string BBTasker.BBtaskScheduler.BBFpath = @"MiBand-Heartrate.exe"
private

◆ BBFSStatus

bool BBTasker.BBtaskScheduler.BBFSStatus = false
private

◆ BBNetwork

Process BBTasker.BBtaskScheduler.BBNetwork = new Process()
private

Definition at line 30 of file BBtaskScheduler.cs.

◆ BBNSetup

string BBTasker.BBtaskScheduler.BBNSetup = @"netSetup.bat"
private

Definition at line 31 of file BBtaskScheduler.cs.

Referenced by BBTasker.BBtaskScheduler.NetSetup_Click().

◆ BBPpath

string BBTasker.BBtaskScheduler.BBPpath = @"BBPresenseSensor.exe"
private

◆ BBPSStatus

bool BBTasker.BBtaskScheduler.BBPSStatus = false
private

◆ BBRestart

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.BBRestart
private

◆ BBSmartSetup

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.BBSmartSetup
private

◆ BBSO

BBSensorObjects BBTasker.BBtaskScheduler.BBSO = new BBSensorObjects()
private

Definition at line 35 of file BBtaskScheduler.cs.

Referenced by BBTasker.BBtaskScheduler.BBPSS().

◆ BBTModel

System.Windows.Forms.Label BBTasker.BBtaskScheduler.BBTModel
private

◆ BBTName

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.BBTName
private

◆ BBTpath

string BBTasker.BBtaskScheduler.BBTpath = @"BBThermostatSensor.exe"
private

◆ BBTSGetModel

bool BBTasker.BBtaskScheduler.BBTSGetModel = false
private

Definition at line 49 of file BBtaskScheduler.cs.

Referenced by BBTasker.BBtaskScheduler.BBTSS().

◆ BBTSname

string BBTasker.BBtaskScheduler.BBTSname = ""
private

Definition at line 48 of file BBtaskScheduler.cs.

Referenced by BBTasker.BBtaskScheduler.BBTSS().

◆ BBTSStatus

bool BBTasker.BBtaskScheduler.BBTSStatus = false
private

◆ components

System.ComponentModel.IContainer BBTasker.BBtaskScheduler.components = null
private

‪Required designer variable.

Definition at line 8 of file BBtaskScheduler.Designer.cs.

Referenced by BBTasker.BBtaskScheduler.Dispose(), and BBTasker.BBtaskScheduler.InitializeComponent().

◆ enddate

DateTime BBTasker.BBtaskScheduler.enddate
private

◆ fileName

string BBTasker.BBtaskScheduler.fileName = ""
private

◆ FitnessStatusIcon

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.FitnessStatusIcon
private

◆ FitnessTask

Process BBTasker.BBtaskScheduler.FitnessTask = new Process()
private

◆ groupBox1

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox1
private

◆ groupBox10

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox10
private

◆ groupBox11

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox11
private

◆ groupBox12

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox12
private

◆ groupBox14

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox14
private

◆ groupBox15

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox15
private

◆ groupBox2

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox2
private

◆ groupBox3

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox3
private

◆ groupBox4

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox4
private

◆ groupBox5

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox5
private

◆ groupBox6

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox6
private

◆ groupBox7

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox7
private

◆ groupBox8

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox8
private

◆ groupBox9

System.Windows.Forms.GroupBox BBTasker.BBtaskScheduler.groupBox9
private

◆ label1

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label1
private

◆ label10

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label10
private

◆ label11

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label11
private

◆ label12

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label12
private

◆ label13

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label13
private

◆ label14

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label14
private

◆ label2

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label2
private

◆ label3

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label3
private

◆ label4

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label4
private

◆ label5

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label5
private

◆ label6

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label6
private

◆ label7

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label7
private

◆ label8

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label8
private

◆ label9

System.Windows.Forms.Label BBTasker.BBtaskScheduler.label9
private

◆ MotionStatusIcon

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.MotionStatusIcon
private

◆ NetSetup

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.NetSetup
private

◆ networkDisconnect

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.networkDisconnect
private

◆ networkSetup

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.networkSetup
private

◆ offBtn

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.offBtn
private

◆ pictureBox1

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox1
private

◆ pictureBox2

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox2
private

◆ pictureBox3

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox3
private

◆ pictureBox4

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox4
private

◆ pictureBox5

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox5
private

◆ pictureBox6

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox6
private

◆ pictureBox7

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox7
private

◆ pictureBox8

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.pictureBox8
private

◆ PIRSensorTask

Process BBTasker.BBtaskScheduler.PIRSensorTask = new Process()
private

◆ ResearchSpand

System.Windows.Forms.ProgressBar BBTasker.BBtaskScheduler.ResearchSpand
private

◆ SchedulerIcon

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.SchedulerIcon
private

◆ ScheduleSet

bool BBTasker.BBtaskScheduler.ScheduleSet = false
private

◆ StartDate

string BBTasker.BBtaskScheduler.StartDate = ""
static

Definition at line 37 of file BBtaskScheduler.cs.

Referenced by BBTasker.BBtaskScheduler.CheckDate().

◆ startdate

DateTime BBTasker.BBtaskScheduler.startdate
private

◆ StartDateObj

System.Windows.Forms.DateTimePicker BBTasker.BBtaskScheduler.StartDateObj
private

◆ StatusChecker

System.Windows.Forms.Timer BBTasker.BBtaskScheduler.StatusChecker
private

◆ StatusIcon

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.StatusIcon
private

◆ StopDate

string BBTasker.BBtaskScheduler.StopDate = ""
static

Definition at line 38 of file BBtaskScheduler.cs.

Referenced by BBTasker.BBtaskScheduler.CheckDate().

◆ StopDateObj

System.Windows.Forms.DateTimePicker BBTasker.BBtaskScheduler.StopDateObj
private

◆ submitBtn

System.Windows.Forms.Button BBTasker.BBtaskScheduler.submitBtn
private

◆ ThermostatStatusIcon

System.Windows.Forms.PictureBox BBTasker.BBtaskScheduler.ThermostatStatusIcon
private

◆ ThermostatTask

Process BBTasker.BBtaskScheduler.ThermostatTask = new Process()
private

◆ today

DateTime BBTasker.BBtaskScheduler.today = DateTime.Today
private

The documentation for this class was generated from the following files: