//DictionaryProperty ZoneIndexing; /// <summary> /// Initializes a new instance of the <see cref="ModifiedKhUI"/> 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 ModifiedKhUI(PermMatching workstep, PermMatching.Arguments args, WorkflowContext context) { InitializeComponent(); this.workstep = workstep; this.args = args; this.context = context; }
/// <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 ModifiedKhModule.Integrate implementation // Register ModifiedKh PermMatching modifiedkhInstance = new PermMatching(); PetrelSystem.WorkflowEditor.AddUIFactory<PermMatching.Arguments>(new PermMatching.UIFactory()); //PetrelSystem.WorkflowEditor.Add(modifiedkhInstance); m_modifiedkhInstance = new Slb.Ocean.Petrel.Workflow.WorkstepProcessWrapper(modifiedkhInstance); PetrelSystem.ProcessDiagram.Add(m_modifiedkhInstance, "Property modeling"); PetrelSystem.AddDataSourceFactory( new CONNECTModifiedKhDataSourceFactory()); PetrelSystem.CommandManager.CreateCommand(PermMatchCommandHandler.Id, new PermMatchCommandHandler()); // PetrelSystem.CommandManager.CreateCommand("Slb.Ocean.Example.MyFirstPluginCommand", new DoSomethingCommandHandler()); }