├── PhotoFilter ├── PhotoFilterLib.Win10 │ ├── pch.cpp │ ├── pch.h │ ├── ImageFilter.h │ └── PhotoFilterLib.Win10.vcxproj.filters ├── PhotoFilter.Win10 │ ├── Assets │ │ ├── StoreLogo.png │ │ ├── SplashScreen.scale-200.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Wide310x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ └── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── App.xaml │ ├── project.json │ └── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml └── PhotoFilter │ ├── PhotoFilter.Windows │ ├── Assets │ │ ├── Logo.scale-100.png │ │ ├── SmallLogo.scale-100.png │ │ ├── StoreLogo.scale-100.png │ │ └── SplashScreen.scale-100.png │ ├── packages.config │ ├── Instrumentation.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Package.appxmanifest │ └── PhotoFilter.Shared │ ├── App.xaml │ ├── PhotoFilter.Shared.shproj │ └── PhotoFilter.Shared.projitems ├── MyShuttle ├── .nuget │ ├── NuGet.exe │ └── NuGet.Config ├── Demo Steps.docx ├── MyShuttle.Client.Web │ ├── Views │ │ ├── _ViewStart.cshtml │ │ ├── Home │ │ │ └── About.cshtml │ │ ├── Account │ │ │ ├── ExternalLoginFailure.cshtml │ │ │ ├── ForgotPasswordConfirmation.cshtml │ │ │ ├── ConfirmEmail.cshtml │ │ │ ├── ResetPasswordConfirmation.cshtml │ │ │ ├── SendCode.cshtml │ │ │ ├── ForgotPassword.cshtml │ │ │ └── _ExternalLoginsListPartial.cshtml │ │ ├── Shared │ │ │ ├── Error.cshtml │ │ │ ├── Lockout.cshtml │ │ │ └── _LoginPartial.cshtml │ │ └── Manage │ │ │ ├── AddPhoneNumber.cshtml │ │ │ └── VerifyPhoneNumber.cshtml │ ├── favicon.ico │ ├── Global.asax │ ├── Content │ │ ├── Unknown.jpg │ │ ├── BuickRegal.jpg │ │ ├── CadilacELR.jpg │ │ ├── Dan Taylor.jpg │ │ ├── DodgeDart.jpg │ │ ├── Ibon Campa.jpg │ │ ├── PontiacG5.jpg │ │ ├── PontiacG6.jpg │ │ ├── PontiacG8.jpg │ │ ├── Alan Anderson.jpg │ │ ├── Andrew Hall.jpg │ │ ├── Andy Sterland.jpg │ │ ├── BuickRiviera.jpg │ │ ├── CadillacBLS.jpg │ │ ├── Chrysler300C.jpg │ │ ├── Daniel Moth.jpg │ │ ├── David Carmona.jpg │ │ ├── Deborah Chen.jpg │ │ ├── Dmitry Lyalin.jpg │ │ ├── DodgeCaliber.jpg │ │ ├── John Kemnetz.jpg │ │ ├── Newton Jain.jpg │ │ ├── Ray J. Poland.jpg │ │ ├── Rose Anderson.jpg │ │ ├── S. Somasegar.jpg │ │ ├── SaturnAura XR.jpg │ │ ├── Wendy Torre.jpg │ │ ├── Aaron McDonall.jpg │ │ ├── Austin Lumbert.jpg │ │ ├── ChevroletAveoLT.jpg │ │ ├── ChevroletVolt2.jpg │ │ ├── FordTaurusault.jpg │ │ ├── James Rodriguez.jpg │ │ ├── Kaycee Anderson.jpg │ │ ├── Nikhil Joglekar.jpg │ │ ├── Scott Hanselman.jpg │ │ ├── Carlos Rodriguez.jpg │ │ ├── ChryslerPacifica.jpg │ │ ├── Kenneth Auchenberg.jpg │ │ ├── Angelos Petropolous.jpg │ │ ├── ChevroletCaprice PPV.jpg │ │ ├── ChevroletImpala LTZ.jpg │ │ ├── LincolnTown Cartier.jpg │ │ └── Site.css │ ├── Scripts │ │ └── _references.js │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ ├── App_Start │ │ ├── FilterConfig.cs │ │ ├── RouteConfig.cs │ │ ├── WebApiConfig.cs │ │ └── BundleConfig.cs │ ├── Startup.cs │ ├── Controllers │ │ └── VehiclesController.cs │ ├── Global.asax.cs │ ├── Utilities │ │ └── DriverCache.cs │ ├── Models │ │ └── IdentityModels.cs │ └── Web.Debug.config ├── src │ ├── MyShuttle.Diagnostics.Service │ │ ├── Views │ │ │ ├── _ViewStart.cshtml │ │ │ └── Shared │ │ │ │ └── Error.cshtml │ │ ├── favicon.ico │ │ ├── Global.asax │ │ ├── Scripts │ │ │ └── _references.js │ │ ├── App_Start │ │ │ ├── Areas │ │ │ │ └── HelpPage │ │ │ │ │ ├── Views │ │ │ │ │ ├── Help │ │ │ │ │ │ ├── DisplayTemplates │ │ │ │ │ │ │ ├── ImageSample.cshtml │ │ │ │ │ │ │ ├── TextSample.cshtml │ │ │ │ │ │ │ ├── SimpleTypeModelDescription.cshtml │ │ │ │ │ │ │ ├── ComplexTypeModelDescription.cshtml │ │ │ │ │ │ │ ├── CollectionModelDescription.cshtml │ │ │ │ │ │ │ ├── InvalidSample.cshtml │ │ │ │ │ │ │ ├── KeyValuePairModelDescription.cshtml │ │ │ │ │ │ │ ├── DictionaryModelDescription.cshtml │ │ │ │ │ │ │ ├── EnumTypeModelDescription.cshtml │ │ │ │ │ │ │ ├── Samples.cshtml │ │ │ │ │ │ │ └── ModelDescriptionLink.cshtml │ │ │ │ │ │ ├── ResourceModel.cshtml │ │ │ │ │ │ ├── Api.cshtml │ │ │ │ │ │ └── Index.cshtml │ │ │ │ │ ├── _ViewStart.cshtml │ │ │ │ │ └── Shared │ │ │ │ │ │ └── _Layout.cshtml │ │ │ │ │ ├── ModelDescriptions │ │ │ │ │ ├── SimpleTypeModelDescription.cs │ │ │ │ │ ├── DictionaryModelDescription.cs │ │ │ │ │ ├── CollectionModelDescription.cs │ │ │ │ │ ├── ParameterAnnotation.cs │ │ │ │ │ ├── EnumValueDescription.cs │ │ │ │ │ ├── KeyValuePairModelDescription.cs │ │ │ │ │ ├── IModelDocumentationProvider.cs │ │ │ │ │ ├── ModelDescription.cs │ │ │ │ │ ├── ComplexTypeModelDescription.cs │ │ │ │ │ ├── EnumTypeModelDescription.cs │ │ │ │ │ ├── ParameterDescription.cs │ │ │ │ │ └── ModelNameAttribute.cs │ │ │ │ │ ├── SampleGeneration │ │ │ │ │ ├── SampleDirection.cs │ │ │ │ │ ├── TextSample.cs │ │ │ │ │ ├── InvalidSample.cs │ │ │ │ │ └── ImageSample.cs │ │ │ │ │ └── HelpPageAreaRegistration.cs │ │ │ ├── FilterConfig.cs │ │ │ ├── RouteConfig.cs │ │ │ └── WebApiConfig.cs │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ ├── Content │ │ │ └── Site.css │ │ ├── Startup.cs │ │ ├── Controllers │ │ │ ├── VehiclesController.cs │ │ │ ├── ValuesController.cs │ │ │ └── DriversController.cs │ │ ├── Global.asax.cs │ │ ├── Results │ │ │ └── ChallengeResult.cs │ │ ├── Models │ │ │ ├── AccountViewModels.cs │ │ │ └── IdentityModels.cs │ │ └── Web.Debug.config │ └── MyShuttle.Client.Desktop │ │ ├── Assets │ │ ├── logo.png │ │ ├── bg_right.png │ │ ├── star_off.png │ │ ├── star_on.png │ │ ├── start_bt.png │ │ ├── camera-car.png │ │ ├── camera_icon.png │ │ ├── icon-logo.png │ │ ├── vehicle_bg.png │ │ ├── close_button.png │ │ ├── icon_selected.png │ │ ├── refresh_icon.png │ │ ├── settings_icon.png │ │ ├── vehicles_icon.png │ │ ├── Pontiac_G5_coupe.jpg │ │ ├── camera_icon_x2.png │ │ ├── maximize_button.png │ │ ├── minimize_button.png │ │ ├── star_on_selected.png │ │ ├── vehicle_black_bg.png │ │ ├── vehicles_icon_x2.png │ │ ├── driver_unknow_icon.png │ │ ├── loading_small_icon.png │ │ ├── fonts │ │ │ ├── OpenSans-Bold.ttf │ │ │ ├── OpenSans-Italic.ttf │ │ │ ├── OpenSans-Light.ttf │ │ │ ├── OpenSans-Regular.ttf │ │ │ ├── OpenSans-Semibold.ttf │ │ │ ├── OpenSans-BoldItalic.ttf │ │ │ ├── OpenSans-ExtraBold.ttf │ │ │ ├── OpenSans-LightItalic.ttf │ │ │ ├── OpenSans-ExtraBoldItalic.ttf │ │ │ └── OpenSans-SemiboldItalic.ttf │ │ └── vehicle_unknow_icon.png │ │ ├── Design │ │ ├── camera.png │ │ ├── main.png │ │ ├── vehicle_cam.png │ │ ├── DesignCameraViewModel.cs │ │ └── DesignDetailsViewModel.cs │ │ ├── Core │ │ ├── Model │ │ │ ├── Enums │ │ │ │ └── RideDetailWorkflow.cs │ │ │ ├── Location.cs │ │ │ ├── LocationCalculatedEventArgs.cs │ │ │ └── GroupRide.cs │ │ ├── ViewModels │ │ │ ├── InterfacesForDependencyInjection │ │ │ │ ├── IVehiclesByPriceViewModel.cs │ │ │ │ ├── IVehiclesViewModel.cs │ │ │ │ ├── ISettingsViewModel.cs │ │ │ │ ├── IVehiclesByDistanceViewModel.cs │ │ │ │ ├── IVehiclesInMapViewModel.cs │ │ │ │ ├── IMyRidesViewModel.cs │ │ │ │ ├── IRideDetailViewModel.cs │ │ │ │ └── ICompanyRidesViewModel.cs │ │ │ ├── Behavoirs │ │ │ │ └── ICanGoBackViewModel.cs │ │ │ ├── FirstViewModel.cs │ │ │ ├── VehiclesByDistanceViewModel.cs │ │ │ ├── Base │ │ │ │ └── NavegableViewModel.cs │ │ │ └── VehiclesByPriceViewModel.cs │ │ ├── Infrastructure │ │ │ └── Abstractions │ │ │ │ ├── Services │ │ │ │ ├── IApplicationStorageService.cs │ │ │ │ ├── ILocationServiceSingleton.cs │ │ │ │ └── IApplicationSettingServiceSingleton.cs │ │ │ │ └── Repositories │ │ │ │ └── IApplicationDataRepository.cs │ │ ├── ServiceAgents │ │ │ ├── Interfaces │ │ │ │ ├── ICustomersService.cs │ │ │ │ ├── IEmployeesService.cs │ │ │ │ ├── ICarriersService.cs │ │ │ │ ├── IAnalyticsService.cs │ │ │ │ ├── IMyShuttleClient.cs │ │ │ │ ├── IDriversService.cs │ │ │ │ └── IRidesService.cs │ │ │ ├── CustomersService.cs │ │ │ ├── RidesAnalyticInfo.cs │ │ │ ├── EmployeesService.cs │ │ │ └── CarriersService.cs │ │ ├── DocumentResponse │ │ │ ├── SummaryAnalyticInfo.cs │ │ │ └── RidesAnalyticInfo.cs │ │ ├── Converters │ │ │ ├── DistanceToStringConverter.cs │ │ │ ├── DateTimeToTimeConverter.cs │ │ │ ├── DateTimeToFormattedDateConverter.cs │ │ │ ├── EnumEqualityToBooleanConverter.cs │ │ │ ├── NullToBoolWithOptionalInverseConverter.cs │ │ │ ├── VehicleStatusToBoolConverter.cs │ │ │ ├── PriceToStringConverter.cs │ │ │ └── RatingToBoolConverter.cs │ │ └── Providers │ │ │ └── HumanizedDateProvider.cs │ │ ├── packages.config │ │ ├── Properties │ │ ├── Settings.settings │ │ └── Settings.Designer.cs │ │ ├── ViewModels │ │ ├── MyEventArgs.cs │ │ ├── BaseViewModel.cs │ │ ├── EditDriverViewModel.cs │ │ └── ObservableViewModel.cs │ │ ├── Views │ │ ├── MainView.xaml.cs │ │ └── CameraView.xaml.cs │ │ ├── App.config │ │ ├── Resources │ │ └── LocalizedResources.cs │ │ ├── Controls │ │ ├── Details.xaml.cs │ │ ├── Rating.xaml │ │ ├── VehicleCamera.xaml.cs │ │ └── Star.xaml │ │ ├── App.xaml.cs │ │ ├── Converters │ │ ├── NotBoolConverter.cs │ │ ├── ToUpperConverter.cs │ │ ├── FormatConverter.cs │ │ ├── NullToVisibilityConverter.cs │ │ ├── NotNullBoolToVisibilityConverter.cs │ │ ├── BoolToVisibilityConverter.cs │ │ ├── NotBoolToVisibilityConverter.cs │ │ ├── SumConverter.cs │ │ ├── SumHalfOfConverter.cs │ │ ├── ImageDataConverter.cs │ │ └── RectConverter.cs │ │ └── Infrastructure │ │ └── RelayCommand.cs └── MyShuttle.Client.SharedLibrary │ ├── packages.config │ ├── DataModel │ ├── VehicleStatus.cs │ ├── VehicleType.cs │ ├── Employee.cs │ ├── Customer.cs │ ├── Carrier.cs │ ├── Driver.cs │ └── Vehicle.cs │ ├── Cache │ └── DriverLookupRequest.cs │ └── Interfaces │ ├── IUpdatableUrl.cs │ └── IVehiclesService.cs ├── Project_Archive ├── ProjectArchive.Web │ ├── Views │ │ ├── _ViewStart.cshtml │ │ └── Shared │ │ │ └── Error.cshtml │ ├── favicon.ico │ ├── Global.asax │ ├── App_Data │ │ └── sampledata.xml │ ├── Scripts │ │ └── _references.js │ ├── Areas │ │ └── HelpPage │ │ │ ├── Views │ │ │ ├── Help │ │ │ │ ├── DisplayTemplates │ │ │ │ │ ├── ImageSample.cshtml │ │ │ │ │ ├── TextSample.cshtml │ │ │ │ │ ├── SimpleTypeModelDescription.cshtml │ │ │ │ │ ├── ComplexTypeModelDescription.cshtml │ │ │ │ │ ├── CollectionModelDescription.cshtml │ │ │ │ │ ├── InvalidSample.cshtml │ │ │ │ │ ├── DictionaryModelDescription.cshtml │ │ │ │ │ ├── KeyValuePairModelDescription.cshtml │ │ │ │ │ ├── EnumTypeModelDescription.cshtml │ │ │ │ │ ├── Samples.cshtml │ │ │ │ │ └── ModelDescriptionLink.cshtml │ │ │ │ ├── ResourceModel.cshtml │ │ │ │ ├── Api.cshtml │ │ │ │ └── Index.cshtml │ │ │ ├── _ViewStart.cshtml │ │ │ └── Shared │ │ │ │ └── _Layout.cshtml │ │ │ ├── ModelDescriptions │ │ │ ├── SimpleTypeModelDescription.cs │ │ │ ├── DictionaryModelDescription.cs │ │ │ ├── CollectionModelDescription.cs │ │ │ ├── ParameterAnnotation.cs │ │ │ ├── EnumValueDescription.cs │ │ │ ├── KeyValuePairModelDescription.cs │ │ │ ├── IModelDocumentationProvider.cs │ │ │ ├── ModelDescription.cs │ │ │ ├── ComplexTypeModelDescription.cs │ │ │ ├── EnumTypeModelDescription.cs │ │ │ ├── ParameterDescription.cs │ │ │ └── ModelNameAttribute.cs │ │ │ ├── SampleGeneration │ │ │ ├── SampleDirection.cs │ │ │ ├── TextSample.cs │ │ │ ├── InvalidSample.cs │ │ │ └── ImageSample.cs │ │ │ └── HelpPageAreaRegistration.cs │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ ├── App_Start │ │ ├── FilterConfig.cs │ │ ├── RouteConfig.cs │ │ ├── WebApiConfig.cs │ │ └── BundleConfig.cs │ ├── Content │ │ └── Site.css │ ├── Startup.cs │ ├── Controllers │ │ ├── HomeController.cs │ │ ├── PrimesController.cs │ │ ├── SlowValuesController.cs │ │ └── ValuesController.cs │ ├── Global.asax.cs │ ├── Results │ │ └── ChallengeResult.cs │ ├── Models │ │ ├── AccountViewModels.cs │ │ └── IdentityModels.cs │ └── Web.Debug.config ├── ProjectArchive.WPF │ ├── Resources │ │ ├── Data.xml │ │ ├── Failed.png │ │ └── Passed.png │ ├── packages.config │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ └── Settings.Designer.cs │ ├── App.xaml │ ├── App.xaml.cs │ └── NativeMethods.cs ├── ProjectArchive.Test │ ├── packages.config │ └── WebAPITests.cs ├── ProjectArchive.SharedLibrary │ └── packages.config ├── ProjectArchive.NativeLib │ ├── ProjectArchive.NativeLive.h │ ├── stdafx.cpp │ ├── targetver.h │ ├── ProjectArchive.NativeLib.cpp │ ├── dllmain.cpp │ └── stdafx.h └── README.md └── LICENSE /PhotoFilter/PhotoFilterLib.Win10/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /MyShuttle/.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/.nuget/NuGet.exe -------------------------------------------------------------------------------- /MyShuttle/Demo Steps.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/Demo Steps.docx -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilterLib.Win10/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_Layout.cshtml"; 3 | } 4 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/favicon.ico -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.Web/favicon.ico -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MyShuttle.Client.Web.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/Resources/Data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="AndrewsApp.Web.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Unknown.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Unknown.jpg -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/StoreLogo.png -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/BuickRegal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/BuickRegal.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/CadilacELR.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/CadilacELR.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Dan Taylor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Dan Taylor.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/DodgeDart.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/DodgeDart.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Ibon Campa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Ibon Campa.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/PontiacG5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/PontiacG5.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/PontiacG6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/PontiacG6.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/PontiacG8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/PontiacG8.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Scripts/_references.js -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Alan Anderson.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Alan Anderson.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Andrew Hall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Andrew Hall.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Andy Sterland.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Andy Sterland.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/BuickRiviera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/BuickRiviera.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/CadillacBLS.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/CadillacBLS.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Chrysler300C.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Chrysler300C.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Daniel Moth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Daniel Moth.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/David Carmona.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/David Carmona.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Deborah Chen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Deborah Chen.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Dmitry Lyalin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Dmitry Lyalin.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/DodgeCaliber.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/DodgeCaliber.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/John Kemnetz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/John Kemnetz.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Newton Jain.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Newton Jain.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Ray J. Poland.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Ray J. Poland.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Rose Anderson.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Rose Anderson.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/S. Somasegar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/S. Somasegar.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/SaturnAura XR.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/SaturnAura XR.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Wendy Torre.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Wendy Torre.jpg -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/logo.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Design/camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Design/camera.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Design/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Design/main.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Diagnostics.Service/favicon.ico -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/Resources/Failed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.WPF/Resources/Failed.png -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/Resources/Passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.WPF/Resources/Passed.png -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Aaron McDonall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Aaron McDonall.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Austin Lumbert.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Austin Lumbert.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/ChevroletAveoLT.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/ChevroletAveoLT.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/ChevroletVolt2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/ChevroletVolt2.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/FordTaurusault.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/FordTaurusault.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/James Rodriguez.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/James Rodriguez.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Kaycee Anderson.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Kaycee Anderson.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Nikhil Joglekar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Nikhil Joglekar.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Scott Hanselman.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Scott Hanselman.jpg -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/bg_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/bg_right.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/star_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/star_off.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/star_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/star_on.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/start_bt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/start_bt.png -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/App_Data/sampledata.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.Web/App_Data/sampledata.xml -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.Web/Scripts/_references.js -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Carlos Rodriguez.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Carlos Rodriguez.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/ChryslerPacifica.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/ChryslerPacifica.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Kenneth Auchenberg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Kenneth Auchenberg.jpg -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/camera-car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/camera-car.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/camera_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/camera_icon.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/icon-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/icon-logo.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicle_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicle_bg.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Design/vehicle_cam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Design/vehicle_cam.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MyShuttle.Diagnostics.Service.WebApiApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Angelos Petropolous.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/Angelos Petropolous.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/ChevroletCaprice PPV.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/ChevroletCaprice PPV.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/ChevroletImpala LTZ.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/ChevroletImpala LTZ.jpg -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/LincolnTown Cartier.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/Content/LincolnTown Cartier.jpg -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/close_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/close_button.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/icon_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/icon_selected.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/refresh_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/refresh_icon.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/settings_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/settings_icon.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicles_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicles_icon.png -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/Pontiac_G5_coupe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/Pontiac_G5_coupe.jpg -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/camera_icon_x2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/camera_icon_x2.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/maximize_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/maximize_button.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/minimize_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/minimize_button.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/star_on_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/star_on_selected.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicle_black_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicle_black_bg.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicles_icon_x2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicles_icon_x2.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Scripts/_references.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Diagnostics.Service/Scripts/_references.js -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage 2 | @model ImageSample 3 | 4 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/driver_unknow_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/driver_unknow_icon.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/loading_small_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/loading_small_icon.png -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/MyShuttle.Client.Web/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Bold.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Italic.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Light.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicle_unknow_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/vehicle_unknow_icon.png -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/Logo.scale-100.png -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Regular.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-Semibold.ttf -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.Web/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.Web/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /MyShuttle/.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-BoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-BoldItalic.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-ExtraBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-ExtraBold.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-LightItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-LightItalic.ttf -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/SmallLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/SmallLogo.scale-100.png -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text
6 | 
-------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/Project_Archive/ProjectArchive.Web/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter/PhotoFilter.Windows/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-ExtraBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-ExtraBoldItalic.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-SemiboldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Client.Desktop/Assets/fonts/OpenSans-SemiboldItalic.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Model/Enums/RideDetailWorkflow.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.Model.Enums 2 | { 3 | public enum RideDetailWorkflow 4 | { 5 | Resume, Rate 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage 2 | @model ImageSample 3 | 4 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "About"; 3 | } 4 |

@ViewBag.Title.

5 |

@ViewBag.Message

6 | 7 |

Use this area to provide additional information.

8 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Diagnostics.Service/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Diagnostics.Service/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/MyShuttle/src/MyShuttle.Diagnostics.Service/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Test/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/vs-diag-samples/HEAD/PhotoFilter/PhotoFilter.Win10/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.SharedLibrary/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage 2 | @model TextSample 3 | 4 |
5 | @Model.Text
6 | 
-------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/IVehiclesByPriceViewModel.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ViewModels 3 | { 4 | public interface IVehiclesByPriceViewModel 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.NativeLib/ProjectArchive.NativeLive.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "stdafx.h" 3 | 4 | #define PROJECTARCHIVE_NATIVE_API __declspec(dllexport) 5 | 6 | extern "C" { 7 | PROJECTARCHIVE_NATIVE_API void DoWork(); 8 | } 9 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/VehicleStatus.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.DocumentResponse 2 | { 3 | public enum VehicleStatus 4 | { 5 | Unknown = 0, 6 | Occupied = 1, 7 | Free = 2, 8 | } 9 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/ExternalLoginFailure.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Login Failure"; 3 | } 4 | 5 |
6 |

@ViewBag.Title.

7 |

Unsuccessful login with service.

8 |
9 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model SimpleTypeModelDescription 3 | @Model.Documentation -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages 3 | Layout = "~/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages. 3 | Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml"; 4 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Model/Location.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.Model 2 | { 3 | public class Location 4 | { 5 | public double Latitude { get; set; } 6 | 7 | public double Longitude { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/IVehiclesViewModel.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ViewModels.InterfacesForDependencyInjection 3 | { 4 | public interface IVehiclesViewModel 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class SimpleTypeModelDescription : ModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @model System.Web.Mvc.HandleErrorInfo 2 | 3 | @{ 4 | ViewBag.Title = "Error"; 5 | } 6 | 7 |

Error.

8 |

An error occurred while processing your request.

9 | 10 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/ViewModels/MyEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace MyShuttle.Client.Desktop.ViewModels 7 | { 8 | class MyEventArgs 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model ComplexTypeModelDescription 3 | @Html.DisplayFor(m => m.Properties, "Parameters") -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class DictionaryModelDescription : KeyValuePairModelDescription 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Shared/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/Behavoirs/ICanGoBackViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Input; 2 | 3 | namespace MyShuttle.Client.Core.ViewModels.Behavoirs 4 | { 5 | public interface ICanGoBackViewModel 6 | { 7 | ICommand GoBackCommand { get; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/Cache/DriverLookupRequest.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.SharedLibrary.Cache 2 | { 3 | public class DriverLookupRequest 4 | { 5 | public int id { get; set; } 6 | public string name { get; set; } 7 | public int sequenceId { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class CollectionModelDescription : ModelDescription 4 | { 5 | public ModelDescription ElementDescription { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/ViewModels/BaseViewModel.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Desktop.ViewModels 3 | { 4 | public abstract class BaseViewModel : ObservableViewModel 5 | { 6 | public abstract void Load(); 7 | 8 | public abstract void Update(string view); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Views/MainView.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace MyShuttle.Client.Desktop.Views 4 | { 5 | public partial class MainView : Page 6 | { 7 | public MainView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model CollectionModelDescription 3 | @if (Model.ElementDescription is ComplexTypeModelDescription) 4 | { 5 | @Html.DisplayFor(m => m.ElementDescription) 6 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/ISettingsViewModel.cs: -------------------------------------------------------------------------------- 1 | //using Cirrious.MvvmCross.ViewModels; 2 | 3 | namespace MyShuttle.Client.Core.ViewModels.InterfacesForDependencyInjection 4 | { 5 | //public interface ISettingsViewModel : IMvxViewModel 6 | //{ 7 | //} 8 | } 9 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Shared/Lockout.cshtml: -------------------------------------------------------------------------------- 1 | @model System.Web.Mvc.HandleErrorInfo 2 | 3 | @{ 4 | ViewBag.Title = "Locked Out"; 5 | } 6 | 7 |
8 |

Locked out.

9 |

This account has been locked out, please try again later.

10 |
11 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Views/CameraView.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace MyShuttle.Client.Desktop.Views 4 | { 5 | public partial class CameraView : Page 6 | { 7 | public CameraView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/ForgotPasswordConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Forgot Password Confirmation"; 3 | } 4 | 5 |
6 |

@ViewBag.Title.

7 |
8 |
9 |

10 | Please check your email to reset your password. 11 |

12 |
13 | 14 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Infrastructure/Abstractions/Services/IApplicationStorageService.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.Infrastructure.Abstractions.Services 2 | { 3 | public interface IApplicationStorageService 4 | { 5 | string SecurityToken { get; set; } 6 | 7 | void Refresh(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/ICustomersService.cs: -------------------------------------------------------------------------------- 1 | 2 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 3 | using MyShuttle.Client.Services.Interfaces; 4 | 5 | namespace MyShuttle.Client.Core.ServiceAgents 6 | { 7 | public interface ICustomersService : IUpdatableUrl 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class CollectionModelDescription : ModelDescription 4 | { 5 | public ModelDescription ElementDescription { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/IVehiclesByDistanceViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace MyShuttle.Client.Core.ViewModels 5 | { 6 | public interface IVehiclesByDistanceViewModel 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model CollectionModelDescription 3 | @if (Model.ElementDescription is ComplexTypeModelDescription) 4 | { 5 | @Html.DisplayFor(m => m.ElementDescription) 6 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/SampleGeneration/SampleDirection.cs: -------------------------------------------------------------------------------- 1 | namespace AndrewsApp.Web.Areas.HelpPage 2 | { 3 | /// 4 | /// Indicates whether the sample is used for request or response 5 | /// 6 | public enum SampleDirection 7 | { 8 | Request = 0, 9 | Response 10 | } 11 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ParameterAnnotation 6 | { 7 | public Attribute AnnotationAttribute { get; set; } 8 | 9 | public string Documentation { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/Interfaces/IUpdatableUrl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MyShuttle.Client.Services.Interfaces 8 | { 9 | public interface IUpdatableUrl 10 | { 11 | string UrlPrefix { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/ConfirmEmail.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Confirm Email"; 3 | } 4 | 5 |

@ViewBag.Title.

6 |
7 |

8 | Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) 9 |

10 |
11 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.NativeLib/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // ProjectArchive.NativeLib.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs: -------------------------------------------------------------------------------- 1 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class EnumValueDescription 4 | { 5 | public string Documentation { get; set; } 6 | 7 | public string Name { get; set; } 8 | 9 | public string Value { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.NativeLib/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace AndrewsApp.Web 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @RenderSection("scripts", required: false) 8 | 9 | 10 | @RenderBody() 11 | 12 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace MyShuttle.Client.Web 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/IVehiclesInMapViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MyShuttle.Client.Core.ViewModels 8 | { 9 | public interface IVehiclesInMapViewModel 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage 2 | @model InvalidSample 3 | 4 | @if (HttpContext.Current.IsDebuggingEnabled) 5 | { 6 |
7 |

@Model.ErrorMessage

8 |
9 | } 10 | else 11 | { 12 |

Sample not available.

13 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Startup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Owin; 2 | using Owin; 3 | 4 | [assembly: OwinStartupAttribute(typeof(MyShuttle.Client.Web.Startup))] 5 | namespace MyShuttle.Client.Web 6 | { 7 | public partial class Startup 8 | { 9 | public void Configuration(IAppBuilder app) 10 | { 11 | ConfigureAuth(app); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Design/DesignCameraViewModel.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Desktop 3 | { 4 | public class DesignCameraViewModel 5 | { 6 | public DesignDetailsViewModel Details { get; set; } 7 | 8 | public DesignCameraViewModel() 9 | { 10 | Details = new DesignDetailsViewModel(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/SampleGeneration/SampleDirection.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage 2 | { 3 | /// 4 | /// Indicates whether the sample is used for request or response 5 | /// 6 | public enum SampleDirection 7 | { 8 | Request = 0, 9 | Response 10 | } 11 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.NativeLib/ProjectArchive.NativeLib.cpp: -------------------------------------------------------------------------------- 1 | // ProjectArchive.NativeLib.cpp : Defines the exported functions for the DLL application. 2 | // 3 | 4 | #include "stdafx.h" 5 | 6 | extern "C" PROJECTARCHIVE_NATIVE_API void DoWork() { 7 | std::vector vect; 8 | 9 | for (int x = 0; x < 10; x++) { 10 | vect.push_back(x); 11 | } 12 | 13 | } 14 | 15 | 16 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title 7 | @RenderSection("scripts", required: false) 8 | 9 | 10 | @RenderBody() 11 | 12 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ParameterAnnotation 6 | { 7 | public Attribute AnnotationAttribute { get; set; } 8 | 9 | public string Documentation { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/FilterConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | 4 | namespace MyShuttle.Diagnostics.Service 5 | { 6 | public class FilterConfig 7 | { 8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters) 9 | { 10 | filters.Add(new HandleErrorAttribute()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/VehicleType.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.DocumentResponse 2 | { 3 | public enum VehicleType 4 | { 5 | Unknown = 0, 6 | Van = 1, 7 | Minivan = 2, 8 | Luxury = 3, 9 | Compact = 4, 10 | Intermediate = 5, 11 | Premium = 6, 12 | FullSize = 7, 13 | Convertible = 8, 14 | } 15 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class EnumValueDescription 4 | { 5 | public string Documentation { get; set; } 6 | 7 | public string Name { get; set; } 8 | 9 | public string Value { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilterLib.Win10/ImageFilter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | using namespace Windows::Storage::Streams; 6 | 7 | 8 | namespace PhotoFilterLib_Win10 9 | { 10 | public ref class ImageFilter sealed 11 | { 12 | public: 13 | ImageFilter(); 14 | 15 | Platform::Array^ ImageFilter::AntiqueImage(const Platform::Array^ buffer); 16 | }; 17 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Infrastructure/Abstractions/Services/ILocationServiceSingleton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MyShuttle.Client.Core.Model; 3 | using System.Threading.Tasks; 4 | 5 | namespace MyShuttle.Client.Core.Infrastructure.Abstractions.Services 6 | { 7 | public interface ILocationServiceSingleton 8 | { 9 | Task CalculatePositionAsync(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/DocumentResponse/SummaryAnalyticInfo.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.DocumentResponse 2 | { 3 | public class SummaryAnalyticInfo 4 | { 5 | public int TotalVehicles { get; set; } 6 | 7 | public int TotalDrivers { get; set; } 8 | 9 | public int TotalPassengers { get; set; } 10 | 11 | public double Rating { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage 2 | @model InvalidSample 3 | 4 | @if (HttpContext.Current.IsDebuggingEnabled) 5 | { 6 |
7 |

@Model.ErrorMessage

8 |
9 | } 10 | else 11 | { 12 |

Sample not available.

13 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = null; 3 | } 4 | 5 | 6 | 7 | 8 | 9 | Error 10 | 11 | 12 |
13 |

Error.

14 |

An error occurred while processing your request.

15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | { 3 | public class KeyValuePairModelDescription : ModelDescription 4 | { 5 | public ModelDescription KeyModelDescription { get; set; } 6 | 7 | public ModelDescription ValueModelDescription { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Views/Shared/Error.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = null; 3 | } 4 | 5 | 6 | 7 | 8 | 9 | Error 10 | 11 | 12 |
13 |

Error.

14 |

An error occurred while processing your request.

15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 5 | { 6 | public interface IModelDocumentationProvider 7 | { 8 | string GetDocumentation(MemberInfo member); 9 | 10 | string GetDocumentation(Type type); 11 | } 12 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/ResetPasswordConfirmation.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Reset password confirmation"; 3 | } 4 | 5 |
6 |

@ViewBag.Title.

7 |
8 |
9 |

10 | Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) 11 |

12 |
13 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace AndrewsApp 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/FirstViewModel.cs: -------------------------------------------------------------------------------- 1 | using Cirrious.MvvmCross.ViewModels; 2 | 3 | namespace MyShuttle.Client.Core.ViewModels 4 | { 5 | public class FirstViewModel 6 | : MvxViewModel 7 | { 8 | private string _hello = "Hello MvvmCross"; 9 | public string Hello 10 | { 11 | get { return _hello; } 12 | set { _hello = value; RaisePropertyChanged(() => Hello); } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/CustomersService.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.ServiceAgents 2 | { 3 | using Services; 4 | using System.Web; 5 | 6 | 7 | internal class CustomersService : BaseRequest, ICustomersService 8 | { 9 | public CustomersService(string urlPrefix, string securityToken) 10 | : base(urlPrefix, securityToken) 11 | { 12 | 13 | } 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/IEmployeesService.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ServiceAgents 3 | { 4 | using DocumentResponse; 5 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 6 | using Services.Interfaces; 7 | using System.Threading.Tasks; 8 | 9 | public interface IEmployeesService : IUpdatableUrl 10 | { 11 | Task GetMyProfileAsync(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using Microsoft.Owin; 5 | using Owin; 6 | 7 | [assembly: OwinStartup(typeof(AndrewsApp.Web.Startup))] 8 | 9 | namespace AndrewsApp.Web 10 | { 11 | public partial class Startup 12 | { 13 | public void Configuration(IAppBuilder app) 14 | { 15 | ConfigureAuth(app); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Model/LocationCalculatedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Client.Core.Model 4 | { 5 | public class LocationCalculatedEventArgs : EventArgs 6 | { 7 | public Location CalculatedLocation { get; private set; } 8 | 9 | public LocationCalculatedEventArgs(Location location) 10 | { 11 | CalculatedLocation = location; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0", 4 | "Newtonsoft.Json": "7.0.1", 5 | "WriteableBitmapEx": "1.5.0" 6 | }, 7 | "frameworks": { 8 | "uap10.0": {} 9 | }, 10 | "runtimes": { 11 | "win10-arm": {}, 12 | "win10-arm-aot": {}, 13 | "win10-x86": {}, 14 | "win10-x86-aot": {}, 15 | "win10-x64": {}, 16 | "win10-x64-aot": {} 17 | } 18 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace ProjectArchive.Web.Controllers 8 | { 9 | public class HomeController : Controller 10 | { 11 | public ActionResult Index() 12 | { 13 | ViewBag.Title = "Home Page"; 14 | 15 | return View(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Resources/LocalizedResources.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Client.Desktop.Resources 4 | { 5 | public class LocalizedResources 6 | { 7 | private Lazy resources = new Lazy(()=> new Resources()); 8 | 9 | public Resources Resources 10 | { 11 | get 12 | { 13 | return resources.Value; 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/ModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Describes a type model. 7 | /// 8 | public abstract class ModelDescription 9 | { 10 | public string Documentation { get; set; } 11 | 12 | public Type ModelType { get; set; } 13 | 14 | public string Name { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using Microsoft.Owin; 5 | using Owin; 6 | 7 | [assembly: OwinStartup(typeof(MyShuttle.Diagnostics.Service.Startup))] 8 | 9 | namespace MyShuttle.Diagnostics.Service 10 | { 11 | public partial class Startup 12 | { 13 | public void Configuration(IAppBuilder app) 14 | { 15 | ConfigureAuth(app); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/DistanceToStringConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Client.Core.Converters 4 | { 5 | //public class DistanceToStringConverter : MvxValueConverter 6 | //{ 7 | // protected override string Convert(double value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 8 | // { 9 | // return string.Format("{0:0.00}", value); 10 | // } 11 | //} 12 | } 13 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/IMyRidesViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace MyShuttle.Client.Core.ViewModels.InterfacesForDependencyInjection 5 | { 6 | public interface IMyRidesViewModel 7 | { 8 | bool IsLoadingMyLastRides { get; } 9 | 10 | ObservableCollection MyLastRides { get; set; } 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/IRideDetailViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | using Cirrious.MvvmCross.ViewModels; 3 | using MyShuttle.Client.Core.DocumentResponse; 4 | 5 | namespace MyShuttle.Client.Core.ViewModels.InterfacesForDependencyInjection 6 | { 7 | public interface IRideDetailViewModel : IMvxViewModel 8 | { 9 | bool IsLoadingRide { get; } 10 | 11 | Ride Ride { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model DictionaryModelDescription 3 | Dictionary of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model KeyValuePairModelDescription 3 | Pair of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/DateTimeToTimeConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Client.Core.Converters 4 | { 5 | //public class DateTimeToTimeConverter : MvxValueConverter 6 | //{ 7 | // protected override string Convert(DateTime value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 8 | // { 9 | // return value.ToString("t").ToLower(); 10 | // } 11 | 12 | //} 13 | } 14 | -------------------------------------------------------------------------------- /Project_Archive/README.md: -------------------------------------------------------------------------------- 1 | ## Project_Archive 2 | For more details see the readme included with each application. 3 | 4 | | Branch Name | Where Used | 5 | | ---------------------------------------- | ------------------------------------------------------------------------------------------ | 6 | | master | Used for Build 2016 Debugging Tips and Tricks for .NET developers | 7 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/ModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Describes a type model. 7 | /// 8 | public abstract class ModelDescription 9 | { 10 | public string Documentation { get; set; } 11 | 12 | public Type ModelType { get; set; } 13 | 14 | public string Name { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.NativeLib/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // dllmain.cpp : Defines the entry point for the DLL application. 2 | #include "stdafx.h" 3 | 4 | BOOL APIENTRY DllMain( HMODULE hModule, 5 | DWORD ul_reason_for_call, 6 | LPVOID lpReserved 7 | ) 8 | { 9 | switch (ul_reason_for_call) 10 | { 11 | case DLL_PROCESS_ATTACH: 12 | case DLL_THREAD_ATTACH: 13 | case DLL_THREAD_DETACH: 14 | case DLL_PROCESS_DETACH: 15 | break; 16 | } 17 | return TRUE; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/Employee.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.DocumentResponse 2 | { 3 | public class Employee 4 | { 5 | public int EmployeeId { get; set; } 6 | 7 | public string Name { get; set; } 8 | 9 | public string Email { get; set; } 10 | 11 | public byte[] Picture { get; set; } 12 | 13 | public int CustomerId { get; set; } 14 | 15 | public Customer Customer { get; set; } 16 | 17 | public string Id { get; set; } 18 | } 19 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model KeyValuePairModelDescription 3 | Pair of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ComplexTypeModelDescription : ModelDescription 6 | { 7 | public ComplexTypeModelDescription() 8 | { 9 | Properties = new Collection(); 10 | } 11 | 12 | public Collection Properties { get; private set; } 13 | } 14 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model DictionaryModelDescription 3 | Dictionary of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key] 4 | and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value] -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Model/GroupRide.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Collections.ObjectModel; 5 | using System.Text; 6 | 7 | namespace MyShuttle.Client.UniversalApp.Model 8 | { 9 | 10 | public class GroupRide 11 | { 12 | public ObservableCollection Names { get; set; } 13 | public GroupRide(ObservableCollection rides) 14 | { 15 | Names = rides; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/ICarriersService.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ServiceAgents 3 | { 4 | using DocumentResponse; 5 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 6 | using Services.Interfaces; 7 | using System.Threading.Tasks; 8 | 9 | public interface ICarriersService : IUpdatableUrl 10 | { 11 | Task GetAsync(); 12 | 13 | Task PostAsync(Carrier carrier); 14 | 15 | Task PutAsync(Carrier carrier); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/InterfacesForDependencyInjection/ICompanyRidesViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | using MyShuttle.Client.Core.DocumentResponse; 3 | using MyShuttle.Client.UniversalApp.Model; 4 | 5 | namespace MyShuttle.Client.Core.ViewModels.InterfacesForDependencyInjection 6 | { 7 | public interface ICompanyRidesViewModel 8 | { 9 | bool IsLoadingLastCompanyRides { get; } 10 | 11 | ObservableCollection LastCompanyRidesGrouped { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class EnumTypeModelDescription : ModelDescription 7 | { 8 | public EnumTypeModelDescription() 9 | { 10 | Values = new Collection(); 11 | } 12 | 13 | public Collection Values { get; private set; } 14 | } 15 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Controls/Details.xaml.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Desktop.Infrastructure; 2 | using System.Windows.Controls; 3 | 4 | namespace MyShuttle.Client.Desktop.Controls 5 | { 6 | public partial class Details : UserControl 7 | { 8 | public Details() 9 | { 10 | InitializeComponent(); 11 | } 12 | 13 | private void MenuItem_Click(object sender, System.Windows.RoutedEventArgs e) 14 | { 15 | NavigationHelper.NavigateToEditDriverPage(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 4 | { 5 | public class ComplexTypeModelDescription : ModelDescription 6 | { 7 | public ComplexTypeModelDescription() 8 | { 9 | Properties = new Collection(); 10 | } 11 | 12 | public Collection Properties { get; private set; } 13 | } 14 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/DateTimeToFormattedDateConverter.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.Providers; 2 | using System; 3 | 4 | namespace MyShuttle.Client.Core.Converters 5 | { 6 | //public class DateTimeToFormattedDateConverter : MvxValueConverter 7 | //{ 8 | // protected override string Convert(DateTime value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 9 | // { 10 | // return string.Format(new HumanizedDateProvider(), "{0}", value); 11 | // } 12 | //} 13 | } 14 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.NativeLib/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 11 | // Windows Header Files: 12 | #include 13 | 14 | 15 | 16 | // TODO: reference additional headers your program requires here 17 | #include "ProjectArchive.NativeLive.h" 18 | #include 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class EnumTypeModelDescription : ModelDescription 7 | { 8 | public EnumTypeModelDescription() 9 | { 10 | Values = new Collection(); 11 | } 12 | 13 | public Collection Values { get; private set; } 14 | } 15 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Controllers/VehiclesController.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Diagnostics.Service.Models; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Net; 6 | using System.Net.Http; 7 | using System.Web.Http; 8 | 9 | namespace MyShuttle.Client.Web.Controllers 10 | { 11 | //this should hopefully give it a different checksum 12 | public class VehiclesController : ApiController 13 | { 14 | public int Get(/*int id*/) 15 | { 16 | return VehiclesModel.Vehicles.Count(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using Autofac; 2 | using System; 3 | using System.Windows; 4 | 5 | namespace MyShuttle.Client.Desktop 6 | { 7 | /// 8 | /// Interaction logic for App.xaml 9 | /// 10 | public partial class App : Application 11 | { 12 | private Lazy container = new Lazy(IocContainer.BuildContainer); 13 | 14 | public IContainer Container 15 | { 16 | get 17 | { 18 | return container.Value; 19 | } 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Infrastructure/Abstractions/Repositories/IApplicationDataRepository.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.Infrastructure.Abstractions.Repositories 2 | { 3 | public interface IApplicationDataRepository 4 | { 5 | string GetStringFromApplicationData(string key, string defaultValue); 6 | 7 | bool? GetOptionalBooleanFromApplicationData(string key, bool? defaultValue); 8 | 9 | int? GetOptionalIntegerFromApplicationData(string key, int? defaultValue); 10 | 11 | void SetStringToApplicationData(string key, string value); 12 | } 13 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/RidesAnalyticInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ServiceAgents 3 | { 4 | using System.Collections.Generic; 5 | using System; 6 | 7 | public class RidesAnalyticInfo 8 | { 9 | public int LastDaysRides { get; set; } 10 | 11 | public int LastDaysPassengers { get; set; } 12 | 13 | public RideGroupInfo RidesEvolution { get; set; } 14 | } 15 | 16 | public class RideGroupInfo 17 | { 18 | public IList Days { get; set; } 19 | 20 | public IList Values { get; set; } 21 | } 22 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/DocumentResponse/RidesAnalyticInfo.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.DocumentResponse 3 | { 4 | using System.Collections.Generic; 5 | using System; 6 | 7 | public class RidesAnalyticInfo 8 | { 9 | public int LastDaysRides { get; set; } 10 | 11 | public int LastDaysPassengers { get; set; } 12 | 13 | public RideGroupInfo RidesEvolution { get; set; } 14 | } 15 | 16 | public class RideGroupInfo 17 | { 18 | public IList Days { get; set; } 19 | 20 | public IList Values { get; set; } 21 | } 22 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Controllers/VehiclesController.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Diagnostics.Service.Models; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Net; 7 | using System.Net.Http; 8 | using System.Text; 9 | using System.Web.Http; 10 | 11 | namespace MyShuttle.Diagnostics.Service.Controllers 12 | { 13 | public class VehiclesController : ApiController 14 | { 15 | // GET api/ 16 | public int Get(/*int id*/) 17 | { 18 | return VehiclesModel.Vehicles.Count(); 19 | } 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/EnumEqualityToBooleanConverter.cs: -------------------------------------------------------------------------------- 1 | //using Cirrious.CrossCore.Converters; 2 | using System; 3 | 4 | namespace MyShuttle.Client.Core.Converters 5 | { 6 | //public class EnumEqualityToBooleanConverter : MvxValueConverter 7 | //{ 8 | // protected override bool Convert(Enum value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 9 | // { 10 | // var valueIsNotEqualToParameter = value.ToString() != (parameter as Enum).ToString(); 11 | 12 | // return valueIsNotEqualToParameter; 13 | // } 14 | //} 15 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Controls/Rating.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/ViewModels/EditDriverViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MyShuttle.Client.Desktop.ViewModels 9 | { 10 | public class EditDriverViewModel : BaseViewModel 11 | { 12 | public static Driver CurrentDriver { get; set; } 13 | 14 | public override void Load() 15 | { 16 | 17 | } 18 | 19 | public override void Update(string view) 20 | { 21 | 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Design/DesignDetailsViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using MyShuttle.Client.Desktop.ViewModels; 3 | 4 | namespace MyShuttle.Client.Desktop 5 | { 6 | public class DesignDetailsViewModel 7 | { 8 | public StatisticsViewModel Statistics { get; set; } 9 | 10 | public Vehicle SelectedVehicle { get; set; } 11 | 12 | public Driver SelectedDriver { get; set; } 13 | 14 | public bool IsLoadingDriver { get; set; } 15 | 16 | public DesignDetailsViewModel() 17 | { 18 | Statistics = new StatisticsViewModel(); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/NotBoolConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Data; 3 | 4 | namespace MyShuttle.Client.Desktop.Converters 5 | { 6 | public class NotBoolConverter : IValueConverter 7 | { 8 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 9 | { 10 | return value is bool && !((bool)value); 11 | } 12 | 13 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 14 | { 15 | throw new NotImplementedException(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Controllers/PrimesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Web.Http; 7 | 8 | namespace AndrewsApp.Web.Controllers 9 | { 10 | public class PrimesController : ApiController 11 | { 12 | // GET api/ 13 | public IEnumerable Get() 14 | { 15 | return new string[] { "value1", "value2" }; 16 | } 17 | 18 | // GET api//5 19 | public string Get(int id) 20 | { 21 | return NumberUtilities.IsPrime(id).ToString(); 22 | } 23 | 24 | } 25 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/ToUpperConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Data; 3 | 4 | namespace MyShuttle.Client.Desktop.Converters 5 | { 6 | public class ToUpperConverter : IValueConverter 7 | { 8 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 9 | { 10 | return (value ?? string.Empty).ToString().ToUpperInvariant(); 11 | } 12 | 13 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 14 | { 15 | throw new NotImplementedException(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/ViewModels/ObservableViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | using System.Runtime.CompilerServices; 3 | 4 | namespace MyShuttle.Client.Desktop.ViewModels 5 | { 6 | public abstract class ObservableViewModel : INotifyPropertyChanged 7 | { 8 | public event PropertyChangedEventHandler PropertyChanged; 9 | 10 | protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) 11 | { 12 | var handler = PropertyChanged; 13 | if (handler != null) 14 | { 15 | handler(this, new PropertyChangedEventArgs(propertyName)); 16 | } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/NativeMethods.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 5 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 6 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 7 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 8 | // 9 | //********************************************************* 10 | 11 | using System.Runtime.InteropServices; 12 | 13 | public static class NativeMethods 14 | { 15 | [DllImport("ProjectArchive.NativeLib.dll", CallingConvention = CallingConvention.Cdecl)] 16 | public static extern void DoWork(); 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class ParameterDescription 7 | { 8 | public ParameterDescription() 9 | { 10 | Annotations = new Collection(); 11 | } 12 | 13 | public Collection Annotations { get; private set; } 14 | 15 | public string Documentation { get; set; } 16 | 17 | public string Name { get; set; } 18 | 19 | public ModelDescription TypeDescription { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/IAnalyticsService.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ServiceAgents 3 | { 4 | using MyShuttle.Client.Core.DocumentResponse; 5 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 6 | using Services.Interfaces; 7 | using System.Collections.Generic; 8 | using System.Threading.Tasks; 9 | 10 | 11 | public interface IAnalyticsService : IUpdatableUrl 12 | { 13 | Task> GetTopDriversAsync(); 14 | 15 | Task> GetTopVehiclesAsync(); 16 | 17 | Task GetSummaryInfoAsync(); 18 | 19 | Task GetRidesInfoAsync(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Use this attribute to change the name of the generated for a type. 7 | /// 8 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)] 9 | public sealed class ModelNameAttribute : Attribute 10 | { 11 | public ModelNameAttribute(string name) 12 | { 13 | Name = name; 14 | } 15 | 16 | public string Name { get; private set; } 17 | } 18 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/IMyShuttleClient.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Services.Interfaces; 2 | 3 | namespace MyShuttle.Client.Core.ServiceAgents.Interfaces 4 | { 5 | public interface IMyShuttleClient 6 | { 7 | IAnalyticsService AnalyticsService { get; } 8 | 9 | ICustomersService CustomersService { get; } 10 | 11 | IEmployeesService EmployeesService { get; } 12 | 13 | ICarriersService CarriersService { get; } 14 | 15 | DriversService DriversService { get; } 16 | 17 | IVehiclesService VehiclesService { get; } 18 | 19 | IRidesService RidesService { get; } 20 | 21 | 22 | void Refresh(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/FormatConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Data; 3 | 4 | namespace MyShuttle.Client.Desktop.Converters 5 | { 6 | public class FormatConverter : IValueConverter 7 | { 8 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 9 | { 10 | var format = parameter as string; 11 | return string.Format(format, value); 12 | } 13 | 14 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | { 16 | throw new NotImplementedException(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Infrastructure/Abstractions/Services/IApplicationSettingServiceSingleton.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.Infrastructure.Abstractions.Services 2 | { 3 | public interface IApplicationSettingServiceSingleton 4 | { 5 | string UrlPrefix { get; } 6 | string VehicleServiceUrlPrefix { get; } 7 | 8 | bool? AuthenticationEnabled { get; set; } 9 | 10 | string BingMapsToken { get; set; } 11 | 12 | int TopListItemsCount { get; set; } 13 | 14 | bool LocationFixed { get; } 15 | 16 | double LocationFixedLatitude { get; } 17 | 18 | double LocationFixedLongitude { get; } 19 | 20 | void Refresh(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace MyShuttle.Client.Web 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace AndrewsApp.Web 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/ResourceModel.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 3 | @model ModelDescription 4 | 5 | 6 |
7 | 14 |

@Model.Name

15 |

@Model.Documentation

16 |
17 | @Html.DisplayFor(m => Model) 18 |
19 |
20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/VehiclesByDistanceViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.Infrastructure.Abstractions.Services; 2 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 3 | 4 | namespace MyShuttle.Client.Core.ViewModels 5 | { 6 | public class VehiclesByDistanceViewModel : VehiclesViewModelBase, IVehiclesByDistanceViewModel 7 | { 8 | public VehiclesByDistanceViewModel( 9 | IMyShuttleClient myShuttleClient, 10 | ILocationServiceSingleton locationService, 11 | IApplicationSettingServiceSingleton applicationSettingService) 12 | : base(myShuttleClient, locationService, applicationSettingService) 13 | { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web.Http; 5 | 6 | namespace MyShuttle.Client.Web 7 | { 8 | public static class WebApiConfig 9 | { 10 | public static void Register(HttpConfiguration config) 11 | { 12 | // Web API configuration and services 13 | 14 | // Web API routes 15 | config.MapHttpAttributeRoutes(); 16 | 17 | config.Routes.MapHttpRoute( 18 | name: "DefaultApi", 19 | routeTemplate: "api/{controller}/{id}", 20 | defaults: new { id = RouteParameter.Optional } 21 | ); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Collections.ObjectModel; 3 | 4 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 5 | { 6 | public class ParameterDescription 7 | { 8 | public ParameterDescription() 9 | { 10 | Annotations = new Collection(); 11 | } 12 | 13 | public Collection Annotations { get; private set; } 14 | 15 | public string Documentation { get; set; } 16 | 17 | public string Name { get; set; } 18 | 19 | public ModelDescription TypeDescription { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Controls/VehicleCamera.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace MyShuttle.Client.Desktop.Controls 17 | { 18 | public partial class VehicleCamera : UserControl 19 | { 20 | public VehicleCamera() 21 | { 22 | InitializeComponent(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/NullToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | using System.Windows.Data; 4 | 5 | namespace MyShuttle.Client.Desktop.Converters 6 | { 7 | public class NullToVisibilityConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 10 | { 11 | return value == null ? Visibility.Visible : Visibility.Collapsed; 12 | } 13 | 14 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | { 16 | throw new NotImplementedException(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 4 | { 5 | /// 6 | /// Use this attribute to change the name of the generated for a type. 7 | /// 8 | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)] 9 | public sealed class ModelNameAttribute : Attribute 10 | { 11 | public ModelNameAttribute(string name) 12 | { 13 | Name = name; 14 | } 15 | 16 | public string Name { get; private set; } 17 | } 18 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace MyShuttle.Diagnostics.Service 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilterLib.Win10/PhotoFilterLib.Win10.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | f34f3a57-38c8-4c6a-bf22-53279ab49dca 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/NotNullBoolToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | using System.Windows.Data; 4 | 5 | namespace MyShuttle.Client.Desktop.Converters 6 | { 7 | public class NotNullToVisibilityConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 10 | { 11 | return value != null ? Visibility.Visible : Visibility.Collapsed; 12 | } 13 | 14 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | { 16 | throw new NotImplementedException(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/BoolToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | using System.Windows.Data; 4 | 5 | namespace MyShuttle.Client.Desktop.Converters 6 | { 7 | public class BoolToVisibilityConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 10 | { 11 | return value is bool && (bool)value ? Visibility.Visible : Visibility.Collapsed; 12 | } 13 | 14 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | { 16 | throw new NotImplementedException(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/NotBoolToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | using System.Windows.Data; 4 | 5 | namespace MyShuttle.Client.Desktop.Converters 6 | { 7 | public class NotBoolToVisibilityConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 10 | { 11 | return value is bool && (bool)value ? Visibility.Collapsed : Visibility.Visible; 12 | } 13 | 14 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | { 16 | throw new NotImplementedException(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/ResourceModel.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 3 | @model ModelDescription 4 | 5 | 6 |
7 | 14 |

@Model.Name

15 |

@Model.Documentation

16 |
17 | @Html.DisplayFor(m => Model) 18 |
19 |
20 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/IDriversService.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ServiceAgents 3 | { 4 | using DocumentResponse; 5 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 6 | using System.Collections.Generic; 7 | using System.Threading.Tasks; 8 | 9 | //public interface IDriversService : IUpdatableUrl 10 | //{ 11 | // Driver GetDriver(int driverId); 12 | 13 | // Task> GetAsync(string filter, int pageSize, int pageCount); 14 | 15 | // Task GetCountAsync(string filter); 16 | 17 | // Task PostAsync(Driver driver); 18 | 19 | // Task PutAsync(Driver driver); 20 | 21 | // Task DeleteAsync(int driverId); 22 | //} 23 | } 24 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Mvc; 7 | using System.Web.Optimization; 8 | using System.Web.Routing; 9 | 10 | namespace MyShuttle.Client.Web 11 | { 12 | public class MvcApplication : System.Web.HttpApplication 13 | { 14 | protected void Application_Start() 15 | { 16 | AreaRegistration.RegisterAllAreas(); 17 | GlobalConfiguration.Configure(WebApiConfig.Register); 18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 19 | RouteConfig.RegisterRoutes(RouteTable.Routes); 20 | BundleConfig.RegisterBundles(BundleTable.Bundles); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/Api.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using AndrewsApp.Web.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath; 8 | } 9 | 10 | 11 |
12 | 19 |
20 | @Html.DisplayForModel() 21 |
22 |
23 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Mvc; 7 | using System.Web.Optimization; 8 | using System.Web.Routing; 9 | 10 | namespace AndrewsApp.Web 11 | { 12 | public class WebApiApplication : System.Web.HttpApplication 13 | { 14 | protected void Application_Start() 15 | { 16 | AreaRegistration.RegisterAllAreas(); 17 | GlobalConfiguration.Configure(WebApiConfig.Register); 18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 19 | RouteConfig.RegisterRoutes(RouteTable.Routes); 20 | BundleConfig.RegisterBundles(BundleTable.Bundles); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Http; 6 | using System.Web.Mvc; 7 | using System.Web.Optimization; 8 | using System.Web.Routing; 9 | 10 | namespace MyShuttle.Diagnostics.Service 11 | { 12 | public class WebApiApplication : System.Web.HttpApplication 13 | { 14 | protected void Application_Start() 15 | { 16 | AreaRegistration.RegisterAllAreas(); 17 | GlobalConfiguration.Configure(WebApiConfig.Register); 18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); 19 | RouteConfig.RegisterRoutes(RouteTable.Routes); 20 | BundleConfig.RegisterBundles(BundleTable.Bundles); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/EmployeesService.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.ServiceAgents 2 | { 3 | using System; 4 | using System.Threading.Tasks; 5 | using DocumentResponse; 6 | using System.Globalization; 7 | using Services; 8 | 9 | internal class EmployeesService : BaseRequest, IEmployeesService 10 | { 11 | public EmployeesService(string urlPrefix, string securityToken) 12 | : base(urlPrefix, securityToken) 13 | { 14 | 15 | } 16 | 17 | public async Task GetMyProfileAsync() 18 | { 19 | string url = String.Format(CultureInfo.InvariantCulture 20 | , "{0}employees/myprofile", _urlPrefix); 21 | 22 | return await base.GetAsync(url); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/Api.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.Models 3 | @model HelpPageApiModel 4 | 5 | @{ 6 | var description = Model.ApiDescription; 7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath; 8 | } 9 | 10 | 11 |
12 | 19 |
20 | @Html.DisplayForModel() 21 |
22 |
23 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/HelpPageAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | 4 | namespace AndrewsApp.Web.Areas.HelpPage 5 | { 6 | public class HelpPageAreaRegistration : AreaRegistration 7 | { 8 | public override string AreaName 9 | { 10 | get 11 | { 12 | return "HelpPage"; 13 | } 14 | } 15 | 16 | public override void RegisterArea(AreaRegistrationContext context) 17 | { 18 | context.MapRoute( 19 | "HelpPage_Default", 20 | "Help/{action}/{apiId}", 21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 22 | 23 | HelpPageConfig.Register(GlobalConfiguration.Configuration); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/Customer.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.DocumentResponse 3 | { 4 | using System.Collections.Generic; 5 | 6 | public class Customer 7 | { 8 | public int CustomerId { get; set; } 9 | 10 | public string Name { get; set; } 11 | 12 | public string CompanyID { get; set; } 13 | 14 | 15 | public string Address { get; set; } 16 | 17 | 18 | public string ZipCode { get; set; } 19 | 20 | 21 | public string City { get; set; } 22 | 23 | 24 | public string State { get; set; } 25 | 26 | 27 | public string Country { get; set; } 28 | 29 | 30 | public string Phone { get; set; } 31 | 32 | 33 | public string Email { get; set; } 34 | 35 | 36 | public ICollection Employees { get; set; } 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model EnumTypeModelDescription 3 | 4 |

Possible enumeration values:

5 | 6 | 7 | 8 | 9 | 10 | 11 | @foreach (EnumValueDescription value in Model.Values) 12 | { 13 | 14 | 15 | 18 | 21 | 22 | } 23 | 24 |
NameValueDescription
@value.Name 16 |

@value.Value

17 |
19 |

@value.Documentation

20 |
-------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/Interfaces/IRidesService.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.ServiceAgents 3 | { 4 | using DocumentResponse; 5 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 6 | using Services.Interfaces; 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Threading.Tasks; 10 | 11 | public interface IRidesService : IUpdatableUrl 12 | { 13 | Task GetAsync(int rideId); 14 | 15 | Task> GetAsync(int? driverId, int? vehicleId, int pageSize, int pageCount); 16 | 17 | Task GetCountAsync(int? driverId, int? vehicleId); 18 | 19 | Task> GetMyRidesAsync(int count); 20 | 21 | Task> GetCompanyRidesAsync(int comanyId); 22 | 23 | Task PutAsync(Ride ride); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/HelpPageAreaRegistration.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Http; 2 | using System.Web.Mvc; 3 | 4 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage 5 | { 6 | public class HelpPageAreaRegistration : AreaRegistration 7 | { 8 | public override string AreaName 9 | { 10 | get 11 | { 12 | return "HelpPage"; 13 | } 14 | } 15 | 16 | public override void RegisterArea(AreaRegistrationContext context) 17 | { 18 | context.MapRoute( 19 | "HelpPage_Default", 20 | "Help/{action}/{apiId}", 21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional }); 22 | 23 | HelpPageConfig.Register(GlobalConfiguration.Configuration); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/SendCode.cshtml: -------------------------------------------------------------------------------- 1 | @model MyShuttle.Client.Web.Models.SendCodeViewModel 2 | @{ 3 | ViewBag.Title = "Send"; 4 | } 5 | 6 |

@ViewBag.Title.

7 | 8 | @using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { 9 | @Html.AntiForgeryToken() 10 | @Html.Hidden("rememberMe", @Model.RememberMe) 11 |

Send verification code

12 |
13 |
14 |
15 | Select Two-Factor Authentication Provider: 16 | @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers) 17 | 18 |
19 |
20 | } 21 | 22 | @section Scripts { 23 | @Scripts.Render("~/bundles/jqueryval") 24 | } 25 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model EnumTypeModelDescription 3 | 4 |

Possible enumeration values:

5 | 6 | 7 | 8 | 9 | 10 | 11 | @foreach (EnumValueDescription value in Model.Values) 12 | { 13 | 14 | 15 | 18 | 21 | 22 | } 23 | 24 |
NameValueDescription
@value.Name 16 |

@value.Value

17 |
19 |

@value.Documentation

20 |
-------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/Interfaces/IVehiclesService.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace MyShuttle.Client.Services.Interfaces 6 | { 7 | public interface IVehiclesService : IUpdatableUrl 8 | { 9 | Task GetAsync(int vehicleId); 10 | 11 | Task> GetAsync(string filter, int pageSize, int pageCount); 12 | 13 | Task GetCountAsync(string filter); 14 | 15 | Task PostAsync(Vehicle vehicle); 16 | 17 | Task PutAsync(Vehicle vehicle); 18 | 19 | Task DeleteAsync(int vehicleId); 20 | 21 | Task> GetByPriceAsync(double latitude, double longitude, int count); 22 | 23 | Task> GetByDistanceAsync(double latitude, double longitude, int count); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | /*padding-top: 50px; 3 | padding-bottom: 20px;*/ 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Override the default bootstrap behavior where horizontal description lists 13 | will truncate terms that are too long to fit in the left column 14 | */ 15 | .dl-horizontal dt { 16 | white-space: normal; 17 | } 18 | 19 | /* Set width on the form input elements since they're 100% wide by default */ 20 | input, 21 | select, 22 | textarea { 23 | max-width: 280px; 24 | } 25 | 26 | .vehicleList { 27 | list-style-type: none; 28 | } 29 | 30 | .header-text{ 31 | color: #CCCCCC; 32 | padding-left: 14px; 33 | } 34 | 35 | .header-banner{ 36 | padding-top: 10px; 37 | } 38 | 39 | .spacer { 40 | margin-top:30px; 41 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/Base/NavegableViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.ViewModels.Behavoirs; 2 | using System.Windows.Input; 3 | 4 | namespace MyShuttle.Client.Core.ViewModels.Base 5 | { 6 | public class NavegableViewModel : ICanGoBackViewModel 7 | { 8 | private ICommand _goBackCommand = null; 9 | 10 | public ICommand GoBackCommand 11 | { 12 | get 13 | { 14 | return this._goBackCommand; 15 | } 16 | } 17 | 18 | public NavegableViewModel() 19 | { 20 | InitializeCommands(); 21 | } 22 | 23 | private void InitializeCommands() 24 | { 25 | //this._goBackCommand = new MvxCommand(this.GoBack); 26 | } 27 | 28 | //private void GoBack() 29 | //{ 30 | // Close(this); 31 | //} 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/SumConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Data; 7 | 8 | namespace MyShuttle.Client.Desktop.Converters 9 | { 10 | public class SumConverter : IMultiValueConverter 11 | { 12 | public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 13 | { 14 | if (values != null && values.Length == 2 && values[0] is double && values[1] is double) 15 | { 16 | return (double)values[0] + (double)values[1]; 17 | } 18 | return null; 19 | } 20 | 21 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture) 22 | { 23 | throw new NotImplementedException(); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/NullToBoolWithOptionalInverseConverter.cs: -------------------------------------------------------------------------------- 1 | //using Cirrious.CrossCore.Converters; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MyShuttle.Client.Core.Converters 9 | { 10 | //public class NullToBoolWithOptionalInverseConverter : MvxValueConverter 11 | //{ 12 | // public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 13 | // { 14 | // var returnValue = value == null; 15 | 16 | // if (parameter is bool) 17 | // { 18 | // var inverse = (bool)parameter; 19 | 20 | // if (inverse) 21 | // { 22 | // returnValue = !returnValue; 23 | // } 24 | // } 25 | 26 | // return returnValue; 27 | // } 28 | //} 29 | } 30 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/Carrier.cs: -------------------------------------------------------------------------------- 1 | 2 | 3 | namespace MyShuttle.Client.Core.DocumentResponse 4 | { 5 | using System.Collections.Generic; 6 | 7 | public class Carrier 8 | { 9 | public int CarrierId { get; set; } 10 | 11 | public string Name { get; set; } 12 | 13 | public string Description { get; set; } 14 | 15 | public string CompanyID { get; set; } 16 | 17 | public string Address { get; set; } 18 | 19 | public string ZipCode { get; set; } 20 | 21 | public string City { get; set; } 22 | 23 | public string State { get; set; } 24 | 25 | public string Country { get; set; } 26 | 27 | public string Phone { get; set; } 28 | 29 | public string Email { get; set; } 30 | 31 | public byte[] Picture { get; set; } 32 | 33 | public ICollection Vehicles { get; set; } 34 | 35 | public ICollection Drivers { get; set; } 36 | } 37 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/SumHalfOfConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Data; 7 | 8 | namespace MyShuttle.Client.Desktop.Converters 9 | { 10 | public class SumHalfOfConverter : IMultiValueConverter 11 | { 12 | public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 13 | { 14 | if (values != null && values.Length == 2 && values[0] is double && values[1] is double) 15 | { 16 | return (double)values[0] + ((double)values[1] / 2); 17 | } 18 | return null; 19 | } 20 | 21 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture) 22 | { 23 | throw new NotImplementedException(); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Instrumentation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Diagnostics; 7 | using Windows.Foundation.Diagnostics; 8 | using System.Diagnostics.Tracing; 9 | 10 | namespace PhotoFilter 11 | { 12 | class MyLoggingChannel 13 | { 14 | static LoggingChannel _loggingChannel = new LoggingChannel("MyLoggingChannel"); 15 | public static void Trace(string message) 16 | { 17 | _loggingChannel.LogMessage(message, LoggingLevel.Information); 18 | } 19 | } 20 | 21 | class PerfTipsEventSource : EventSource 22 | { 23 | public void StartMeasure() 24 | { 25 | WriteEvent(1); 26 | } 27 | public void StopMeasure() 28 | { 29 | WriteEvent(2); 30 | } 31 | public static PerfTipsEventSource Log = new PerfTipsEventSource(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Shared/_LoginPartial.cshtml: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNet.Identity 2 | @if (Request.IsAuthenticated) 3 | { 4 | using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) 5 | { 6 | @Html.AntiForgeryToken() 7 | 8 | 14 | } 15 | } 16 | else 17 | { 18 | 22 | } 23 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Utilities/DriverCache.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using Newtonsoft.Json; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using MyShuttle.Client.SharedLibrary.Cache; 9 | 10 | public class DriverCache 11 | { 12 | private Dictionary m_cache = new Dictionary(); 13 | 14 | public void AddDriverToCache(string key, Driver driver) 15 | { 16 | //var driverInfo = JsonConvert.DeserializeObject(key); 17 | //key = driverInfo.id.ToString(); 18 | 19 | m_cache[key] = driver; 20 | } 21 | 22 | public Driver GetDriverFromCache(string key) 23 | { 24 | //var driverInfo = JsonConvert.DeserializeObject(key); 25 | //key = driverInfo.id.ToString(); 26 | 27 | Driver driver = null; 28 | m_cache.TryGetValue(key, out driver); 29 | return driver; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/VehicleStatusToBoolConverter.cs: -------------------------------------------------------------------------------- 1 | //using Cirrious.CrossCore.Converters; 2 | using MyShuttle.Client.Core.DocumentResponse; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using System.Windows.Data; 9 | using System.Globalization; 10 | 11 | namespace MyShuttle.Client.Core.Converters 12 | { 13 | public class VehicleStatusToBoolConverter : IValueConverter 14 | { 15 | object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture) 16 | { 17 | var compValue = (VehicleStatus)value; 18 | var vehicleNotFree = compValue != VehicleStatus.Free; 19 | 20 | return vehicleNotFree; 21 | } 22 | 23 | object IValueConverter.ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 24 | { 25 | throw new NotImplementedException(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Manage/AddPhoneNumber.cshtml: -------------------------------------------------------------------------------- 1 | @model MyShuttle.Client.Web.Models.AddPhoneNumberViewModel 2 | @{ 3 | ViewBag.Title = "Phone Number"; 4 | } 5 | 6 |

@ViewBag.Title.

7 | 8 | @using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 9 | { 10 | @Html.AntiForgeryToken() 11 |

Add a phone number

12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" }) 14 |
15 | @Html.LabelFor(m => m.Number, new { @class = "col-md-2 control-label" }) 16 |
17 | @Html.TextBoxFor(m => m.Number, new { @class = "form-control" }) 18 |
19 |
20 |
21 |
22 | 23 |
24 |
25 | } 26 | 27 | @section Scripts { 28 | @Scripts.Render("~/bundles/jqueryval") 29 | } 30 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Web.Http; 7 | 8 | namespace MyShuttle.Diagnostics.Service.Controllers 9 | { 10 | [Authorize] 11 | public class ValuesController : ApiController 12 | { 13 | // GET api/values 14 | public IEnumerable Get() 15 | { 16 | return new string[] { "value1", "value2" }; 17 | } 18 | 19 | // GET api/values/5 20 | public string Get(int id) 21 | { 22 | return "value"; 23 | } 24 | 25 | // POST api/values 26 | public void Post([FromBody]string value) 27 | { 28 | } 29 | 30 | // PUT api/values/5 31 | public void Put(int id, [FromBody]string value) 32 | { 33 | } 34 | 35 | // DELETE api/values/5 36 | public void Delete(int id) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/ForgotPassword.cshtml: -------------------------------------------------------------------------------- 1 | @model MyShuttle.Client.Web.Models.ForgotPasswordViewModel 2 | @{ 3 | ViewBag.Title = "Forgot your password?"; 4 | } 5 | 6 |

@ViewBag.Title.

7 | 8 | @using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 9 | { 10 | @Html.AntiForgeryToken() 11 |

Enter your email.

12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" }) 14 |
15 | @Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label" }) 16 |
17 | @Html.TextBoxFor(m => m.Email, new { @class = "form-control" }) 18 |
19 |
20 |
21 |
22 | 23 |
24 |
25 | } 26 | 27 | @section Scripts { 28 | @Scripts.Render("~/bundles/jqueryval") 29 | } 30 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/Driver.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace MyShuttle.Client.Core.DocumentResponse 3 | { 4 | using System.Collections.Generic; 5 | 6 | 7 | public class Driver 8 | { 9 | public int DriverId { get; set; } 10 | 11 | public string Name { get; set; } 12 | 13 | public string Phone { get; set; } 14 | 15 | public byte[] Picture { get; set; } 16 | 17 | public string PictureUrl { get; set; } 18 | 19 | public int CarrierId { get; set; } 20 | 21 | public Carrier Carrier { get; set; } 22 | 23 | public int? VehicleId { get; set; } 24 | 25 | public double RatingAvg { get; set; } 26 | 27 | public int TotalRides { get; set; } 28 | 29 | public Vehicle Vehicle { get; set; } 30 | 31 | public ICollection Rides { get; set; } 32 | 33 | public byte[] PictureContents { get; set; } 34 | 35 | //public override string ToString() 36 | //{ 37 | // return $"DriverID: {DriverId}, Name: {Name}"; 38 | //} 39 | } 40 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net.Http; 5 | using System.Web.Http; 6 | using Microsoft.Owin.Security.OAuth; 7 | using Newtonsoft.Json.Serialization; 8 | 9 | namespace AndrewsApp.Web 10 | { 11 | public static class WebApiConfig 12 | { 13 | public static void Register(HttpConfiguration config) 14 | { 15 | // Web API configuration and services 16 | // Configure Web API to use only bearer token authentication. 17 | config.SuppressDefaultHostAuthentication(); 18 | config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType)); 19 | 20 | // Web API routes 21 | config.MapHttpAttributeRoutes(); 22 | 23 | config.Routes.MapHttpRoute( 24 | name: "DefaultApi", 25 | routeTemplate: "api/{controller}/{id}", 26 | defaults: new { id = RouteParameter.Optional } 27 | ); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Shared/PhotoFilter.Shared.shproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | d395f465-d0d5-4584-82d7-b1cded6b0d67 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Controls/Star.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Net.Http.Headers 2 | @model Dictionary 3 | 4 | @{ 5 | // Group the samples into a single tab if they are the same. 6 | Dictionary samples = Model.GroupBy(pair => pair.Value).ToDictionary( 7 | pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()), 8 | pair => pair.Key); 9 | var mediaTypes = samples.Keys; 10 | } 11 |
12 | @foreach (var mediaType in mediaTypes) 13 | { 14 |

@mediaType

15 |
16 | Sample: 17 | @{ 18 | var sample = samples[mediaType]; 19 | if (sample == null) 20 | { 21 |

Sample not available.

22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |
29 | } 30 |
-------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/WebApiConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net.Http; 5 | using System.Web.Http; 6 | using Microsoft.Owin.Security.OAuth; 7 | using Newtonsoft.Json.Serialization; 8 | 9 | namespace MyShuttle.Diagnostics.Service 10 | { 11 | public static class WebApiConfig 12 | { 13 | public static void Register(HttpConfiguration config) 14 | { 15 | // Web API configuration and services 16 | // Configure Web API to use only bearer token authentication. 17 | config.SuppressDefaultHostAuthentication(); 18 | config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType)); 19 | 20 | // Web API routes 21 | config.MapHttpAttributeRoutes(); 22 | 23 | config.Routes.MapHttpRoute( 24 | name: "DefaultApi", 25 | routeTemplate: "api/{controller}/{id}", 26 | defaults: new { id = RouteParameter.Optional } 27 | ); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Shared/PhotoFilter.Shared.projitems: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | true 6 | d395f465-d0d5-4584-82d7-b1cded6b0d67 7 | 8 | 9 | PhotoFilter 10 | 11 | 12 | 13 | Designer 14 | 15 | 16 | App.xaml 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/SampleGeneration/TextSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. 7 | /// 8 | public class TextSample 9 | { 10 | public TextSample(string text) 11 | { 12 | if (text == null) 13 | { 14 | throw new ArgumentNullException("text"); 15 | } 16 | Text = text; 17 | } 18 | 19 | public string Text { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | TextSample other = obj as TextSample; 24 | return other != null && Text == other.Text; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return Text.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Text; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Net.Http.Headers 2 | @model Dictionary 3 | 4 | @{ 5 | // Group the samples into a single tab if they are the same. 6 | Dictionary samples = Model.GroupBy(pair => pair.Value).ToDictionary( 7 | pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()), 8 | pair => pair.Key); 9 | var mediaTypes = samples.Keys; 10 | } 11 |
12 | @foreach (var mediaType in mediaTypes) 13 | { 14 |

@mediaType

15 |
16 | Sample: 17 | @{ 18 | var sample = samples[mediaType]; 19 | if (sample == null) 20 | { 21 |

Sample not available.

22 | } 23 | else 24 | { 25 | @Html.DisplayFor(s => sample); 26 | } 27 | } 28 |
29 | } 30 |
-------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/PriceToStringConverter.cs: -------------------------------------------------------------------------------- 1 | //using Cirrious.CrossCore.Converters; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Globalization; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace MyShuttle.Client.Core.Converters 10 | { 11 | //public class PriceToStringConverter : MvxValueConverter 12 | //{ 13 | // protected override string Convert(double value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 14 | // { 15 | // var returnValue = string.Format("{0}", value.ToString(CultureInfo.InvariantCulture)); 16 | 17 | // if (parameter != null && (parameter is bool)) 18 | // { 19 | // var withoutDollarSign = (bool)parameter; 20 | 21 | // if (!withoutDollarSign) 22 | // { 23 | // returnValue = "$" + returnValue; 24 | // } 25 | // } 26 | 27 | // return returnValue; 28 | // } 29 | //} 30 | } 31 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml: -------------------------------------------------------------------------------- 1 | @using AndrewsApp.Web.Areas.HelpPage.ModelDescriptions 2 | @model Type 3 | @{ 4 | ModelDescription modelDescription = ViewBag.modelDescription; 5 | if (modelDescription is ComplexTypeModelDescription || modelDescription is EnumTypeModelDescription) 6 | { 7 | if (Model == typeof(Object)) 8 | { 9 | @:Object 10 | } 11 | else 12 | { 13 | @Html.ActionLink(modelDescription.Name, "ResourceModel", "Help", new { modelName = modelDescription.Name }, null) 14 | } 15 | } 16 | else if (modelDescription is CollectionModelDescription) 17 | { 18 | var collectionDescription = modelDescription as CollectionModelDescription; 19 | var elementDescription = collectionDescription.ElementDescription; 20 | @:Collection of @Html.DisplayFor(m => elementDescription.ModelType, "ModelDescriptionLink", new { modelDescription = elementDescription }) 21 | } 22 | else 23 | { 24 | @Html.DisplayFor(m => modelDescription) 25 | } 26 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Results/ChallengeResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Threading; 7 | using System.Threading.Tasks; 8 | using System.Web.Http; 9 | 10 | namespace AndrewsApp.Web.Results 11 | { 12 | public class ChallengeResult : IHttpActionResult 13 | { 14 | public ChallengeResult(string loginProvider, ApiController controller) 15 | { 16 | LoginProvider = loginProvider; 17 | Request = controller.Request; 18 | } 19 | 20 | public string LoginProvider { get; set; } 21 | public HttpRequestMessage Request { get; set; } 22 | 23 | public Task ExecuteAsync(CancellationToken cancellationToken) 24 | { 25 | Request.GetOwinContext().Authentication.Challenge(LoginProvider); 26 | 27 | HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.Unauthorized); 28 | response.RequestMessage = Request; 29 | return Task.FromResult(response); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/SampleGeneration/TextSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. 7 | /// 8 | public class TextSample 9 | { 10 | public TextSample(string text) 11 | { 12 | if (text == null) 13 | { 14 | throw new ArgumentNullException("text"); 15 | } 16 | Text = text; 17 | } 18 | 19 | public string Text { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | TextSample other = obj as TextSample; 24 | return other != null && Text == other.Text; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return Text.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return Text; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/ImageDataConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Windows.Data; 4 | using System.Windows.Media.Imaging; 5 | 6 | namespace MyShuttle.Client.Desktop.Converters 7 | { 8 | public class ImageDataConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 11 | { 12 | var pictureBytes = value as byte[]; 13 | if (pictureBytes != null) 14 | { 15 | var data = pictureBytes; 16 | var image = new BitmapImage(); 17 | image.BeginInit(); 18 | image.StreamSource = new MemoryStream(data); 19 | image.EndInit(); 20 | image.Freeze(); 21 | return image; 22 | } 23 | return null; 24 | } 25 | 26 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 27 | { 28 | throw new NotImplementedException(); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Manage/VerifyPhoneNumber.cshtml: -------------------------------------------------------------------------------- 1 | @model MyShuttle.Client.Web.Models.VerifyPhoneNumberViewModel 2 | @{ 3 | ViewBag.Title = "Verify Phone Number"; 4 | } 5 | 6 |

@ViewBag.Title.

7 | 8 | @using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) 9 | { 10 | @Html.AntiForgeryToken() 11 | @Html.Hidden("phoneNumber", @Model.PhoneNumber) 12 |

Enter verification code

13 |
@ViewBag.Status
14 |
15 | @Html.ValidationSummary("", new { @class = "text-danger" }) 16 |
17 | @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" }) 18 |
19 | @Html.TextBoxFor(m => m.Code, new { @class = "form-control" }) 20 |
21 |
22 |
23 |
24 | 25 |
26 |
27 | } 28 | 29 | @section Scripts { 30 | @Scripts.Render("~/bundles/jqueryval") 31 | } 32 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Controllers/DriversController.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using MyShuttle.Client.SharedLibrary; 3 | using MyShuttle.Diagnostics.Service.Models; 4 | using Newtonsoft.Json; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Net; 9 | using System.Net.Http; 10 | using System.Threading; 11 | using System.Web.Http; 12 | using System.Web.Http.Results; 13 | 14 | namespace MyShuttle.Diagnostics.Service.Controllers 15 | { 16 | public class DriversController : ApiController 17 | { 18 | public JsonResult> Get() 19 | { 20 | //Thread.Sleep(2000); 21 | var drivers = VehiclesModel.Drivers.Values.ToList(); 22 | for (int i = 0; i < 100000; i++) 23 | { 24 | Driver a = new Driver(); 25 | a.DriverId = Guid.NewGuid().GetHashCode(); 26 | a.Name = Guid.NewGuid().ToString(); 27 | drivers.Add(a); 28 | } 29 | 30 | var json = this.Json(drivers); 31 | return json; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Microsoft 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml: -------------------------------------------------------------------------------- 1 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.ModelDescriptions 2 | @model Type 3 | @{ 4 | ModelDescription modelDescription = ViewBag.modelDescription; 5 | if (modelDescription is ComplexTypeModelDescription || modelDescription is EnumTypeModelDescription) 6 | { 7 | if (Model == typeof(Object)) 8 | { 9 | @:Object 10 | } 11 | else 12 | { 13 | @Html.ActionLink(modelDescription.Name, "ResourceModel", "Help", new { modelName = modelDescription.Name }, null) 14 | } 15 | } 16 | else if (modelDescription is CollectionModelDescription) 17 | { 18 | var collectionDescription = modelDescription as CollectionModelDescription; 19 | var elementDescription = collectionDescription.ElementDescription; 20 | @:Collection of @Html.DisplayFor(m => elementDescription.ModelType, "ModelDescriptionLink", new { modelDescription = elementDescription }) 21 | } 22 | else 23 | { 24 | @Html.DisplayFor(m => modelDescription) 25 | } 26 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Results/ChallengeResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net; 5 | using System.Net.Http; 6 | using System.Threading; 7 | using System.Threading.Tasks; 8 | using System.Web.Http; 9 | 10 | namespace MyShuttle.Diagnostics.Service.Results 11 | { 12 | public class ChallengeResult : IHttpActionResult 13 | { 14 | public ChallengeResult(string loginProvider, ApiController controller) 15 | { 16 | LoginProvider = loginProvider; 17 | Request = controller.Request; 18 | } 19 | 20 | public string LoginProvider { get; set; } 21 | public HttpRequestMessage Request { get; set; } 22 | 23 | public Task ExecuteAsync(CancellationToken cancellationToken) 24 | { 25 | Request.GetOwinContext().Authentication.Challenge(LoginProvider); 26 | 27 | HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.Unauthorized); 28 | response.RequestMessage = Request; 29 | return Task.FromResult(response); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ViewModels/VehiclesByPriceViewModel.cs: -------------------------------------------------------------------------------- 1 | using MyShuttle.Client.Core.DocumentResponse; 2 | using MyShuttle.Client.Core.Infrastructure.Abstractions.Services; 3 | using MyShuttle.Client.Core.ServiceAgents.Interfaces; 4 | using System.Collections.ObjectModel; 5 | using System.Threading.Tasks; 6 | 7 | namespace MyShuttle.Client.Core.ViewModels 8 | { 9 | public class VehiclesByPriceViewModel : VehiclesViewModelBase, IVehiclesByPriceViewModel 10 | { 11 | public VehiclesByPriceViewModel( 12 | IMyShuttleClient myShuttleClient, 13 | ILocationServiceSingleton locationService, 14 | IApplicationSettingServiceSingleton applicationSettingService) 15 | : base(myShuttleClient, locationService, applicationSettingService) 16 | { 17 | } 18 | 19 | protected override async Task LoadFilteredVehiclesAsync() 20 | { 21 | FilteredVehicles = new ObservableCollection(await MyShuttleClient.VehiclesService.GetByPriceAsync(CurrentLocation.Latitude, CurrentLocation.Longitude, ApplicationSettingService.TopListItemsCount)); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Converters/RectConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Data; 8 | using System.Windows.Shapes; 9 | 10 | namespace MyShuttle.Client.Desktop.Converters 11 | { 12 | public class RectConverter : IMultiValueConverter 13 | { 14 | public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | { 16 | if (values != null && values.Length == 4 && values[0] is double && values[1] is double && values[2] is double && values[3] is double) 17 | { 18 | var rect = new Rect(new Point((double)values[0], (double)values[1]), new Size((double)values[2], (double)values[3])); 19 | return rect; 20 | } 21 | return null; 22 | } 23 | 24 | public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture) 25 | { 26 | throw new NotImplementedException(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/SampleGeneration/InvalidSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. 7 | /// 8 | public class InvalidSample 9 | { 10 | public InvalidSample(string errorMessage) 11 | { 12 | if (errorMessage == null) 13 | { 14 | throw new ArgumentNullException("errorMessage"); 15 | } 16 | ErrorMessage = errorMessage; 17 | } 18 | 19 | public string ErrorMessage { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | InvalidSample other = obj as InvalidSample; 24 | return other != null && ErrorMessage == other.ErrorMessage; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return ErrorMessage.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return ErrorMessage; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PhotoFilter.Win10")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PhotoFilter.Win10")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Controllers/SlowValuesController.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 5 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 6 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 7 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 8 | // 9 | //********************************************************* 10 | 11 | using System.Collections.Generic; 12 | using System.Web.Http; 13 | 14 | namespace ProjectArchive.Web.Controllers 15 | { 16 | public class SlowValuesController : ApiController 17 | { 18 | const int WaitTime = 1500; 19 | ValuesController values = new ValuesController(); 20 | 21 | public IEnumerable Get() 22 | { 23 | System.Threading.Thread.Sleep(WaitTime); 24 | return values.Get(); 25 | } 26 | 27 | // GET api/values/5 28 | public IEnumerable Get(string encodedType) 29 | { 30 | System.Threading.Thread.Sleep(WaitTime); 31 | return values.Get(encodedType); 32 | } 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Models/AccountViewModels.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace AndrewsApp.Web.Models 5 | { 6 | // Models returned by AccountController actions. 7 | 8 | public class ExternalLoginViewModel 9 | { 10 | public string Name { get; set; } 11 | 12 | public string Url { get; set; } 13 | 14 | public string State { get; set; } 15 | } 16 | 17 | public class ManageInfoViewModel 18 | { 19 | public string LocalLoginProvider { get; set; } 20 | 21 | public string Email { get; set; } 22 | 23 | public IEnumerable Logins { get; set; } 24 | 25 | public IEnumerable ExternalLoginProviders { get; set; } 26 | } 27 | 28 | public class UserInfoViewModel 29 | { 30 | public string Email { get; set; } 31 | 32 | public bool HasRegistered { get; set; } 33 | 34 | public string LoginProvider { get; set; } 35 | } 36 | 37 | public class UserLoginInfoViewModel 38 | { 39 | public string LoginProvider { get; set; } 40 | 41 | public string ProviderKey { get; set; } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PhotoFilter.Windows")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PhotoFilter.Windows")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.WPF/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.0 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace ProjectArchive.WPF.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Models/AccountViewModels.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MyShuttle.Diagnostics.Service.Models 5 | { 6 | // Models returned by AccountController actions. 7 | 8 | public class ExternalLoginViewModel 9 | { 10 | public string Name { get; set; } 11 | 12 | public string Url { get; set; } 13 | 14 | public string State { get; set; } 15 | } 16 | 17 | public class ManageInfoViewModel 18 | { 19 | public string LocalLoginProvider { get; set; } 20 | 21 | public string Email { get; set; } 22 | 23 | public IEnumerable Logins { get; set; } 24 | 25 | public IEnumerable ExternalLoginProviders { get; set; } 26 | } 27 | 28 | public class UserInfoViewModel 29 | { 30 | public string Email { get; set; } 31 | 32 | public bool HasRegistered { get; set; } 33 | 34 | public string LoginProvider { get; set; } 35 | } 36 | 37 | public class UserLoginInfoViewModel 38 | { 39 | public string LoginProvider { get; set; } 40 | 41 | public string ProviderKey { get; set; } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/SampleGeneration/InvalidSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. 7 | /// 8 | public class InvalidSample 9 | { 10 | public InvalidSample(string errorMessage) 11 | { 12 | if (errorMessage == null) 13 | { 14 | throw new ArgumentNullException("errorMessage"); 15 | } 16 | ErrorMessage = errorMessage; 17 | } 18 | 19 | public string ErrorMessage { get; private set; } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | InvalidSample other = obj as InvalidSample; 24 | return other != null && ErrorMessage == other.ErrorMessage; 25 | } 26 | 27 | public override int GetHashCode() 28 | { 29 | return ErrorMessage.GetHashCode(); 30 | } 31 | 32 | public override string ToString() 33 | { 34 | return ErrorMessage; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.34014 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MyShuttle.Client.Desktop.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/App_Start/BundleConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Optimization; 3 | 4 | namespace AndrewsApp.Web 5 | { 6 | public class BundleConfig 7 | { 8 | // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 9 | public static void RegisterBundles(BundleCollection bundles) 10 | { 11 | bundles.Add(new ScriptBundle("~/bundles/jquery").Include( 12 | "~/Scripts/jquery-{version}.js")); 13 | 14 | // Use the development version of Modernizr to develop with and learn from. Then, when you're 15 | // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. 16 | bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( 17 | "~/Scripts/modernizr-*")); 18 | 19 | bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( 20 | "~/Scripts/bootstrap.js", 21 | "~/Scripts/respond.js")); 22 | 23 | bundles.Add(new StyleBundle("~/Content/css").Include( 24 | "~/Content/bootstrap.css", 25 | "~/Content/site.css")); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Converters/RatingToBoolConverter.cs: -------------------------------------------------------------------------------- 1 | //using Cirrious.CrossCore.Converters; 2 | using MyShuttle.Client.Core.DocumentResponse; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Diagnostics; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace MyShuttle.Client.Core.Converters 11 | { 12 | //public class RatingToBoolConverter : MvxValueConverter 13 | //{ 14 | // protected override bool Convert(double value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 15 | // { 16 | // if (parameter == null) 17 | // { 18 | // // Hide stars by default 19 | // return true; 20 | // } 21 | 22 | // double rateToCompareWith; 23 | 24 | // try 25 | // { 26 | // rateToCompareWith = (long)parameter; 27 | // } 28 | // catch (InvalidCastException) 29 | // { 30 | // rateToCompareWith = (int)parameter; 31 | // } 32 | 33 | // var hideCurrentRate = value < rateToCompareWith; 34 | 35 | // return hideCurrentRate; 36 | // } 37 | //} 38 | } 39 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/Providers/HumanizedDateProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Client.Core.Providers 4 | { 5 | public class HumanizedDateProvider : IFormatProvider, ICustomFormatter 6 | { 7 | public object GetFormat(Type formatType) 8 | { 9 | if (formatType == typeof(ICustomFormatter)) 10 | return this; 11 | 12 | return null; 13 | } 14 | 15 | public string Format(string format, object arg, IFormatProvider formatProvider) 16 | { 17 | if (!(arg is DateTime)) throw new NotSupportedException(); 18 | 19 | var dt = (DateTime)arg; 20 | 21 | string suffix; 22 | 23 | if (dt.Day % 10 == 1) 24 | { 25 | suffix = "st"; 26 | } 27 | else if (dt.Day % 10 == 2) 28 | { 29 | suffix = "nd"; 30 | } 31 | else if (dt.Day % 10 == 3) 32 | { 33 | suffix = "rd"; 34 | } 35 | else 36 | { 37 | suffix = "th"; 38 | } 39 | 40 | return string.Format("{0:MMMM} {1}{2}, {0:yyyy}", arg, dt.Day, suffix); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Controllers/ValuesController.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 5 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 6 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 7 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 8 | // 9 | //********************************************************* 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.Web.Http; 14 | 15 | namespace ProjectArchive.Web.Controllers 16 | { 17 | 18 | //[Authorize] 19 | public class ValuesController : ApiController 20 | { 21 | static AppDataProvider DataProvider = new AppDataProvider(AppDomain.CurrentDomain.BaseDirectory + @"App_Data\"); 22 | 23 | // GET api/values 24 | public IEnumerable Get() 25 | { 26 | var apps = DataProvider.GetAllApps(); 27 | return apps; 28 | } 29 | 30 | // GET api/values/5 31 | public IEnumerable Get(string encodedType) 32 | { 33 | var apps = DataProvider.GetAppsByType(encodedType); 34 | return apps; 35 | } 36 | 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Infrastructure/RelayCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Input; 3 | 4 | namespace MyShuttle.Client.Desktop.Infrastructure 5 | { 6 | public class RelayCommand : ICommand 7 | { 8 | private readonly Action action; 9 | private readonly Func canExecute; 10 | 11 | public RelayCommand(Action action) : this(action, null) 12 | { 13 | } 14 | 15 | public RelayCommand(Action action, Func canExecute) 16 | { 17 | this.action = action; 18 | this.canExecute = canExecute; 19 | } 20 | 21 | public bool CanExecute(object parameter) 22 | { 23 | return canExecute == null || canExecute(); 24 | } 25 | 26 | public event EventHandler CanExecuteChanged; 27 | 28 | public void Execute(object parameter) 29 | { 30 | if (action != null) 31 | { 32 | action(); 33 | } 34 | } 35 | 36 | public void RaiseCanExecutedChanged() 37 | { 38 | var handler = CanExecuteChanged; 39 | if (handler != null) 40 | { 41 | handler(this, new EventArgs()); 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/SampleGeneration/ImageSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace AndrewsApp.Web.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. 7 | /// 8 | public class ImageSample 9 | { 10 | /// 11 | /// Initializes a new instance of the class. 12 | /// 13 | /// The URL of an image. 14 | public ImageSample(string src) 15 | { 16 | if (src == null) 17 | { 18 | throw new ArgumentNullException("src"); 19 | } 20 | Src = src; 21 | } 22 | 23 | public string Src { get; private set; } 24 | 25 | public override bool Equals(object obj) 26 | { 27 | ImageSample other = obj as ImageSample; 28 | return other != null && Src == other.Src; 29 | } 30 | 31 | public override int GetHashCode() 32 | { 33 | return Src.GetHashCode(); 34 | } 35 | 36 | public override string ToString() 37 | { 38 | return Src; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/SampleGeneration/ImageSample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MyShuttle.Diagnostics.Service.Areas.HelpPage 4 | { 5 | /// 6 | /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. 7 | /// 8 | public class ImageSample 9 | { 10 | /// 11 | /// Initializes a new instance of the class. 12 | /// 13 | /// The URL of an image. 14 | public ImageSample(string src) 15 | { 16 | if (src == null) 17 | { 18 | throw new ArgumentNullException("src"); 19 | } 20 | Src = src; 21 | } 22 | 23 | public string Src { get; private set; } 24 | 25 | public override bool Equals(object obj) 26 | { 27 | ImageSample other = obj as ImageSample; 28 | return other != null && Src == other.Src; 29 | } 30 | 31 | public override int GetHashCode() 32 | { 33 | return Src.GetHashCode(); 34 | } 35 | 36 | public override string ToString() 37 | { 38 | return Src; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Areas/HelpPage/Views/Help/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Controllers 3 | @using System.Web.Http.Description 4 | @using System.Collections.ObjectModel 5 | @using AndrewsApp.Web.Areas.HelpPage.Models 6 | @model Collection 7 | 8 | @{ 9 | ViewBag.Title = "ASP.NET Web API Help Page"; 10 | 11 | // Group APIs by controller 12 | ILookup apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor); 13 | } 14 | 15 | 16 |
17 |
18 |
19 |

@ViewBag.Title

20 |
21 |
22 |
23 |
24 | 32 |
33 | @foreach (var group in apiGroups) 34 | { 35 | @Html.DisplayFor(m => group, "ApiGroup") 36 | } 37 |
38 |
39 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.SharedLibrary/DataModel/Vehicle.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MyShuttle.Client.Core.DocumentResponse 4 | { 5 | 6 | public class Vehicle 7 | { 8 | public int VehicleId { get; set; } 9 | 10 | public string LicensePlate { get; set; } 11 | 12 | public string Model { get; set; } 13 | 14 | public string Make { get; set; } 15 | 16 | public byte[] Picture { get; set; } 17 | 18 | public string PictureUrl { get; set; } 19 | 20 | public VehicleType Type { get; set; } 21 | 22 | public int Seats { get; set; } 23 | 24 | public double Latitude { get; set; } 25 | 26 | public double Longitude { get; set; } 27 | 28 | public double DistanceFromGivenPosition { get; set; } 29 | 30 | public VehicleStatus VehicleStatus { get; set; } 31 | 32 | public bool IsSelected { get; set; } 33 | 34 | public int CarrierId { get; set; } 35 | 36 | public Carrier Carrier { get; set; } 37 | 38 | public int DriverId { get; set; } 39 | 40 | public double Rate { get; set; } 41 | 42 | public double RatingAvg { get; set; } 43 | 44 | public int TotalRides { get; set; } 45 | 46 | public Driver Driver { get; set; } 47 | 48 | public ICollection Rides { get; set; } 49 | } 50 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Views/Account/_ExternalLoginsListPartial.cshtml: -------------------------------------------------------------------------------- 1 | @model MyShuttle.Client.Web.Models.ExternalLoginListViewModel 2 | @using Microsoft.Owin.Security 3 | 4 |

Use another service to log in.

5 |
6 | @{ 7 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes(); 8 | if (loginProviders.Count() == 0) { 9 |
10 |

11 | There are no external authentication services configured. See this article 12 | for details on setting up this ASP.NET application to support logging in via external services. 13 |

14 |
15 | } 16 | else { 17 | using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) { 18 | @Html.AntiForgeryToken() 19 |
20 |

21 | @foreach (AuthenticationDescription p in loginProviders) { 22 | 23 | } 24 |

25 |
26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter/PhotoFilter.Windows/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PhotoFilter.Windows 6 | andrehal 7 | Assets\StoreLogo.png 8 | 9 | 10 | 6.3.0 11 | 6.3.0 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Models/IdentityModels.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity; 2 | using System.Security.Claims; 3 | using System.Threading.Tasks; 4 | using Microsoft.AspNet.Identity; 5 | using Microsoft.AspNet.Identity.EntityFramework; 6 | 7 | namespace MyShuttle.Client.Web.Models 8 | { 9 | // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. 10 | public class ApplicationUser : IdentityUser 11 | { 12 | public async Task GenerateUserIdentityAsync(UserManager manager) 13 | { 14 | // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType 15 | var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie); 16 | // Add custom user claims here 17 | return userIdentity; 18 | } 19 | } 20 | 21 | public class ApplicationDbContext : IdentityDbContext 22 | { 23 | public ApplicationDbContext() 24 | : base("DefaultConnection", throwIfV1Schema: false) 25 | { 26 | } 27 | 28 | public static ApplicationDbContext Create() 29 | { 30 | return new ApplicationDbContext(); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/App_Start/Areas/HelpPage/Views/Help/Index.cshtml: -------------------------------------------------------------------------------- 1 | @using System.Web.Http 2 | @using System.Web.Http.Controllers 3 | @using System.Web.Http.Description 4 | @using System.Collections.ObjectModel 5 | @using MyShuttle.Diagnostics.Service.Areas.HelpPage.Models 6 | @model Collection 7 | 8 | @{ 9 | ViewBag.Title = "ASP.NET Web API Help Page"; 10 | 11 | // Group APIs by controller 12 | ILookup apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor); 13 | } 14 | 15 | 16 |
17 |
18 |
19 |

@ViewBag.Title

20 |
21 |
22 |
23 |
24 | 32 |
33 | @foreach (var group in apiGroups) 34 | { 35 | @Html.DisplayFor(m => group, "ApiGroup") 36 | } 37 |
38 |
39 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /PhotoFilter/PhotoFilter.Win10/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Web/Models/IdentityModels.cs: -------------------------------------------------------------------------------- 1 | using System.Security.Claims; 2 | using System.Threading.Tasks; 3 | using Microsoft.AspNet.Identity; 4 | using Microsoft.AspNet.Identity.EntityFramework; 5 | using Microsoft.AspNet.Identity.Owin; 6 | 7 | namespace AndrewsApp.Web.Models 8 | { 9 | // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. 10 | public class ApplicationUser : IdentityUser 11 | { 12 | public async Task GenerateUserIdentityAsync(UserManager manager, string authenticationType) 13 | { 14 | // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType 15 | var userIdentity = await manager.CreateIdentityAsync(this, authenticationType); 16 | // Add custom user claims here 17 | return userIdentity; 18 | } 19 | } 20 | 21 | public class ApplicationDbContext : IdentityDbContext 22 | { 23 | public ApplicationDbContext() 24 | : base("DefaultConnection", throwIfV1Schema: false) 25 | { 26 | } 27 | 28 | public static ApplicationDbContext Create() 29 | { 30 | return new ApplicationDbContext(); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /MyShuttle/MyShuttle.Client.Web/App_Start/BundleConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Optimization; 3 | 4 | namespace MyShuttle.Client.Web 5 | { 6 | public class BundleConfig 7 | { 8 | // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 9 | public static void RegisterBundles(BundleCollection bundles) 10 | { 11 | bundles.Add(new ScriptBundle("~/bundles/jquery").Include( 12 | "~/Scripts/jquery-{version}.js")); 13 | 14 | bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include( 15 | "~/Scripts/jquery.validate*")); 16 | 17 | // Use the development version of Modernizr to develop with and learn from. Then, when you're 18 | // ready for production, use the build tool at http://modernizr.com to pick only the tests you need. 19 | bundles.Add(new ScriptBundle("~/bundles/modernizr").Include( 20 | "~/Scripts/modernizr-*")); 21 | 22 | bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include( 23 | "~/Scripts/bootstrap.js", 24 | "~/Scripts/respond.js")); 25 | 26 | bundles.Add(new StyleBundle("~/Content/css").Include( 27 | "~/Content/bootstrap.css", 28 | "~/Content/site.css")); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Client.Desktop/Core/ServiceAgents/CarriersService.cs: -------------------------------------------------------------------------------- 1 | namespace MyShuttle.Client.Core.ServiceAgents 2 | { 3 | using System; 4 | using System.Threading.Tasks; 5 | using DocumentResponse; 6 | using System.Web; 7 | using System.Globalization; 8 | using Services; 9 | 10 | internal class CarriersService : BaseRequest, ICarriersService 11 | { 12 | public CarriersService(string urlPrefix, string securityToken) 13 | : base(urlPrefix, securityToken) 14 | { 15 | 16 | } 17 | 18 | public async Task GetAsync() 19 | { 20 | string url = String.Format(CultureInfo.InvariantCulture 21 | , "{0}carriers", _urlPrefix); 22 | 23 | return await base.GetAsync(url); 24 | } 25 | 26 | public async Task PostAsync(Carrier carrier) 27 | { 28 | string url = String.Format(CultureInfo.InvariantCulture 29 | , "{0}carriers/Post", _urlPrefix); 30 | 31 | return await base.PostAsync(url, carrier); 32 | } 33 | 34 | public async Task PutAsync(Carrier carrier) 35 | { 36 | string url = String.Format(CultureInfo.InvariantCulture 37 | , "{0}carriers/Put", _urlPrefix); 38 | 39 | await base.PutAsync(url, carrier); 40 | } 41 | 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Project_Archive/ProjectArchive.Test/WebAPITests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | 6 | namespace ProjectArchive.Test 7 | { 8 | [TestClass] 9 | public class WebAPITests 10 | { 11 | static string IISExpressUrl = "http://localhost:10531/"; 12 | AppDataProvider dataProvider = new AppDataProvider(@"..\..\..\ProjectArchive.Web\App_Data\sampledata.json"); 13 | 14 | [TestMethod] 15 | public void AllApps() 16 | { 17 | var apps = dataProvider.GetAllApps(); 18 | 19 | Assert.IsTrue(apps.Count > 0); 20 | } 21 | 22 | [TestMethod] 23 | public void AppsByType() 24 | { 25 | var typesToTest = new string[] {"Web", "Mobile", "desktop" }; 26 | var enc = new StringUtilities(EncodingFormats.Base64); 27 | var allApps = dataProvider.GetAllApps(); 28 | 29 | foreach(var appType in typesToTest) 30 | { 31 | var encodedType = enc.EncodeString(appType); 32 | var apps = dataProvider.GetAppsByType(encodedType); 33 | var appsOfType = allApps.Where(a => a.AppType.Equals(appType, StringComparison.OrdinalIgnoreCase)).ToList(); 34 | 35 | Assert.AreEqual(appsOfType.Count, apps.Count); 36 | } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MyShuttle/src/MyShuttle.Diagnostics.Service/Models/IdentityModels.cs: -------------------------------------------------------------------------------- 1 | using System.Security.Claims; 2 | using System.Threading.Tasks; 3 | using Microsoft.AspNet.Identity; 4 | using Microsoft.AspNet.Identity.EntityFramework; 5 | using Microsoft.AspNet.Identity.Owin; 6 | 7 | namespace MyShuttle.Diagnostics.Service.Models 8 | { 9 | // You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http://go.microsoft.com/fwlink/?LinkID=317594 to learn more. 10 | public class ApplicationUser : IdentityUser 11 | { 12 | public async Task GenerateUserIdentityAsync(UserManager manager, string authenticationType) 13 | { 14 | // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType 15 | var userIdentity = await manager.CreateIdentityAsync(this, authenticationType); 16 | // Add custom user claims here 17 | return userIdentity; 18 | } 19 | } 20 | 21 | public class ApplicationDbContext : IdentityDbContext 22 | { 23 | public ApplicationDbContext() 24 | : base("DefaultConnection", throwIfV1Schema: false) 25 | { 26 | } 27 | 28 | public static ApplicationDbContext Create() 29 | { 30 | return new ApplicationDbContext(); 31 | } 32 | } 33 | } --------------------------------------------------------------------------------