Black Box
BBSensorPlugins.cs
1 using System;
2 using System.Windows.Forms;
3 
4 namespace BBTasker
5 {
6  public partial class BBSensorPlugins : Form
7  {
8  public BBSensorPlugins()
9  {
10  InitializeComponent();
11  }
12 
18  private void submitBtn_Click(object sender, EventArgs e)
19  {
20  this.Close();
21  }
22 
28  private void cancelBtn_Click(object sender, EventArgs e)
29  {
30  this.Close();
31  }
32 
38  private void PresenseBrowseBtn_Click(object sender, EventArgs e)
39  {
40  OpenFileDialog BBSP = new OpenFileDialog();
41 
42  if (BBSP.ShowDialog() == DialogResult.OK)
43  {
44  PrsesenseSensorFileBox.Text = BBSP.FileName;
45  }
46  }
47 
53  private void thermostatPluginBrowse_Click(object sender, EventArgs e)
54  {
55  OpenFileDialog BBTP = new OpenFileDialog();
56 
57  if (BBTP.ShowDialog() == DialogResult.OK)
58  {
59  ThermostatPluginFileBox.Text = BBTP.FileName;
60  }
61  }
62 
68  private void FitnessTrackerBrowse_Click(object sender, EventArgs e)
69  {
70  OpenFileDialog BBTP = new OpenFileDialog();
71 
72  if (BBTP.ShowDialog() == DialogResult.OK)
73  {
74  FitnessTrackerPluginFileBox.Text = BBTP.FileName;
75  }
76  }
77  }
78 }