public bool Remove(LoadFlowResultType type) { for (int i = 0; i < items.Count; ++i) { if (items[i].Type == type) { items.RemoveAt(i); return(true); } } return(false); }
public double Get(LoadFlowResultType type) { for (int i = 0; i < items.Count; ++i) { LoadFlowResultItem item = items[i]; if (item.Type == type) { return(item.Value); } } return(double.NaN); }
public LoadFlowResultItem(double value, LoadFlowResultType type) { Value = value; Type = type; }