protected virtual void Initialize(WorkerTask task, WorkflowWizardGUIOptions gui)
        {
            if (task != null)
            {
                this.Config = task.WorkflowConfig;
                this.Text = Application.ProductName + " - Workflow - " + task.Info.Job.GetDescription();
            }
            else
            {
                this.Text = Application.ProductName;
            }

            tcMain.TabPages.Clear();
            tcMain.TabPages.Add(tpOutputs);

            if (gui != null)
            {
                gbTasks.Visible = false;
                this.MinimumSize = new System.Drawing.Size(this.Width - gbTasks.Width, this.Height);
                this.Width = this.MinimumSize.Width;
                this.GUI = gui;
            }
            if (task != null)
            {
                this.Task = task;
            }
        }
        protected virtual void Initialize(WorkerTask task, WorkflowWizardGUIOptions gui)
        {
            if (task != null)
            {
                this.Config = task.WorkflowConfig;
                this.Text   = Application.ProductName + " - Workflow - " + task.Info.Job.GetDescription();
            }
            else
            {
                this.Text = Application.ProductName;
            }

            tcMain.TabPages.Clear();
            tcMain.TabPages.Add(tpOutputs);

            if (gui != null)
            {
                gbTasks.Visible  = false;
                this.MinimumSize = new System.Drawing.Size(this.Width - gbTasks.Width, this.Height);
                this.Width       = this.MinimumSize.Width;
                this.GUI         = gui;
            }
            if (task != null)
            {
                this.Task = task;
            }
        }
        private void WorkflowEdit(ListViewItem lvi)
        {
            Workflow wf = Workflows[(int)lvi.Tag];
            WorkflowWizardGUIOptions wfgui = new WorkflowWizardGUIOptions()
            {
                ShowTabJob = true
            };
            JBirdWorkflowWizard pw = new JBirdWorkflowWizard(null, wf, wfgui)
            {
                Icon = this.Icon
            };

            if (pw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                lvi.Tag = pw.Config;
                WorkflowsGuiRefresh();
            }
        }
        public JBirdWorkflowWizard(WorkerTask task = null, Workflow workflow = null, WorkflowWizardGUIOptions gui = null)
        {
            base.InitializeComponent();
            InitializeComponent();
            base.Initialize(task, gui);

            HotkeyManager tempHotkeyMgr;
            this.Task = new WorkerTask(workflow);
            this.Config = workflow;
            Program.HotkeyMgrs.TryGetValue(this.Config.ID, out tempHotkeyMgr);
            if (tempHotkeyMgr != null)
            {
                hmcHotkeys.PrepareHotkeys(tempHotkeyMgr);
            }
            else
            {
                HotkeyManager hm = new HotkeyManager(Program.CoreUI, ZAppType.JBird);
                hm.AddHotkey(JBirdHotkey.Workflow, Config.Hotkey, Config.Start);
                hmcHotkeys.PrepareHotkeys(hm);
            }
        }
 private void ShowImageFormatUI()
 {
     var wfwgui = new WorkflowWizardGUIOptions
     {
         ShowQualityTab = true,
         ShowResizeTab = true
     };
     var wfw = new WorkflowWizard(new WorkerTask(Engine.ConfigWorkflow, false), wfwgui) { Icon = Icon };
     wfw.Show();
 }
 public WorkflowWizard(WorkerTask info = null, WorkflowWizardGUIOptions gui = null)
     : this()
 {
     Initialize(info, gui);
 }
 private void WorkflowEdit(ListViewItem lvi)
 {
     Workflow wf = Workflows[(int)lvi.Tag];
     WorkflowWizardGUIOptions wfgui = new WorkflowWizardGUIOptions() { ShowTabJob = true };
     JBirdWorkflowWizard pw = new JBirdWorkflowWizard(null, wf, wfgui) { Icon = this.Icon };
     if (pw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         lvi.Tag = pw.Config;
         WorkflowsGuiRefresh();
     }
 }
 public WorkflowWizard(WorkerTask info = null, WorkflowWizardGUIOptions gui = null)
     : this()
 {
     Initialize(info, gui);
 }