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

Public Member Functions

 BBTaskerAdvSetting ()
 

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 cancelBtn_Click (object sender, EventArgs e)
 
void SetDate ()
 ‪Set scheduler dates More...
 
void CheckDate ()
 ‪validate selected dates More...
 
void submitBtn_Click (object sender, EventArgs e)
 
void InitializeComponent ()
 ‪Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

System.ComponentModel.IContainer components = null
 ‪Required designer variable. More...
 
System.Windows.Forms.GroupBox groupBox2
 
System.Windows.Forms.ComboBox comboBox2
 
System.Windows.Forms.ComboBox comboBox4
 
System.Windows.Forms.Label label2
 
System.Windows.Forms.Label label3
 
System.Windows.Forms.ComboBox comboBox3
 
System.Windows.Forms.Label label1
 
System.Windows.Forms.DateTimePicker StartDateObj
 
System.Windows.Forms.GroupBox groupBox3
 
System.Windows.Forms.GroupBox groupBox4
 
System.Windows.Forms.DateTimePicker StopDateObj
 
System.Windows.Forms.Button submitBtn
 
System.Windows.Forms.Button cancelBtn
 

Detailed Description

Definition at line 6 of file BBTaskerAdvSetting.cs.

Constructor & Destructor Documentation

◆ BBTaskerAdvSetting()

BBTasker.BBTaskerAdvSetting.BBTaskerAdvSetting ( )

Definition at line 11 of file BBTaskerAdvSetting.cs.

12  {
14  }
‪void InitializeComponent()
‪Required method for Designer support - do not modify the contents of this method with the code editor...

Member Function Documentation

◆ cancelBtn_Click()

void BBTasker.BBTaskerAdvSetting.cancelBtn_Click ( object  sender,
EventArgs  e 
)
private

Definition at line 16 of file BBTaskerAdvSetting.cs.

17  {
18  this.Close();
19  }

Referenced by BBTasker.BBTaskerAdvSetting.InitializeComponent().

◆ CheckDate()

void BBTasker.BBTaskerAdvSetting.CheckDate ( )
private

‪validate selected dates

Definition at line 33 of file BBTaskerAdvSetting.cs.

34  {
35  DateTime startdate = Convert.ToDateTime(‪StartDate);
36  DateTime enddate = Convert.ToDateTime(‪StopDate);
37  DateTime today = DateTime.Today;
38  if ((startdate <= today) && (today <= enddate))
39  {
40 
41  }
42  else
43  {
44  ‪StopDate = "";
45  ‪StartDate = "";
46  MessageBox.Show("Schedule date invalid");
47  }
48  }

Referenced by BBTasker.BBTaskerAdvSetting.submitBtn_Click().

◆ Dispose()

override void BBTasker.BBTaskerAdvSetting.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 BBTaskerAdvSetting.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.BBTaskerAdvSetting.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 BBTaskerAdvSetting.Designer.cs.

