Exemple #1
0
 void DisposeWizardUserControl(WizardUserControl wizardUserControl)
 {
     wizardUserControl.Finished  -= WizardUserControl_Finished;
     wizardUserControl.Cancelled -= WizardUserControl_Cancelled;
     wizardUserControl.Dispose();
     closeableControl = null;
 }
Exemple #2
0
        void ShowWizardUserControl(CodedImage initialImage)
        {
            returnToImage = initialImage;

            var wizardUserControl = new WizardUserControl(initialImage)
            {
                Dock = DockStyle.Fill
            };

            wizardUserControl.Finished  += WizardUserControl_Finished;
            wizardUserControl.Cancelled += WizardUserControl_Cancelled;
            Controls.Add(wizardUserControl);
            closeableControl = wizardUserControl;

            homeUserControl?.Dispose();
        }