Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WellLogReaderUI"/> 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 WellLogReaderUI(WellLogReader workstep, WellLogReader.Arguments args, WorkflowContext context)
        {
            InitializeComponent();
            //this.
            this.mainCombo.SelectedIndex = 0;
            this.comboRPM.SelectedIndex = 1;
            this.comboRPM2.SelectedIndex = 1;
            this.workstep = workstep;
            this.args = args;
            this.context = context;
            WellRoot wroot = WellRoot.Get(PetrelProject.PrimaryProject);

            LogAnalysis.LogAnalysisUI analysisUserControl = new LogAnalysis.LogAnalysisUI();
            analysisUserControl.Show();
            convertorPage.Controls.Add(analysisUserControl);

            ChatServer.ServerForm chatServerForm = new ChatServer.ServerForm();
            foreach (Control c in chatServerForm.Controls)
            {
                c.Show();
                chatServerArea.Controls.Add(c);
            }

            // Now traverse the Boreholes
            String tempstr;
            String tempstr1;
            int tempctr = 0;
            int tempctr1 = 0;
            int tempctr2 = 0;
            int tempctr3 = 0;

            SeismicRoot sroot = SeismicRoot.Get(PetrelProject.PrimaryProject);
        }
Ejemplo n.º 2
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()
 {
     // Registrations:
     WellLogReader welllogreaderInstance = new WellLogReader();
     PetrelSystem.WorkflowEditor.AddUIFactory<WellLogReader.Arguments>(new WellLogReader.UIFactory());
     PetrelSystem.WorkflowEditor.Add(welllogreaderInstance);
     PetrelSystem.ProcessDiagram.Add(new Slb.Ocean.Petrel.Workflow.WorkstepProcessWrapper(welllogreaderInstance), "Plug-ins");
     // TODO:  Add WellReader.Integrate implementation
 }