public CRF_Flux(CRF_Resource DataItem, double Amount, Method aMethod) { FAllocate = Amount; FromDataItem = DataItem; FMethod = aMethod; ToDataItem = null; }
//----------------------- 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); }
public CRF_Flux(CRF_Consumer DataItem, double Amount, Method aMethod) { FAllocate = Amount; ToDataItem = DataItem; FMethod = aMethod; FromDataItem = null; }
public void RemoveResource(CRF_Resource aResource) { FResources.Remove(aResource); }
public void AddResource(CRF_Resource aResource, double amount, CRF_Flux.Method aMethod) { FResources.Add(new CRF_Flux(aResource, amount, aMethod)); }