public Logic(MainPage mainPage, MySqlConnector sql, Machine machine, Order order, Process process, ObservableCollection<Event> events) { Debug.WriteLine("Logic"); this.mainPage = mainPage; this.sql = sql; this.machine = machine; this.order = order; this.process = process; this.events = events; // DispatcherTimer setup splitTimer = new Timer(splitTimer_Tick, null, Timeout.Infinite, Timeout.Infinite); }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { Debug.WriteLine("MainPage.MainPage_Loaded"); // Test if application has been configured testAppConfiguration(); // Configure and open USB/Arduino connection io = new IOConnector(this, machine); // Configure and open MySQL connection sql = new MySqlConnector(this, machine, ref order, ref process, events); logic = new Logic(this, sql, machine, order, process, events); processStopContentDialog = new ProcessStopContentDialog(this, logic); loadOrderContentDialog = new LoadOrderContentDialog(this); noDBConnectionContentDialog = new NoDBConnectionContentDialog(this); noIOConnectionContentDialog = new NoIOConnectionContentDialog(this); updateGUI(); // Uncomment if Debug is needed from startup //logic.parseCommand("DEBUG"); }