Beispiel #1
0
 public CrmSolutionImporter(SolutionPackagerControl solutionPackagerControl, AlBackgroundWorkHandler asyncWorkQueue, ToolViewModel pluginViewModel)
 {
     this.solutionPackagerControl = solutionPackagerControl;
     this.asyncWorkQueue          = asyncWorkQueue;
     this.toolViewModel           = pluginViewModel;
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 private MyToolFactory(SolutionPackagerControl solutionPackagerControl)
 {
     this.solutionPackagerControl = solutionPackagerControl;
     this.toolViewModel           = new ToolViewModel();
     this.backgroundWorkHandler   = new AlBackgroundWorkHandler();
 }
Beispiel #4
0
 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));
 }