protected virtual void OnRemoteAppcastAvailableEvent(SingleEventArgs <RemoteAppcast> args) { var handler = RemoteAppcastAvailableEvent; if (handler != null) { handler(this, args); } }
protected virtual void OnArtifactDownloadedEvent(SingleEventArgs <string> args) { var handler = ArtifactDownloadedEvent; if (handler != null) { handler(this, args); } }
protected virtual void OnEnrollmentAvailableEvent(SingleEventArgs <Enrollment> args) { var handler = EnrollmentAvailableEvent; if (handler != null) { handler(this, args); } }
protected virtual void OnArtifactDownloadedEvent(SingleEventArgs<string> args) { var handler = ArtifactDownloadedEvent; if (handler != null) handler(this, args); }
protected virtual void OnRemoteAppcastAvailableEvent(SingleEventArgs<RemoteAppcast> args) { var handler = RemoteAppcastAvailableEvent; if (handler != null) handler(this, args); }
private void BakeMetadataAvailableEventHandler(object sender, SingleEventArgs<BakeMetadata> e) { _bakeMetadata = e.ItsValue; if (_bakeMetadata == null) return; var comp = _bakeMetadata.ItsMainExecutableComponent; foreach (var file in comp.ItsBakeFiles) { var p1 = ItsInstallerProjectManagementService.ItsInstallerProjectInfo.ItsProjectPaths.ItsRootPath; var fileinfo = new FileInfo(Path.Combine(p1, file.ItsSource)); var fileEntry = new FileEntry { DisplayTitle = Path.GetFileName(file.ItsSource), FullPath = file.ItsSource, SizeInfo = new StorageSizeInfo(fileinfo.Length) }; ItsIncludedFileEntriesDict.Add(fileEntry.GetHashCode(), fileEntry); } RaiseRegistryUpdateEvent(); }
private void FileSystemService_ScanStatusChangedEventHandler(object sender, SingleEventArgs<ScanStatus> e) { switch (e.ItsValue) { case ScanStatus.Started: ItsNewFileEntries.Clear(); _tempFiles.Clear(); break; case ScanStatus.Completed: FilterFiles(); break; } RaiseRegistryUpdateEvent(); }
private void FileSystemService_FileEntryAvailableEventHandler(object sender, SingleEventArgs<FileEntry> e) { // TODO: allow adding a directory if (e.ItsValue.FileEntryType == FileEntryType.Directory) return; var hash = e.ItsValue.GetHashCode(); if(!ItsIncludedFileEntriesDict.ContainsKey(hash)) _tempFiles.Add(e.ItsValue); }
private void BuildStartedEventHandler(object sender, SingleEventArgs<List<ProjectInfo>> e) { ItsNewFileEntries.Clear(); }
protected override void OnRemoteAppcastAvailableEvent(SingleEventArgs<RemoteAppcast> args) { RemoteAppcast = args.Payload; base.OnRemoteAppcastAvailableEvent(args); }
protected override void OnRemoteAppcastAvailableEvent(SingleEventArgs <RemoteAppcast> args) { RemoteAppcast = args.Payload; base.OnRemoteAppcastAvailableEvent(args); }