public void Facing() { CountOfDesignActions++; switch (CountOfDesignActions) { case 1: DesignInfo += "\n1. Print '" + ToString(Model) + "' on the left side"; VolkswagenNotify?.Invoke("'" + ToString(Model) + "' has been printed on the left side of " + TransportInfo); break; case 2: DesignInfo += "\n2. Print '" + ToString(Model) + "' on the right side"; VolkswagenNotify?.Invoke("'" + ToString(Model) + "' has been printed on the right side of " + TransportInfo); break; case 3: DesignInfo += "\n3. Print 'Volkswagen' on the wheels"; VolkswagenNotify?.Invoke("'Volkswagen' has been printed on the wheels of " + TransportInfo); break; default: VolkswagenNotify?.Invoke("There is no more print for " + TransportInfo); CountOfDesignActions--; break; } }
public override void SetRegistrationNumber(string RegistrationNumber) { this.RegistrationNumber = RegistrationNumber; VolkswagenNotify?.Invoke(TransportInfo + " get the registration number [" + RegistrationNumber + "]"); TransportInfo = "Volkswagen " + ToString(Model) + " " + ModelInfo + "[" + RegistrationNumber + "]"; }