コード例 #1
0
            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);
            }
コード例 #2
0
 public void Add(LatticePlane bound) => Rows.Add(createRow(bound));
コード例 #3
0
 public void Replace(LatticePlane bound, int i) => ReplaceBase(Rows, createRow(bound), i);