public ViewIssueCommand(IGitHubClient gitHubClient, IGitHubRepositoryDiscoveryService gitHubRepositoryDiscoveryService, IBrowserService browserService, IReporter reporter) : base(gitHubClient, gitHubRepositoryDiscoveryService) { _browserService = browserService; _reporter = reporter; }
// Constructor public DataViewViewModel(User user, Action <bool> workStatus, IDialogService dialogService, IWindowService windowService, IBrowserService browserService) { this.User = user; this._workStatus = workStatus; this._dialogService = dialogService; this._windowService = windowService; this._browserService = browserService; // 1. Set neccessary columns to show on datagrid Columns = new List <string>() { "Authors", "Keywords", "Year" }; // 2. Initialize articles collection and paging Articles = new ObservableCollection <Article>(); // 3. Set up commands LoadArticlesCommand = new RelayCommand(LoadArticles); OpenFileCommand = new RelayCommand(OpenFile); DeleteArticleCommand = new RelayCommand(DeleteArticle); OpenAddPersonalCommand = new RelayCommand(OpenAddPersonal, IsArticleSelected); OpenEditCommand = new RelayCommand(OpenEditDialog, IsArticleSelected); }
public CartPage(IElementFindService elementFindService, INavigationService navigationService, IBrowserService browserService) : base(elementFindService, navigationService) { _browserService = browserService; BreadcrumbSection = new BreadcrumbSection(elementFindService); CartPageElements = new CartPageElements(elementFindService); }
public WebViewRouter( IComponentModel componentModel, ICodeStreamService codestreamService, IWebviewUserSettingsService webviewUserSettingsService, ISessionService sessionService, ICodeStreamAgentService codeStreamAgent, ISettingsServiceFactory settingsServiceFactory, IEventAggregator eventAggregator, IBrowserService browserService, IIdeService ideService, IEditorService editorService, IAuthenticationServiceFactory authenticationServiceFactory) { _componentModel = componentModel; _codeStreamService = codestreamService; _webviewUserSettingsService = webviewUserSettingsService; _sessionService = sessionService; _codeStreamAgent = codeStreamAgent; _settingsManager = settingsServiceFactory.GetOrCreate(nameof(WebViewRouter)); _eventAggregator = eventAggregator; _browserService = browserService; _ideService = ideService; _editorService = editorService; _authenticationServiceFactory = authenticationServiceFactory; }
public MainOffersViewModel( IWebpageService webpageService, IBrowserService browserService, IMvxNavigationService navigationService, IUnitOfWork unitOfWork, ISnackbarMessageQueue snackbarMessageQueue, IMvxLog logger ) { _webpageService = webpageService; _browserService = browserService; _navigationService = navigationService; _unitOfWork = unitOfWork; SnackbarMessageQueue = snackbarMessageQueue; _logger = logger; Offers = new MvxObservableCollection <OfferViewModel>(); GetDataFromWebpageCommand = new MvxAsyncCommand(GetDataFromWebpage, CanGetDataFromWebpage); NavigateToOfferViewCommand = new MvxAsyncCommand(NavigateToOfferView); UpdatePricesCommand = new MvxAsyncCommand(UpdatePrices, CanUpdatePrices); DeleteCommand = new MvxAsyncCommand(DeleteOffer, CanDeleteOffer); InfoText = "Uruchomiono"; _logger.Debug("test uruchomiono MainOffersViewModel"); }
private void Init() { //if (folder == null) //{ // var win = await FileSystem.GetFolderAsync("C:"); // CurrentFolder = new FileSystemElement(win.Name, win.Path, win.DateCreated, 0); //} BrowserService = new FileBrowserService(FileSystemElements); PathSuggestions = new ObservableCollection <FileSystemElement>(); //For sharing files, only one object for all fileBrowsers if (dataTransferManager == null) { dataTransferManager = DataTransferManager.GetForCurrentView(); dataTransferManager.DataRequested += OnShareRequested; } ViewModes = new ViewMode[] { new ViewMode(ThumbnailMode.ListView, "\uF0E2", Visibility.Visible), new ViewMode(ThumbnailMode.PicturesView, "\uE8FD") }; NavigateTo(CurrentFolder); }
public BrowserProfileSelectionViewModel(IBrowserState browserState, IBrowserService browserService) { BrowserState = browserState; _browserService = browserService; UseBrowserProfileCommand = new RelayCommand <BrowserProfile>(async(browserProfile) => await UseBrowserProfile(browserProfile)); }
protected NewsViewModel(IMvxNavigationService navigation , IMvxMessenger messenger , INewsService news , IReachabilityService reachability , IFeatureStore featureStore , IBrowserService browser , IDialogService dialog) { _navigation = navigation; _messenger = messenger; _news = news; _reachability = reachability; _featureStore = featureStore; _browser = browser; _dialog = dialog; _stories = new MvxObservableCollection <StoryItemViewModel>(); ShowStoryCommand = new MvxAsyncCommand <StoryItemViewModel>(OnShowStory, item => item.Filled && item.Story.Type == ItemType.Story); RefreshCommand = new MvxAsyncCommand(LoadStories); ShowSettingsCommand = new MvxAsyncCommand(() => _navigation.Navigate <SettingsViewModel>()); _fillerToken = messenger.Subscribe <NewsItemMessage>(OnItemReceived); TabPresentation = featureStore.IsEnabled(Features.StoryTabPresentation); }
public BrowserControl(IBrowserService service) { appDataFolder = service.AppDataPath; CefInit(); InitializeComponent(); this.service = service; Browser.MenuHandler = this; Browser.RegisterAsyncJsObject("bound", new AddinAsyncBoundObject()); var url = service.URL; if (url != null) { Browser.Address = url; } // Timer to check if the browser window has been closed. dispatcherTimer = new DispatcherTimer { Interval = new TimeSpan(0, 0, 1) }; dispatcherTimer.Tick += dispatcherTimer_Tick; dispatcherTimer.Start(); }
/// <summary> /// Initializes a new instance of the <see cref="TestQueueExecutableService" /> class. /// </summary> /// <param name="table">The table test data.</param> /// <param name="suiteService">The suite service.</param> /// <param name="testQueueService">The test queue service.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="schedulerService">The scheduler service.</param> /// <param name="browserService">The browser service.</param> /// <param name="actionService">The action service.</param> /// <param name="testDataSharedTestDataMapService">The test data shared test data map service.</param> /// <param name="sharedTestDataService">The shared test data service.</param> /// <param name="apiConncetionService">The API conncetion service.</param> /// <param name="schedulerHistoryService">The scheduler history service.</param> /// <param name="environmentService">The environment service.</param> /// <param name="reportLinkDataService">The report data service.</param> public TestQueueExecutableService( IRepository <TblTestData> table, ISuiteService suiteService, ITestQueueService testQueueService, IMapperFactory mapperFactory, ISchedulerService schedulerService, IBrowserService browserService, IActionsService actionService, ITestDataSharedTestDataMapService testDataSharedTestDataMapService, ISharedTestDataService sharedTestDataService, IApiConnectionService apiConncetionService, ISchedulerHistoryService schedulerHistoryService, IEnvironmentService environmentService, IReportLinkDataService reportLinkDataService) { this.table = table; this.suiteService = suiteService; this.mapperFactory = mapperFactory; this.schedulerService = schedulerService; this.testQueueService = testQueueService; this.browserService = browserService; this.actionService = actionService; this.testDataSharedTestDataMapService = testDataSharedTestDataMapService; this.sharedTestDataService = sharedTestDataService; this.apiConncetionService = apiConncetionService; this.schedulerHistoryService = schedulerHistoryService; this.environmentService = environmentService; this.reportLinkDataService = reportLinkDataService; }
public LoadBrowserStateBrowserProfilesCommandHandler( IBrowserState browserState, IBrowserService browserService) { _browserState = browserState; _browserService = browserService; }
public static FoundationMvvmCross RegisterServices(this Foundation self, IDialogService dialogService, IBrowserService browserService, IKeyValueStorage keyValueStorage, IAccessRestrictionStorage accessRestrictionStorage, IUserPreferences userPreferences, IOnboardingStorage onboardingStorage, IMvxNavigationService navigationService, IPasswordManagerService passwordManagerService = null) { Ensure.Argument.IsNotNull(self, nameof(self)); Ensure.Argument.IsNotNull(dialogService, nameof(dialogService)); Ensure.Argument.IsNotNull(browserService, nameof(browserService)); Ensure.Argument.IsNotNull(keyValueStorage, nameof(keyValueStorage)); Ensure.Argument.IsNotNull(accessRestrictionStorage, nameof(accessRestrictionStorage)); Ensure.Argument.IsNotNull(userPreferences, nameof(userPreferences)); Ensure.Argument.IsNotNull(onboardingStorage, nameof(onboardingStorage)); Ensure.Argument.IsNotNull(navigationService, nameof(navigationService)); var timeService = self.TimeService; var apiErrorHandlingService = new ApiErrorHandlingService(navigationService, accessRestrictionStorage); Mvx.RegisterSingleton(self.BackgroundService); Mvx.RegisterSingleton(dialogService); Mvx.RegisterSingleton(self.Database); Mvx.RegisterSingleton(browserService); Mvx.RegisterSingleton(self.UserAgent); Mvx.RegisterSingleton(self.TimeService); Mvx.RegisterSingleton(self.Scheduler); Mvx.RegisterSingleton(self.ShortcutCreator); Mvx.RegisterSingleton(self.MailService); Mvx.RegisterSingleton(self.ShortcutCreator); Mvx.RegisterSingleton(self.AnalyticsService); Mvx.RegisterSingleton(self.PlatformConstants); Mvx.RegisterSingleton(self.Database.IdProvider); Mvx.RegisterSingleton(self.SuggestionProviderContainer); Mvx.RegisterSingleton(userPreferences); Mvx.RegisterSingleton(onboardingStorage); Mvx.RegisterSingleton(accessRestrictionStorage); Mvx.RegisterSingleton <IApiErrorHandlingService>(apiErrorHandlingService); Mvx.RegisterSingleton(passwordManagerService ?? new StubPasswordManagerService()); Mvx.LazyConstructAndRegisterSingleton <IInteractorFactory, InteractorFactory>(); return(new FoundationMvvmCross( self.ApiFactory, self.Database, timeService, self.Scheduler, self.AnalyticsService, self.GoogleService, self.ShortcutCreator, self.BackgroundService, onboardingStorage, accessRestrictionStorage, navigationService, apiErrorHandlingService)); }
public MockNewsViewModel(IMvxNavigationService navigation , IMvxMessenger messenger , INewsService news , IReachabilityService reachability , IFeatureStore featureStore , IBrowserService browser , IDialogService dialog) : base(navigation, messenger, news, reachability, featureStore, browser, dialog) =>
public ScraperDequeuer(ILogger <ScraperDequeuer> logger, IServiceProvider serviceProvider, IScraperQueue queue, IBrowserService browserService) { _logger = logger; _queue = queue; _serviceProvider = serviceProvider; _browserService = browserService; }
public SingleInstancePolicy(IProcessProvider processProvider, IBrowserService browserService, Logger logger) { _processProvider = processProvider; _browserService = browserService; _logger = logger; }
/// <summary> /// Creates a new FeedItemViewModel. /// </summary> public FeedItemViewModel(IDataCache cache, INewsService newsService, IBrowserService browserService, FeedItem item) : base(cache) { _newsService = newsService; _browserService = browserService; Item = item; }
private void SetupForgotPasswordGesture(IBrowserService browserService) { ForgotPassword.GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(() => { browserService.OpenUrl(Constants.RootUrl + "forgotpassword"); }), NumberOfTapsRequired = 1 }); }
private void SetupAccountRegistrationGesture(IBrowserService browserService) { RegisterAccount.GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(() => { browserService.OpenUrl(Constants.RootUrl + "register"); }), NumberOfTapsRequired = 1 }); }
public StoryViewModel(INavigationService navigationService, IHackerNewsService hackerNewsService, IBrowserService browserService) : base(navigationService) { HackerNewsService = hackerNewsService; BrowserService = browserService; Title = "Story"; LoadStoryCommand = new AsyncCommand <long>(LoadStoryExecute); GoToUrlCommand = new AsyncCommand <Uri>(GoToUrlExecute); }
public DifferencesServiceViewModel(ICremaAppHost cremaAppHost, IBrowserService browserService, DocumentServiceViewModel contentsService, IPropertyService propertyService) { this.cremaAppHost = cremaAppHost; this.cremaAppHost.Opened += CremaAppHost_Opened; this.cremaAppHost.Closed += CremaAppHost_Closed; this.cremaAppHost.Loaded += CremaAppHost_Loaded; this.cremaAppHost.Unloaded += CremaAppHost_Unloaded; this.DisplayName = Resources.Title_Differences; }
public static void ClassInitialize(TestContext testContext) { var driver = new LoggingDriver(new WebDriver()); _browserService = driver; _browserService.Start(Browser.Chrome); _mainPage = new MainPage(driver, driver); _cartPage = new CartPage(driver, driver, driver); }
public CodeStreamService(IBrowserServiceFactory browserServiceFactory) { try { BrowserService = browserServiceFactory.Create(); } catch (Exception ex) { Log.Error(ex, nameof(CodeStreamService)); } }
public OutdatedAppViewModel(IBrowserService browserService) { Ensure.Argument.IsNotNull(browserService, nameof(browserService)); this.browserService = browserService; UpdateAppCommand = new MvxCommand(updateApp); OpenWebsiteCommand = new MvxCommand(openWebsite); }
/// <summary> /// Initializes a new instance of the <see cref="TestQueueExecutableService" /> class. /// </summary> /// <param name="table">The table test data.</param> /// <param name="suiteService">The suite service.</param> /// <param name="testQueueService">The test queue service.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="schedulerService">The scheduler service.</param> /// <param name="browserService">The browser service.</param> /// <param name="actionService">The action service.</param> public TestQueueExecutableService(IRepository <TblTestData> table, ISuiteService suiteService, ITestQueueService testQueueService, IMapperFactory mapperFactory, ISchedulerService schedulerService, IBrowserService browserService, IActionsService actionService) { this.table = table; this.suiteService = suiteService; this.mapperFactory = mapperFactory; this.schedulerService = schedulerService; this.testQueueService = testQueueService; this.browserService = browserService; this.actionService = actionService; }
public UpdateViewCommand(Action <BaseViewModel> navigate, Action <bool> workStatus, User user, IDialogService dialogService, IWindowService windowService, IBrowserService browserService) { //_mainViewModel = mainViewModel; this._navigate = navigate; this._workStatus = workStatus; this._user = user; this._dialogService = dialogService; this._windowService = windowService; this._browserService = browserService; }
public IpcScope(IBrowserService browserService, WebviewIpcMessage message) { if (_disposed) { throw new ObjectDisposedException($"{nameof(IpcScope)}"); } _browserService = browserService; _message = new WebviewIpcMessage(message.Id); }
public OutdatedAppViewModel(IBrowserService browserService, IRxActionFactory rxActionFactory) { Ensure.Argument.IsNotNull(browserService, nameof(browserService)); Ensure.Argument.IsNotNull(rxActionFactory, nameof(rxActionFactory)); this.browserService = browserService; this.rxActionFactory = rxActionFactory; UpdateApp = rxActionFactory.FromAction(updateApp); OpenWebsite = rxActionFactory.FromAction(openWebsite); }
public SettingsViewModel(IMvxNavigationService navigation, IBrowserService browser, IAppService app, IFeatureStore features) { _navigation = navigation; _browser = browser; _features = features; ShowProjectSiteCommand = new MvxAsyncCommand(OnShowProjectSite); ShowLicensesCommand = new MvxAsyncCommand(OnShowLicenses); ShowFeatureTogglesCommand = new MvxAsyncCommand(OnShowFeatureToggles, () => features.IsEnabled(Features.ShowOverrideUi)); VersionString = $"{app.Name} for {app.Platform} v{app.Version} ({app.BuildNumber})"; }
/// <summary> /// Initializes a new instance of the <see cref="TestQueueService" /> class. /// </summary> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="table">The table.</param> /// <param name="browserService">The browser service.</param> /// <param name="schedulerService">The scheduler service.</param> public TestQueueService( IMapperFactory mapperFactory, IRepository <TblTestQueue> table, IBrowserService browserService, ISchedulerService schedulerService) : base(mapperFactory, table) { this.mapperFactory = mapperFactory; this.browserService = browserService; this.schedulerService = schedulerService; }
/// <summary> /// Creates a new PersonViewModel. /// </summary> public PersonViewModel(IBrowserService browserService, IEmailService emailService, IPhoneService phoneService, IContactsService contactsService, Person person) { _browserService = browserService; _emailService = emailService; _phoneService = phoneService; _contactsService = contactsService; Person = person; }
public SystemTrayApp(IBrowserService browserService) { _browserService = browserService; }
public SystemTrayApp(IBrowserService browserService, IRuntimeInfo runtimeInfo, IProcessProvider processProvider) { _browserService = browserService; _runtimeInfo = runtimeInfo; _processProvider = processProvider; }