private DataTableLatticePlaneRow createRow(LatticePlane plane) { var dr = NewDataTableLatticePlaneRow(); dr.LatticePlane = plane; dr.Enabled = plane.Enabled; dr.h = plane.Index.H; dr.k = plane.Index.K; dr.l = plane.Index.L; dr.Translation = plane.Translation.ToString("f3"); dr.Color = ColorImage(plane.ColorArgb); return(dr); }
public void Add(LatticePlane bound) => Rows.Add(createRow(bound));
public void Replace(LatticePlane bound, int i) => ReplaceBase(Rows, createRow(bound), i);