private void DrawButton_Click(object sender, RoutedEventArgs e) { netController.updateMachineStatus(); if (status.getCurrentState() == MachineStatus.States.ARMED && status.getFOptic() && !status.getROptic()) { netController.draw(); } }