public IWindow GetWindow(OSTypeEnum osType) { switch (osType) { case OSTypeEnum.OS1: return(new OS1Window()); case OSTypeEnum.OS2: return(new OS2Window()); case OSTypeEnum.OS3: return(new OS3Window()); default: return(null); } }
public override IDesktopComputerBuilder WithOperatingSystem(OSTypeEnum type, string version) { desktopComputer.OperatingSystemType = type; desktopComputer.OperatingSystemVersion = version; return(this); }
public abstract IDesktopComputerBuilder WithOperatingSystem(OSTypeEnum type, string version);