Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        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;
 }