public WorkSpaceClass()
        {
            NLIST_FILENAME       = "";
            ELIST_FILENAME       = "";
            TowerModelInstance   = new TowerModel();
            HeatDoublerInstances = new Models.HeatDoublers();
            ROOT_DIR             = "";
            Category             = new WorkSpaceCategory();

            Env = new WorkSpaceRunModelEnvironment();
        }
        public WorkSpaceClass(string nfilename, string efilename, string rootdir,
                              string dbname, TowerModel twmodel, Models.HeatDoublers hdinst,
                              WorkSpaceCategory Category)
        {
            NLIST_FILENAME       = nfilename;
            ELIST_FILENAME       = efilename;
            ROOT_DIR             = rootdir;
            DBNAME               = dbname;
            TowerModelInstance   = twmodel;
            HeatDoublerInstances = hdinst;

            this.Category = Category;
        }
Esempio n. 3
0
        private void BtnImporter_Click_1(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.OpenFileDialog opfile = new System.Windows.Forms.OpenFileDialog();
            opfile.Filter           = "CSV Files (*.csv)|*.csv";
            opfile.RestoreDirectory = true;
            if (opfile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string filename = opfile.FileName;

                Models.HeatDoublers hdlist = new Models.HeatDoublers();
                hdlist.HeatDoublerBuilder(filename);

                ShowImportedData.ItemsSource = hdlist.list;
                MainWindow.WorkSpaceInstance.HeatDoublerInstances = hdlist;
                MainWindow.paras.UsingVirtualHeater = 1;
            }
        }
Esempio n. 4
0
        public void VTKLabelGetter(ref vtkPoints pointsrc, ref vtkStringArray strArr, ref vtkCellArray cellArr, FormParas paras,
                                   WorkSpaceClass WorkSpaceInstance)
        {
            Models.HeatDoublers hdlist = WorkSpaceInstance.HeatDoublerInstances;

            //MessageBox.Show(hdlist.listSize.ToString());

            strArr.SetNumberOfValues(hdlist.listSize);

            strArr.SetName("111");
            for (int i = 0; i < hdlist.listSize; i++)
            {
                pointsrc.InsertNextPoint(hdlist.list[i].X, 0, -hdlist.list[i].Y);
                strArr.SetValue(i, hdlist.list[i].Name);
                //MessageBox.Show(hdlist.list[i].Name);
                cellArr.InsertNextCell(1);
                cellArr.InsertCellPoint(i);
            }
        }