private static void AddArc(ref List <Gcode> gcodeList) { ArcView AV = new ArcView(); Arc A = AV.ShowWindow(); if (A != null) { gcodeList.Add(A); //gcodeList.Insert(0, A); } }