예제 #1
0
        void SaveProperty()
        {
            cGUI_ListWellProperty GUI_ListWellProperty = new cGUI_ListWellProperty();
            GUI_ListWellProperty.IsCheckBoxes = false;

            if (GUI_ListWellProperty.Run().IsSucceed == false) return;
            List<cPropertyType> ListSelectedProp = GUI_ListWellProperty.GetOutPut();

            cExtendedTable ToBeSaved = cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate().GetPropertyAsTable(ListSelectedProp[0]);

            cTableToFile CTF = new cTableToFile();
            CTF.IsDisplayUIForFilePath = true;
            CTF.IsTagToBeSaved = true;
            CTF.SetInputData(ToBeSaved);
            CTF.IsRunEXCEL = true;
            CTF.Run();
        }
예제 #2
0
        private void simpleTestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Random RNd = new Random();

            int NumRow = 8;
            double InitialValue = 10;
            int NumCol = 12;


            cExtendedTable FinalTable = null;
            for (int Col = 1; Col <= NumCol; Col++)
            {


                for (int Repeat = 1; Repeat <= NumRow; Repeat++)
                {
                    cExtendedTable GeneratedTable = new cExtendedTable(1, 1000, InitialValue);

                    cAddNoise AN = new cAddNoise();
                    AN.DistributionType = eRandDistributionType.GAUSSIAN;
                    AN.Mean = 20;// Col*1.2;
                    AN.Stdv = 0.5 * Col;
                    AN.SetInputData(GeneratedTable);
                    AN.Run();
                    GeneratedTable = AN.GetOutPut();



                    //for (int i = 0; i < GeneratedTable[0].Count; i++)
                    //{
                    //    GeneratedTable[0][i] = Col;
                    //    GeneratedTable[1][i] = Repeat;
                    //}

                    GeneratedTable.ListRowNames = new List<string>();
                    for (int i = 0; i < GeneratedTable[0].Count; i++)
                    {
                        GeneratedTable.ListRowNames.Add(ConvertPosition(Col, Repeat));
                    }

                    if (FinalTable == null)
                        FinalTable = new cExtendedTable(GeneratedTable);
                    else
                    {
                        cMerge M = new cMerge();
                        M.IsHorizontal = false;
                        M.SetInputData(FinalTable, GeneratedTable);
                        M.Run();
                        FinalTable = M.GetOutPut();
                    }

                }


            }

            FinalTable.Name = "generated screen";
            FinalTable[0].Name = "Volume";
            //  FinalTable[1].Name = "Row";
            //  FinalTable[2].Name = "Volume";
            cDisplayExtendedTable DET = new cDisplayExtendedTable();
            //DET.SetInputData(FinalTable);
            //DET.Run();

            cTableToFile TTF = new cTableToFile();
            TTF.SetInputData(FinalTable);
            TTF.IsDisplayUIForFilePath = true;
            TTF.IsRunEXCEL = true;
            TTF.IsAppend = false;
            TTF.Run();



        }
예제 #3
0
 private void ToolStripMenuItem_SaveAsCSV(object sender, EventArgs e)
 {
     cTableToFile TCSV = new cTableToFile();
     TCSV.SetInputData(this.Input);
     TCSV.IsDisplayUIForFilePath = true;
     TCSV.IsRunEXCEL = true;
     TCSV.Run();
 }