30  {
31  this.‪groupBox2 = new System.Windows.Forms.GroupBox();
32  this.‪comboBox4 = new System.Windows.Forms.ComboBox();
33  this.‪label2 = new System.Windows.Forms.Label();
34  this.‪label3 = new System.Windows.Forms.Label();
35  this.‪comboBox3 = new System.Windows.Forms.ComboBox();
36  this.‪label1 = new System.Windows.Forms.Label();
37  this.‪comboBox2 = new System.Windows.Forms.ComboBox();
38  this.‪StartDateObj = new System.Windows.Forms.DateTimePicker();
39  this.‪groupBox3 = new System.Windows.Forms.GroupBox();
40  this.‪groupBox4 = new System.Windows.Forms.GroupBox();
41  this.‪StopDateObj = new System.Windows.Forms.DateTimePicker();
42  this.‪submitBtn = new System.Windows.Forms.Button();
43  this.‪cancelBtn = new System.Windows.Forms.Button();
44  this.‪groupBox2.SuspendLayout();
45  this.‪groupBox3.SuspendLayout();
46  this.‪groupBox4.SuspendLayout();
47  this.SuspendLayout();
48  //
49  // groupBox2
50  //
51  this.‪groupBox2.Controls.Add(this.‪comboBox4);
52  this.‪groupBox2.Controls.Add(this.‪label2);
53  this.‪groupBox2.Controls.Add(this.‪label3);
54  this.‪groupBox2.Controls.Add(this.‪comboBox3);
55  this.‪groupBox2.Controls.Add(this.‪label1);
56  this.‪groupBox2.Controls.Add(this.‪comboBox2);
57  this.‪groupBox2.Location = new System.Drawing.Point(12, 12);
58  this.‪groupBox2.Name = "groupBox2";
59  this.‪groupBox2.Size = new System.Drawing.Size(259, 54);
60  this.‪groupBox2.TabIndex = 1;
61  this.‪groupBox2.TabStop = false;
62  this.‪groupBox2.Text = "Fitness Data Collection Interval";
63  //
64  // comboBox4
65  //
66  this.‪comboBox4.FormattingEnabled = true;
67  this.‪comboBox4.Items.AddRange(new object[] {
68  "1",
69  "2",
70  "3",
71  "4",
72  "5",
73  "6",
74  "7",
75  "8",
76  "9",
77  "10",
78  "11",
79  "12",
80  "13",
81  "14",
82  "15",
83  "16",
84  "17",
85  "18",
86  "19",
87  "20",
88  "21",
89  "22",
90  "23",
91  "24",
92  "25",
93  "26",
94  "27",
95  "28",
96  "29",
97  "30",
98  "31",
99  "32",
100  "33",
101  "34",
102  "35",
103  "36",
104  "37",
105  "38",
106  "39",
107  "40",
108  "41",
109  "42",
110  "43",
111  "44",
112  "45",
113  "46",
114  "47",
115  "48",
116  "49",
117  "50",
118  "51",
119  "52",
120  "53",
121  "54",
122  "55",
123  "56",
124  "57",
125  "58",
126  "59",
127  "60"});
128  this.‪comboBox4.Location = new System.Drawing.Point(208, 19);
129  this.‪comboBox4.Name = "comboBox4";
130  this.‪comboBox4.Size = new System.Drawing.Size(45, 21);
131  this.‪comboBox4.TabIndex = 3;
132  //
133  // label2
134  //
135  this.‪label2.AutoSize = true;
136  this.‪label2.Location = new System.Drawing.Point(171, 22);
137  this.‪label2.Name = "label2";
138  this.‪label2.Size = new System.Drawing.Size(31, 13);
139  this.‪label2.TabIndex = 3;
140  this.‪label2.Text = "SEC:";
141  //
142  // label3
143  //
144  this.‪label3.AutoSize = true;
145  this.‪label3.Location = new System.Drawing.Point(85, 22);
146  this.‪label3.Name = "label3";
147  this.‪label3.Size = new System.Drawing.Size(30, 13);
148  this.‪label3.TabIndex = 4;
149  this.‪label3.Text = "MIN:";
150  //
151  // comboBox3
152  //
153  this.‪comboBox3.FormattingEnabled = true;
154  this.‪comboBox3.Items.AddRange(new object[] {
155  "1",
156  "2",
157  "3",
158  "4",
159  "5",
160  "6",
161  "7",
162  "8",
163  "9",
164  "10",
165  "11",
166  "12",
167  "13",
168  "14",
169  "15",
170  "16",
171  "17",
172  "18",
173  "19",
174  "20",
175  "21",
176  "22",
177  "23",
178  "24",
179  "25",
180  "26",
181  "27",
182  "28",
183  "29",
184  "30",
185  "31",
186  "32",
187  "33",
188  "34",
189  "35",
190  "36",
191  "37",
192  "38",
193  "39",
194  "40",
195  "41",
196  "42",
197  "43",
198  "44",
199  "45",
200  "46",
201  "47",
202  "48",
203  "49",
204  "50",
205  "51",
206  "52",
207  "53",
208  "54",
209  "55",
210  "56",
211  "57",
212  "58",
213  "59",
214  "60"});
215  this.‪comboBox3.Location = new System.Drawing.Point(121, 19);
216  this.‪comboBox3.Name = "comboBox3";
217  this.‪comboBox3.Size = new System.Drawing.Size(44, 21);
218  this.‪comboBox3.TabIndex = 2;
219  //
220  // label1
221  //
222  this.‪label1.AutoSize = true;
223  this.‪label1.Location = new System.Drawing.Point(6, 22);
224  this.‪label1.Name = "label1";
225  this.‪label1.Size = new System.Drawing.Size(26, 13);
226  this.‪label1.TabIndex = 2;
227  this.‪label1.Text = "HR:";
228  //
229  // comboBox2
230  //
231  this.‪comboBox2.FormattingEnabled = true;
232  this.‪comboBox2.Items.AddRange(new object[] {
233  "0",
234  "1",
235  "2",
236  "3",
237  "4",
238  "5",
239  "6",
240  "7",
241  "8",
242  "9",
243  "10",
244  "11",
245  "12",
246  "13",
247  "14",
248  "15",
249  "16",
250  "17",
251  "18",
252  "19",
253  "20",
254  "21",
255  "22",
256  "23"});
257  this.‪comboBox2.Location = new System.Drawing.Point(38, 19);
258  this.‪comboBox2.Name = "comboBox2";
259  this.‪comboBox2.Size = new System.Drawing.Size(41, 21);
260  this.‪comboBox2.TabIndex = 1;
261  //
262  // StartDateObj
263  //
264  this.‪StartDateObj.Location = new System.Drawing.Point(10, 19);
265  this.‪StartDateObj.Name = "StartDateObj";
266  this.‪StartDateObj.Size = new System.Drawing.Size(200, 20);
267  this.‪StartDateObj.TabIndex = 2;
268  //
269  // groupBox3
270  //
271  this.‪groupBox3.Controls.Add(this.‪StartDateObj);
272  this.‪groupBox3.Location = new System.Drawing.Point(30, 72);
273  this.‪groupBox3.Name = "groupBox3";
274  this.‪groupBox3.Size = new System.Drawing.Size(226, 56);
275  this.‪groupBox3.TabIndex = 3;
276  this.‪groupBox3.TabStop = false;
277  this.‪groupBox3.Text = "Start Research";
278  //
279  // groupBox4
280  //
281  this.‪groupBox4.Controls.Add(this.‪StopDateObj);
282  this.‪groupBox4.Location = new System.Drawing.Point(30, 134);
283  this.‪groupBox4.Name = "groupBox4";
284  this.‪groupBox4.Size = new System.Drawing.Size(226, 56);
285  this.‪groupBox4.TabIndex = 4;
286  this.‪groupBox4.TabStop = false;
287  this.‪groupBox4.Text = "Stop Research";
288  //
289  // StopDateObj
290  //
291  this.‪StopDateObj.Location = new System.Drawing.Point(10, 19);
292  this.‪StopDateObj.Name = "StopDateObj";
293  this.‪StopDateObj.Size = new System.Drawing.Size(200, 20);
294  this.‪StopDateObj.TabIndex = 2;
295  //
296  // submitBtn
297  //
298  this.‪submitBtn.Location = new System.Drawing.Point(39, 196);
299  this.‪submitBtn.Name = "submitBtn";
300  this.‪submitBtn.Size = new System.Drawing.Size(75, 23);
301  this.‪submitBtn.TabIndex = 5;
302  this.‪submitBtn.Text = "Submit";
303  this.‪submitBtn.UseVisualStyleBackColor = true;
304  this.‪submitBtn.Click += new System.EventHandler(this.‪submitBtn_Click);
305  //
306  // cancelBtn
307  //
308  this.‪cancelBtn.Location = new System.Drawing.Point(165, 196);
309  this.‪cancelBtn.Name = "cancelBtn";
310  this.‪cancelBtn.Size = new System.Drawing.Size(75, 23);
311  this.‪cancelBtn.TabIndex = 6;
312  this.‪cancelBtn.Text = "Cancel";
313  this.‪cancelBtn.UseVisualStyleBackColor = true;
314  this.‪cancelBtn.Click += new System.EventHandler(this.‪cancelBtn_Click);
315  //
316  // BBTaskerAdvSetting
317  //
318  this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
319  this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
320  this.BackColor = System.Drawing.SystemColors.ActiveCaption;
321  this.ClientSize = new System.Drawing.Size(284, 258);
322  this.ControlBox = false;
323  this.Controls.Add(this.‪cancelBtn);
324  this.Controls.Add(this.‪submitBtn);
325  this.Controls.Add(this.‪groupBox4);
326  this.Controls.Add(this.‪groupBox3);
327  this.Controls.Add(this.‪groupBox2);
328  this.DoubleBuffered = true;
329  this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
330  this.Name = "BBTaskerAdvSetting";
331  this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
332  this.Text = "BBTasker Advanced Setting";
333  this.‪groupBox2.ResumeLayout(false);
334  this.‪groupBox2.PerformLayout();
335  this.‪groupBox3.ResumeLayout(false);
336  this.‪groupBox4.ResumeLayout(false);
337  this.ResumeLayout(false);
338 
339  }
‪System.Windows.Forms.GroupBox groupBox4
‪System.Windows.Forms.DateTimePicker StopDateObj
‪System.Windows.Forms.GroupBox groupBox3
‪System.Windows.Forms.Button cancelBtn
‪System.Windows.Forms.GroupBox groupBox2
‪System.Windows.Forms.Label label3
‪System.Windows.Forms.DateTimePicker StartDateObj
‪System.Windows.Forms.Button submitBtn
‪System.Windows.Forms.ComboBox comboBox4
‪System.Windows.Forms.Label label1
‪System.Windows.Forms.ComboBox comboBox3
‪System.Windows.Forms.ComboBox comboBox2
‪void submitBtn_Click(object sender, EventArgs e)
‪System.Windows.Forms.Label label2
‪void cancelBtn_Click(object sender, EventArgs e)

