public override string ToLongString() { string res = this.ToString(); foreach (DataItem a in lst) { res += '\n' + a.ToString(); } return(res); }
public override string ToLongString(string format) { string res = this.ToString() + "\n"; foreach (DataItem elem in lst) { res += $"({elem.vec.X.ToString(format)}, {elem.vec.Y.ToString(format)}) : {elem.elec.ToString(format)}\n"; } return(res); }
public void AddDefaults() { int count = 6; string str = "hn"; for (int i = 0; i < count; i++) { float step = i * 0.5f + 0.5f; str += "a"; V3DataOnGrid new1 = new V3DataOnGrid(str, new DateTime(2020, 11, 29), new Grid1D(step, 5), new Grid1D(step, 5)); V3DataCollection new2 = new V3DataCollection(str, new DateTime(2020, 11, 29)); new1.InitRandom(0.0f, 10.0f); new2.InitRandom(5, step * 5, step * 5, 0.0f, 10.0f); lst.Add(new1); lst.Add(new2); } }