Beispiel #1
0
        cExtendedControl CreateSplitter(cExtendedControl Ctrl1, cExtendedControl Ctrl2)
        {
            SplitContainer SC = new SplitContainer();

            SC.Anchor = ((System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                       | System.Windows.Forms.AnchorStyles.Left
                       | System.Windows.Forms.AnchorStyles.Right);
            SC.BorderStyle = BorderStyle.FixedSingle;
            SC.Orientation = this.Orientation;

            //SC.Panel1.Width =
            Ctrl1.Width = SC.Panel1.Width;

            Ctrl1.Height = SC.Panel1.Height;
            SC.Panel1.Controls.Add(Ctrl1);

            Ctrl2.Width = SC.Panel2.Width;
            Ctrl2.Height = SC.Panel2.Height;
            SC.Panel2.Controls.Add(Ctrl2);

            cExtendedControl ToBeReturned = new cExtendedControl();

            ToBeReturned.Width = SC.Width;
            ToBeReturned.Height = SC.Height;
            ToBeReturned.Controls.Add(SC);
            ToBeReturned.Anchor = ((System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                       | System.Windows.Forms.AnchorStyles.Left
                       | System.Windows.Forms.AnchorStyles.Right);

            //ToBeReturned.Controls.Add(SC);
            return ToBeReturned;
        }
Beispiel #2
0
 public void SetInputData(cExtendedControl Input)
 {
     //  foreach (var item in Input)
     this.ControlToDisplay = Input;
     //{
     //    ControlsToDisplay.Add(item);
        // }
 }
        public void SetInputData(cExtendedControl Input)
        {
            base.OutPut = Input;

            base.OutPut.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                    | System.Windows.Forms.AnchorStyles.Left)
                    | System.Windows.Forms.AnchorStyles.Right)));
        }
Beispiel #4
0
 public void SetInputData(cExtendedControl Input)
 {
     this.ControlToDisplay = Input;
 }
Beispiel #5
0
 public cDisplayToWindow()
 {
     ControlToDisplay = new cExtendedControl();
 }
Beispiel #6
0
        public cFeedBackMessage Run()
        {
            if (MyChart.Input == null)
            {
                base.FeedBackMessage.IsSucceed = false;
                base.FeedBackMessage.Message = "No input data identified.";
                return base.FeedBackMessage;
            }

            this.CurrentPanel = new cExtendedControl();
            this.CurrentPanel.Title = this.Title;
            this.CurrentPanel.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom
                                        | System.Windows.Forms.AnchorStyles.Left
                                        | System.Windows.Forms.AnchorStyles.Right);

            MyChart.Run();

            MyChart.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom
                                      | System.Windows.Forms.AnchorStyles.Left
                                      | System.Windows.Forms.AnchorStyles.Right);

            CurrentPanel.Controls.Add(MyChart);
            return base.FeedBackMessage;
        }
Beispiel #7
0
 public void SetInputData(cExtendedControl ControlToAdd)
 {
     this.xListControl.Add(ControlToAdd);
 }
Beispiel #8
0
 //public cDesignerSplitter SplitterForInfo = new cDesignerSplitter();
 public cDataDisplay()
 {
     CurrentColor = Color.DarkRed;
     this.CurrentPanel = new cExtendedControl();
     this.CurrentPanel.Width = Width;
     this.CurrentPanel.Height = Height;
 }
