public MainWindow(ArduinoSetupWindow arduino) { InitializeComponent(); ArduinoSetupWindow = arduino; SheetDataReady = false; Module = ""; Time = ""; Day = ""; Week = ""; scannedcounter = 0; LBL_Status.Content = "Not Ready"; lblstudendscanned.Content = scannedcounter.ToString(); }
public Arduino(LoginWindow login, MainWindow main, ArduinoSetupWindow setup) { ConnectDatabase(); //initalising variables LoginPhase = false; Students = new List <Student>(); loginWindow = login; mainWindow = main; arduinoSetup = setup; LecturerUID = ""; if (mainWindow == null) { LoginPhase = true; } }
private void BTN_StartArduino_Click(object sender, RoutedEventArgs e) { arduinoSetupWindow = new ArduinoSetupWindow(this); arduinoSetupWindow.Show(); }