コード例 #1
0
        /// <summary>
        /// This method runs once in the Module life.
        /// In this method, you can do registrations of the not UI related components.
        /// (eg: datasource, plugin)
        /// </summary>
        public void Integrate()
        {
            // TODO:  Add NovozhentsevModule.Integrate implementation

            // Register NovozhentsevLab2Workstep
            NovozhentsevLab2Workstep novozhentsevlab2workstepInstance = new NovozhentsevLab2Workstep();

            PetrelSystem.WorkflowEditor.AddUIFactory <NovozhentsevLab2Workstep.Arguments>(new NovozhentsevLab2Workstep.UIFactory());
            PetrelSystem.WorkflowEditor.Add(novozhentsevlab2workstepInstance, PetrelSystem.WorkflowEditor.RegisteredWorksteps.Processes.FindOrCreateWorkstepGroup("Novozhentsev Lab2"));
            PetrelSystem.ProcessDiagram.Add(new Slb.Ocean.Petrel.Workflow.WorkstepProcessWrapper(novozhentsevlab2workstepInstance), "Novozhentsev Lab2");
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NovozhentsevLab2WorkstepUI"/> class.
        /// </summary>
        /// <param name="workstep">the workstep instance</param>
        /// <param name="args">the arguments</param>
        /// <param name="context">the underlying context in which this UI is being used</param>
        public NovozhentsevLab2WorkstepUI(NovozhentsevLab2Workstep workstep, NovozhentsevLab2Workstep.Arguments args, WorkflowContext context)
        {
            InitializeComponent();

            this.workstep = workstep;
            this.args     = args;
            this.context  = context;

            workstep.CopyArgumentPackage(args, tmpargs);
            lblShortDesc.Text = workstep.Description.ShortDescription;
            lblLongDesc.Text  = workstep.Description.Description;
            btnApply.Image    = PetrelImages.Apply;
            btnOK.Image       = PetrelImages.OK;
            btnCancel.Image   = PetrelImages.Cancel;
        }