public CrmSolutionDownloader(SolutionPackagerControl solutionPackagerControl, AlBackgroundWorkHandler asyncWorkQueue, SolutionPackagerCaller solutionPackagerCaller, ComboBox cmbCrmSolutions) { this.solutionPackagerControl = solutionPackagerControl ?? throw new ArgumentNullException(nameof(solutionPackagerControl)); this.asyncWorkQueue = asyncWorkQueue ?? throw new ArgumentNullException(nameof(asyncWorkQueue)); this.solutionPackagerCaller = solutionPackagerCaller ?? throw new ArgumentNullException(nameof(solutionPackagerCaller)); this.cmbCrmSolutions = cmbCrmSolutions ?? throw new ArgumentNullException(nameof(cmbCrmSolutions)); }
public SolutionPackagerCaller(SolutionPackagerControl solutionPackagerControl, AlBackgroundWorkHandler backgroundWorkHandler, RichTextBox txtOutput, CrmSolutionImporter crmSolutionImporter) { this.solutionPackagerControl = solutionPackagerControl ?? throw new ArgumentNullException(nameof(solutionPackagerControl)); this.backgroundWorkHandler = backgroundWorkHandler ?? throw new ArgumentNullException(nameof(backgroundWorkHandler)); this.txtOutput = txtOutput ?? throw new ArgumentNullException(nameof(txtOutput)); this.crmSolutionImporter = crmSolutionImporter ?? throw new ArgumentNullException(nameof(crmSolutionImporter)); }
internal SolutionImportStatus(Guid asyncJobId, Guid importJobId, SolutionPackagerControl solutionPackagerControl, ToolViewModel toolViewModel) { InitializeComponent(); this.asyncJobId = asyncJobId; this.importJobId = importJobId; this.solutionPackagerControl = solutionPackagerControl; this.timer.Tick += new EventHandler(Timer_Tick); this.backgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(WorkAsync); this.backgroundWorkerCancel.DoWork += new System.ComponentModel.DoWorkEventHandler(WorkAsyncCancel); this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(WorkAsyncEnded); this.backgroundWorkerCancel.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(WorkAsyncCancelEnded); this.Bind(t => t.OrganizationService, toolViewModel, s => s.OrganizationService, formattingEnabled: true); this.timer.Start(); }
public CrmSolutionImporter(SolutionPackagerControl solutionPackagerControl, AlBackgroundWorkHandler asyncWorkQueue, ToolViewModel pluginViewModel) { this.solutionPackagerControl = solutionPackagerControl; this.asyncWorkQueue = asyncWorkQueue; this.toolViewModel = pluginViewModel; }
public SolutionPackagerCaller(SolutionPackagerControl solutionPackagerControl, AsyncWorkQueue asyncWorkQueue, RichTextBox txtOutput) { this.solutionPackagerControl = solutionPackagerControl ?? throw new ArgumentNullException(nameof(solutionPackagerControl)); this.asyncWorkQueue = asyncWorkQueue ?? throw new ArgumentNullException(nameof(asyncWorkQueue)); this.txtOutput = txtOutput ?? throw new ArgumentNullException(nameof(txtOutput)); }
public static IMyToolFactory GetMyToolFactory(SolutionPackagerControl solutionPackagerControl) { return(new MyToolFactory(solutionPackagerControl)); }
private MyToolFactory(SolutionPackagerControl solutionPackagerControl) { this.solutionPackagerControl = solutionPackagerControl; this.toolViewModel = new ToolViewModel(); this.backgroundWorkHandler = new AlBackgroundWorkHandler(); }
public CoreToolsDownloader(AlBackgroundWorkHandler backgroundWorkHandler, SolutionPackagerControl solutionPackagerControl, ToolViewModel toolViewModel) { this.backgroundWorkHandler = backgroundWorkHandler ?? throw new ArgumentNullException(nameof(backgroundWorkHandler)); this.solutionPackagerControl = solutionPackagerControl ?? throw new ArgumentNullException(nameof(solutionPackagerControl)); this.toolViewModel = toolViewModel ?? throw new ArgumentNullException(nameof(toolViewModel)); }
public AsyncWorkQueue(SolutionPackagerControl solutionPackagerControl, PluginViewModel pluginViewModel) { this.queue = new Queue <Job>(); this.solutionPackagerControl = solutionPackagerControl; this.pluginViewModel = pluginViewModel; }