Beispiel #9
0
 private void ToolStripMenuItem_Detach(object sender, EventArgs e)
 {
     cDisplayToWindow DTW = new cDisplayToWindow();
     DTW.Title = this.CurrentTitle + " (Detached)";
     cExtendedControl EC = new cExtendedControl();
     EC.Controls.Add(this);
     DTW.SetInputData(EC);
     DTW.Run();
     DTW.Display();
 }
        void Process()
        {
            cExtendedTable NewTable1 = null;
            string DescName = "";

            if (this.InputWells != null)
            {
                NewTable1 = new cExtendedTable(this.InputWells, cGlobalInfo.CurrentScreening.ListDescriptors.CurrentSelectedDescriptorIdx);
                DescName = cGlobalInfo.CurrentScreening.ListDescriptors[cGlobalInfo.CurrentScreening.ListDescriptors.CurrentSelectedDescriptorIdx].GetName();
            }
            else if (this.InputTable != null)
            {
                NewTable1 = this.InputTable;
            }

            cDesignerTab NormalityTestTabs = new cDesignerTab();

            cNormalityAndersonDarling NAD = new cNormalityAndersonDarling();
            NAD.SetInputData(NewTable1);
            NAD.Run();

            cExtendedTable TNAD = NAD.GetOutPut();

            TNAD[0].Name = "Anderson-Darling Test";
            cViewerTable VTNAD = new cViewerTable();
            VTNAD.SetInputData(TNAD);
            VTNAD.Sender = NAD;
            VTNAD.IsDisplayInfo = true;
            VTNAD.DigitNumber = -1;
            VTNAD.Run();

            cExtendedControl AndersonCtrl = VTNAD.GetOutPut();
            AndersonCtrl.Title = TNAD[0].Name;

            cNormalityJarqueBera NJB = new cNormalityJarqueBera();
            NJB.SetInputData(NewTable1);
            NJB.Run();

            cExtendedTable TmpTest = NJB.GetOutPut();
            TmpTest[0].Name = "Jarque-Bera Test";
            cViewerTable VT = new cViewerTable();
            VT.SetInputData(TmpTest);
            VT.Sender = NJB;
            VT.IsDisplayInfo = true;
            VT.DigitNumber = -1;
            VT.Run();

            cExtendedControl JarqueCtrl = VT.GetOutPut();
            JarqueCtrl.Title = TmpTest[0].Name;

            NormalityTestTabs.SetInputData(JarqueCtrl);
            NormalityTestTabs.SetInputData(AndersonCtrl);

            NormalityTestTabs.Run();

            //cExtendedControl ControlForTab = CADP.GetOutPut();
            //NormalityTestTabs.Title = TmpPlate.Name;

            cDesignerSplitter MainDS = new cDesignerSplitter();
            MainDS.Orientation = Orientation.Vertical;

            cDesignerSplitter DS = new cDesignerSplitter();
            DS.Orientation = Orientation.Horizontal;

            cNormalProbabilityPlot NPP = new cNormalProbabilityPlot();
            NPP.SetInputData(NewTable1);
            NPP.IdxColumnToProcess = 0;
            NPP.Run();

            cViewer2DScatterPoint V2DS = new cViewer2DScatterPoint();
            cExtendedTable TableToDisp = NPP.GetOutPut();
            TableToDisp.Name = "";
            V2DS.Chart.IsSelectable = true;
            V2DS.Chart.IsBorder = false;
            V2DS.Chart.IsShadow = false;
            V2DS.Chart.IsXGrid = true;
            V2DS.Chart.IsYGrid = true;
            V2DS.Chart.IsDisplayTrendLine = true;
            V2DS.SetInputData(TableToDisp);
            V2DS.Run();
            V2DS.Chart.CurrentTitle.Text = "Normal Probability Plot\n" + DescName + " - " + NewTable1[0].Count + " points";

            DS.SetInputData(V2DS.GetOutPut());

            cViewerStackedHistogram VSH = new cViewerStackedHistogram();

            cExtendedTable NewTable = null;

            if (this.InputWells != null)
            {
                NewTable = this.InputWells.GetAverageDescriptorValues(cGlobalInfo.CurrentScreening.ListDescriptors.CurrentSelectedDescriptorIdx);
            }
            else
            {
                NewTable = this.InputTable;
            }
            NewTable.Name = DescName + " - Stacked Histogram - " + NewTable1[0].Count + " values";

            VSH.SetInputData(NewTable);
            VSH.Chart.LabelAxisX = DescName;
            VSH.Run();

            DS.SetInputData(VSH.GetOutPut());
            DS.Run();

            cExtendedControl TextEC = NormalityTestTabs.GetOutPut();
            TextEC.Width = 0;
            TextEC.Height = 0;

            TextEC.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom
                    | System.Windows.Forms.AnchorStyles.Left
                    | System.Windows.Forms.AnchorStyles.Right);

            MainDS.SetInputData(TextEC);
            MainDS.SetInputData(DS.GetOutPut());

            MainDS.Run();
            this.Output = MainDS.GetOutPut();
        }