public ErrorViewModel(IGreenshotLanguage greenshotLanguage, [Import(AllowDefault = true)] IVersionProvider versionProvider) { GreenshotLanguage = greenshotLanguage; VersionProvider = versionProvider; }
public BoxDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, IBoxConfiguration boxConfiguration, IBoxLanguage boxLanguage, Func <CancellationTokenSource, Owned <PleaseWaitForm> > pleaseWaitFormFactory, INetworkConfiguration networkConfiguration, IResourceProvider resourceProvider) : base(coreConfiguration, greenshotLanguage) { _boxConfiguration = boxConfiguration; _boxLanguage = boxLanguage; _pleaseWaitFormFactory = pleaseWaitFormFactory; _networkConfiguration = networkConfiguration; _resourceProvider = resourceProvider; _oauth2Settings = new OAuth2Settings { AuthorizationUri = new Uri("https://app.box.com"). AppendSegments("api", "oauth2", "authorize"). ExtendQuery(new Dictionary <string, string> { { "response_type", "code" }, { "client_id", "{ClientId}" }, { "redirect_uri", "{RedirectUrl}" }, { "state", "{State}" } }), TokenUrl = new Uri("https://api.box.com/oauth2/token"), CloudServiceName = "Box", ClientId = boxConfiguration.ClientId, ClientSecret = boxConfiguration.ClientSecret, RedirectUrl = "https://www.box.com/home/", AuthorizeMode = AuthorizeModes.EmbeddedBrowser, Token = boxConfiguration }; }
protected ExcelDestination(string workbookName, ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) : this(coreConfiguration, greenshotLanguage) { _workbookName = workbookName; }
protected OneNoteDestination(OneNotePage page, ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) : this(coreConfiguration, greenshotLanguage) { _page = page; }
public ToolStripColorButton( IEditorConfiguration editorConfiguration, IGreenshotLanguage greenshotLanguage) { _editorConfiguration = editorConfiguration; _greenshotLanguage = greenshotLanguage; Click += ColorButtonClick; }
public CaptureConfigViewModel(ICoreConfiguration coreConfiguration, IConfigTranslations configTranslations, IGreenshotLanguage greenshotLanguage) { CoreConfiguration = coreConfiguration; ConfigTranslations = configTranslations; GreenshotLanguage = greenshotLanguage; }
protected PrinterDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, Func <ISurface, ICaptureDetails, Owned <PrintHelper> > printHelperFactory, string printerName) : this(coreConfiguration, greenshotLanguage, printHelperFactory) { _printerName = printerName; }
public FileConfigPartViewModel( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) { CoreConfiguration = coreConfiguration; GreenshotLanguage = greenshotLanguage; }
public PickerDestination( DestinationHolder destinationHolder, ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) : base(coreConfiguration, greenshotLanguage) { _destinationHolder = destinationHolder; }
public PrinterDestination(ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, Func <ISurface, ICaptureDetails, Owned <PrintHelper> > printHelperFactory ) : base(coreConfiguration, greenshotLanguage) { _greenshotLanguage = greenshotLanguage; _printHelperFactory = printHelperFactory; }
public NetworkConfigViewModel( INetworkConfiguration networkConfiguration, IGreenshotLanguage greenshotLanguage ) { NetworkConfiguration = networkConfiguration; GreenshotLanguage = greenshotLanguage; }
public PrintConfigViewModel( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) { CoreConfiguration = coreConfiguration; GreenshotLanguage = greenshotLanguage; }
public ExternalCommandDestination(ExternalCommandDefinition defintion, IExternalCommandConfiguration externalCommandConfiguration, ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) : base(coreConfiguration, greenshotLanguage) { _externalCommandDefinition = defintion; _externalCommandConfiguration = externalCommandConfiguration; }
/// <summary> /// Constructor with dependencies /// </summary> /// <param name="coreConfiguration">ICoreConfiguration</param> /// <param name="greenshotLanguage">IGreenshotLanguage</param> public UpdateService( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage) { _coreConfiguration = coreConfiguration; _greenshotLanguage = greenshotLanguage; LatestVersion = CurrentVersion = GetType().Assembly.GetName().Version; _coreConfiguration.LastSaveWithVersion = CurrentVersion.ToString(); }
private BugReportForm(IGreenshotLanguage greenshotLanguage) : base(greenshotLanguage) { _greenshotLanguage = greenshotLanguage; // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); ToFront = true; }
public OutputConfigViewModel( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, FileConfigPartViewModel fileConfigPartViewModel) { CoreConfiguration = coreConfiguration; GreenshotLanguage = greenshotLanguage; FileConfigPartViewModel = fileConfigPartViewModel; }
/// <summary> /// Default constructor so we can initiate this from MEF /// </summary> public EditorDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, EditorFactory editorFactory, IEditorLanguage editorLanguage) : base(coreConfiguration, greenshotLanguage) { _editorFactory = editorFactory; _editorLanguage = editorLanguage; }
public OfficeConfigViewModel( IOfficeConfiguration officeConfiguration, IOfficeLanguage officeLanguage, IGreenshotLanguage greenshotLanguage) { OfficeConfiguration = officeConfiguration; OfficeLanguage = officeLanguage; GreenshotLanguage = greenshotLanguage; }
public PleaseWaitForm(IGreenshotLanguage greenshotLanguage) { _greenshotLanguage = greenshotLanguage; // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); Icon = GreenshotResources.GetGreenshotIcon(); }
public ExternalCommandDestinationProvider( IExternalCommandConfiguration externalCommandConfiguration, ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage) { _externalCommandConfig = externalCommandConfiguration; _coreConfiguration = coreConfiguration; _greenshotLanguage = greenshotLanguage; }
public ConfluenceConfigViewModel( IConfluenceConfiguration confluenceConfiguration, IConfluenceLanguage confluenceLanguage, IGreenshotLanguage greenshotLanguage) { ConfluenceConfiguration = confluenceConfiguration; ConfluenceLanguage = confluenceLanguage; GreenshotLanguage = greenshotLanguage; }
private ConfluenceDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, IConfluenceConfiguration confluenceConfiguration, IConfluenceLanguage confluenceLanguage, Func <Owned <PleaseWaitForm> > pleaseWaitFormFactory, Content page) : this(coreConfiguration, greenshotLanguage, confluenceConfiguration, confluenceLanguage, pleaseWaitFormFactory) { _page = page; }
public EditorDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, EditorFactory editorFactory, IEditorLanguage editorLanguage, IImageEditor editor) : this(coreConfiguration, greenshotLanguage, editorFactory, editorLanguage) { _editorFactory = editorFactory; _editor = editor; }
public GeneralConfigViewModel( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, AuthenticationProvider authenticationProvider ) { CoreConfiguration = coreConfiguration; GreenshotLanguage = greenshotLanguage; AuthenticationProvider = authenticationProvider; }
public ColorDialog( IEditorConfiguration editorConfiguration, IGreenshotLanguage greenshotLanguage) : base(greenshotLanguage) { _editorConfiguration = editorConfiguration; SuspendLayout(); InitializeComponent(); ResumeLayout(); Load += (sender, args) => DrawButtons(); }
public ClipboardDestinationConfigViewModel( ICoreConfiguration coreConfiguration, IConfigTranslations configTranslations, IGreenshotLanguage greenshotLanguage ) { ConfigTranslations = configTranslations; GreenshotLanguage = greenshotLanguage; CoreConfiguration = coreConfiguration; }
public HotkeyHandler( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage, WindowHandle windowHandle) { _instance = this; _coreConfiguration = coreConfiguration; _greenshotLanguage = greenshotLanguage; _windowHandle = windowHandle; }
public DestinationsConfigNodeViewModel(IGreenshotLanguage greenshotLanguage) { GreenshotLanguage = greenshotLanguage; // automatically update the DisplayName GreenshotLanguage.CreateDisplayNameBinding(this, nameof(IGreenshotLanguage.SettingsDestination)); // automatically update the DisplayName CanActivate = false; Id = nameof(ConfigIds.Destinations); }
public WordDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) : base(coreConfiguration, greenshotLanguage) { _exePath = PluginUtils.GetExePath("WINWORD.EXE"); if (_exePath != null && !File.Exists(_exePath)) { _exePath = null; } }
public PowerpointDestination( ICoreConfiguration coreConfiguration, IGreenshotLanguage greenshotLanguage ) : base(coreConfiguration, greenshotLanguage) { _exePath = PluginUtils.GetExePath("POWERPNT.EXE"); if (_exePath != null && !File.Exists(_exePath)) { _exePath = null; } }