public Main(IBoundingBoxReader boundingBoxReader) { this._boundingBoxReader = boundingBoxReader; var startupForm = new StartupForm(); var dialogResult = startupForm.ShowDialog(); this._annotationPackageProvider = startupForm.AnnotationPackageProvider; this._objectClasses = startupForm.ObjectClasses; this.InitializeComponent(); if (dialogResult == DialogResult.OK) { this.CreateYoloObjectNames(); this.LoadPackages(); } }
public Main(IBoundingBoxReader boundingBoxReader) { this._boundingBoxReader = boundingBoxReader; var startupForm = new StartupForm(); startupForm.StartPosition = FormStartPosition.CenterScreen; var dialogResult = startupForm.ShowDialog(this); this._annotationPackageProvider = startupForm.AnnotationPackageProvider; this._objectClasses = startupForm.ObjectClasses; this.InitializeComponent(); this.downloadControl.Dock = DockStyle.Fill; if (dialogResult == DialogResult.OK) { this.CreateYoloObjectNames(); Task.Run(async() => await this.LoadPackagesAsync()); } }
public void Setup(IBoundingBoxReader boundingBoxReader, IAnnotationPackageProvider annotationPackageProvider, List <ObjectClass> objectClasses) { this._boundingBoxReader = boundingBoxReader; this._annotationPackageProvider = annotationPackageProvider; this._objectClasses = objectClasses; }