Пример #1
0
        public static DialogResult Execute(BackgroundTask initTask)
        {
            Type[] pages = new Type[]
            {
                typeof(WizMCSearchStep1Ctl),
            };

            return(WizardHostForm.CreateWizard("TXT_SEARCHWIZARD_MC", pages, true, initTask,
                                               OPMedia.UI.Properties.Resources.Search.ToIcon()));
        }
        public static DialogResult Execute(Form parentForm, BackgroundTask initTask)
        {
            Type[] pages = new Type[]
            {
                typeof(WizTagStep1Ctl),
                typeof(WizTagStep2Ctl)
            };

            return(WizardHostForm.CreateWizard("TXT_TAGGINGWIZARD", pages, true, initTask, Resources.Tagging16.ToIcon()));
        }
Пример #3
0
        public static DialogResult Execute(BackgroundTask initTask)
        {
            Type[] pages = new Type[]
            {
                typeof(WizCdRipperStep1),
                typeof(WizCdRipperStep2),
            };

            return(WizardHostForm.CreateWizard("TXT_CDRIPPERWIZARD", pages, true, initTask,
                                               OPMedia.Core.Properties.Resources.CDA.ToIcon()));
        }
Пример #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            WizardHostForm host = new WizardHostForm();

            host.Text             = "My Wizards";
            host.WizardCompleted += new WizardCompletedEventHandler(host_WizardCompleted);
            host.WizardPages.Add(1, new Page1());
            host.WizardPages.Add(2, new Page2());
            host.WizardPages.Add(3, new Page3());
            host.LoadWizard();
            host.ShowDialog();
        }
Пример #5
0
        public static DialogResult Execute(ref Task initTask)
        {
            if (initTask == null)
            {
                initTask = new Task();
            }

            Type[] pages = new Type[]
            {
                typeof(WizImportStep1Ctl),
                typeof(WizImportStep2Ctl)
            };

            return(WizardHostForm.CreateWizard("TXT_IMPORTWIZARD", pages, true, initTask));
        }