Referenced by BBTasker.BBTaskerAdvSetting.BBTaskerAdvSetting().

◆ SetDate()

void BBTasker.BBTaskerAdvSetting.SetDate ( )
private

‪Set scheduler dates

Definition at line 24 of file BBTaskerAdvSetting.cs.

25  {
26  ‪StartDate = ‪StartDateObj.Value.ToString(" MM/dd/yyyy");
27  ‪StopDate = ‪StopDateObj.Value.ToString("MM/dd/yyyy");
28  }
‪System.Windows.Forms.DateTimePicker StopDateObj
‪System.Windows.Forms.DateTimePicker StartDateObj

Referenced by BBTasker.BBTaskerAdvSetting.submitBtn_Click().

◆ submitBtn_Click()

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

Parameters
sender
e

Definition at line 54 of file BBTaskerAdvSetting.cs.

55  {
56  ‪SetDate();
57 
58  ‪CheckDate();
59  }
‪void CheckDate()
‪validate selected dates
‪void SetDate()
‪Set scheduler dates

Referenced by BBTasker.BBTaskerAdvSetting.InitializeComponent().

Field Documentation

◆ cancelBtn

System.Windows.Forms.Button BBTasker.BBTaskerAdvSetting.cancelBtn
private

◆ comboBox2

System.Windows.Forms.ComboBox BBTasker.BBTaskerAdvSetting.comboBox2
private

◆ comboBox3

System.Windows.Forms.ComboBox BBTasker.BBTaskerAdvSetting.comboBox3
private

◆ comboBox4

System.Windows.Forms.ComboBox BBTasker.BBTaskerAdvSetting.comboBox4
private

◆ components

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

‪Required designer variable.

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

Referenced by BBTasker.BBTaskerAdvSetting.Dispose().

◆ groupBox2

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

◆ groupBox3

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

◆ groupBox4

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

◆ label1

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

◆ label2

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

◆ label3

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

◆ StartDate

string BBTasker.BBTaskerAdvSetting.StartDate = ""
static

◆ StartDateObj

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

◆ StopDate

string BBTasker.BBTaskerAdvSetting.StopDate = ""
static

◆ StopDateObj

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

◆ submitBtn

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

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