/// <summary> /// Initializes a new instance of the <see cref="DetectForm"/> class. /// </summary> public DetectForm(CNNProjectHolder cnnProjectHolder, TrainForm parentForm) { InitializeComponent(); this._cnnProjectHolder = cnnProjectHolder; this._parentForm = parentForm; MasterForm.InitializeContent( this, this.lblTooltip, this._toolStripContainer, this.pnlContentHolder, this._cnnProjectHolder); this.cmbImageProvider.Items.AddRange(ImageProvider.GetAvailableProviders()); this.cmbImageProvider.SelectedIndex = 0; this._cnnProjectHolder.ProjectChanged += new CNNProjectHolder.ProjectChangedDelegate(CnnProjectHolder_ProjectChanged); }
/// <summary> /// Handles the Click event of the btnNext control. /// </summary> private void btnNext_Click(object sender, EventArgs e) { _imageProvider.StopPresentation(); this.Hide(); if (_nextForm == null || _nextForm.IsDisposed) { _nextForm = new TrainForm(_cnnProjectHolder, this); } _nextForm.Show(); _nextForm.Focus(); }