public PlatformStuff() { // detect platform and "wire up? " a provider? // hard code to windows for now _platformStuff = new WindowsPlatformStuff(); }
public HelpPageViewModel(ICurrentlySelectedFactory currentlySelectedFactory, ISendEmailService sendEmailService, IPlatformStuff platformStuff) : base(currentlySelectedFactory) { Title = "Help"; IsBusy = false; Version = platformStuff.GetVersion(); AppName = platformStuff.GetAppName(); this.sendEmailService = sendEmailService; EmailCommand = new Command(Email); AppDetailsCommand = new Command(LaunchWebsite); SelectedUser = currentlySelectedFactory.SelectedUser; }
public ErrorPageViewModel(ICurrentlySelectedFactory currentlySelectedFactory, IPlatformStuff platformStuff) : base(currentlySelectedFactory) { Title = "Error"; IsBusy = false; HTMLSource = HTMLSource ?? new HtmlWebViewSource(); HTMLSource.BaseUrl = platformStuff.GetBaseUrl(); //HTMLSource.BaseUrl = DependencyService.Get<IPlatformStuff>().GetBaseUrl(); HTMLSource.Html = currentlySelectedFactory.SelectedUser.Error.issue; currentlySelectedFactory.SelectedUser.Error = null; }