コード例 #1
0
ファイル: WizzardForm.cs プロジェクト: mastersign/bench
        public static bool ShowWizzard(WizzardTask task)
        {
            var wizzardForm = new WizzardForm(task);
            Application.Run(wizzardForm);

            return !task.IsCanceled;
        }
コード例 #2
0
ファイル: WizzardForm.cs プロジェクト: mastersign/bench
 public WizzardForm(WizzardTask task)
 {
     InitializeComponent();
     picIcon.Image = new Icon(Icon, new Size(48, 48)).ToBitmap();
     currentStep = 0;
     this.task = task;
     task.Before();
     stepControls = task.StepControls;
     UpdateWizzard();
 }