コード例 #1
0
 public CRF_Flux(CRF_Resource DataItem, double Amount, Method aMethod)
 {
     FAllocate    = Amount;
     FromDataItem = DataItem;
     FMethod      = aMethod;
     ToDataItem   = null;
 }
コード例 #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);
        }
コード例 #3
0
 public CRF_Flux(CRF_Consumer DataItem, double Amount, Method aMethod)
 {
     FAllocate    = Amount;
     ToDataItem   = DataItem;
     FMethod      = aMethod;
     FromDataItem = null;
 }
コード例 #4
0
 public void RemoveResource(CRF_Resource aResource)
 {
     FResources.Remove(aResource);
 }
コード例 #5
0
 public void AddResource(CRF_Resource aResource, double amount, CRF_Flux.Method aMethod)
 {
     FResources.Add(new CRF_Flux(aResource, amount, aMethod));
 }