Esempio n. 1
0
 public CRF_Flux(CRF_Resource DataItem, double Amount, Method aMethod)
 {
     FAllocate    = Amount;
     FromDataItem = DataItem;
     FMethod      = aMethod;
     ToDataItem   = null;
 }
Esempio n. 2
0
        //-----------------------
        public CRF_Resource AddResource(string aName, string aLabel, Color aColor, double aLimit)
        {
            CRF_Resource Temp = new CRF_Resource(aName, aLabel, aColor, aLimit);

            this.Add(Temp);
            return(Temp);
        }
Esempio n. 3
0
 public CRF_Flux(CRF_Consumer DataItem, double Amount, Method aMethod)
 {
     FAllocate    = Amount;
     ToDataItem   = DataItem;
     FMethod      = aMethod;
     FromDataItem = null;
 }
Esempio n. 4
0
 public void RemoveResource(CRF_Resource aResource)
 {
     FResources.Remove(aResource);
 }
Esempio n. 5
0
 public void AddResource(CRF_Resource aResource, double amount, CRF_Flux.Method aMethod)
 {
     FResources.Add(new CRF_Flux(aResource, amount, aMethod));
 }