bool getChangeFront(sourceQuadrants aQuadrants) // Front to back or vice versa { return( !string.IsNullOrEmpty(aQuadrants.FRONT_LEFT) && (aQuadrants.FRONT_LEFT == "BACK_LEFT" || aQuadrants.FRONT_LEFT == "BACK_RIGHT") || !string.IsNullOrEmpty(aQuadrants.FRONT_RIGHT) && (aQuadrants.FRONT_RIGHT == "BACK_LEFT" || aQuadrants.FRONT_RIGHT == "BACK_RIGHT") || !string.IsNullOrEmpty(aQuadrants.BACK_LEFT) && (aQuadrants.BACK_LEFT == "FRONT_LEFT" || aQuadrants.BACK_LEFT == "FRONT_RIGHT") || !string.IsNullOrEmpty(aQuadrants.BACK_RIGHT) && (aQuadrants.BACK_RIGHT == "FRONT_LEFT" || aQuadrants.BACK_RIGHT == "FRONT_RIGHT") ); }
public moveQuadrants(sourceQuadrants aQuadrants, bool aEndCheck = false) { if (aEndCheck) { if (string.IsNullOrEmpty(aQuadrants.FRONT_LEFT) && !isFront(aQuadrants.FRONT_LEFT)) { back = true; } if (string.IsNullOrEmpty(aQuadrants.FRONT_RIGHT) && !isFront(aQuadrants.FRONT_RIGHT)) { back = true; } if (string.IsNullOrEmpty(aQuadrants.BACK_LEFT) && isFront(aQuadrants.BACK_LEFT)) { front = true; } if (string.IsNullOrEmpty(aQuadrants.BACK_RIGHT) && isFront(aQuadrants.BACK_RIGHT)) { front = true; } if (string.IsNullOrEmpty(aQuadrants.FRONT_LEFT) && !isLeft(aQuadrants.FRONT_LEFT)) { right = true; } if (string.IsNullOrEmpty(aQuadrants.BACK_LEFT) && !isLeft(aQuadrants.BACK_LEFT)) { right = true; } if (string.IsNullOrEmpty(aQuadrants.FRONT_RIGHT) && isLeft(aQuadrants.FRONT_RIGHT)) { left = true; } if (string.IsNullOrEmpty(aQuadrants.BACK_RIGHT) && isLeft(aQuadrants.BACK_RIGHT)) { left = true; } } else { if (!string.IsNullOrEmpty(aQuadrants.FRONT_LEFT) || !string.IsNullOrEmpty(aQuadrants.FRONT_RIGHT)) { front = true; } if (!string.IsNullOrEmpty(aQuadrants.BACK_LEFT) || !string.IsNullOrEmpty(aQuadrants.BACK_RIGHT)) { back = true; } if (!string.IsNullOrEmpty(aQuadrants.FRONT_LEFT) || !string.IsNullOrEmpty(aQuadrants.BACK_LEFT)) { left = true; } if (!string.IsNullOrEmpty(aQuadrants.FRONT_RIGHT) || !string.IsNullOrEmpty(aQuadrants.BACK_RIGHT)) { right = true; } } }