private void RetractButton_Click(object sender, RoutedEventArgs e) { netController.updateMachineStatus(); if ((status.getCurrentState() == MachineStatus.States.DRAWN) && !status.getIsMoving()) { netController.retract(); netController.updateMachineStatus(); } updateStatusText(); }