Ejemplo n.º 1
0
        public CarboProject()
        {
            //UserPaths
            PathUtils.CheckFileLocationsNew();

            CarboDatabase = new CarboDatabase();
            CarboDatabase = CarboDatabase.DeSerializeXML("");

            groupList      = new ObservableCollection <CarboGroup>();
            elementList    = new ObservableCollection <CarboElement>();
            carboLevelList = new List <CarboLevel>();

            Name        = "New Project";
            Number      = "000000";
            Category    = "A building";
            Description = "New Project";
            //C1 Global
            demoArea = 0;
            C1Global = 0;
            C1Factor = 3.40; // kg CO₂ per m2
            //A5 Global
            A5Global = 0;
            A5Factor = 1400; //kg CO₂ per vaue
            //Social
            SocialCost = 50;
            //Other
            justSaved = false;
            //Totals
            Value = 0;
            //New projects don't need to be saved
            justSaved = true;
        }
Ejemplo n.º 2
0
        public CarboProject()
        {
            CarboDatabase = new CarboDatabase();
            CarboDatabase = CarboDatabase.DeSerializeXML("");

            groupList      = new ObservableCollection <CarboGroup>();
            elementList    = new ObservableCollection <CarboElement>();
            carboLevelList = new List <CarboLevel>();

            Name        = "New Project";
            Number      = "00000";
            Category    = "";
            Description = "New Project";
        }