Ejemplo n.º 1
0
        public static CNCMachineCode Open()
        {
            if (xmlFileName != null && xmlFileName != "" && System.IO.File.Exists(xmlFileName))
            {
                CNCMachineCode mc = FileIOLib.XmlSerializer.OpenXML <CNCMachineCode>(xmlFileName);
                if (mc == null)
                {
                    return(new CNCMachineCode());
                }
                else
                {
                    return(mc);
                }
            }

            return(new CNCMachineCode());
        }
Ejemplo n.º 2
0
 public NcFileBuilder(CNCMachineCode machine)
 {
     this.machine      = machine;
     currentLineNumber = machine.StartingLineNumber;
 }
Ejemplo n.º 3
0
 public static void Save(CNCMachineCode obj)
 {
     FileIOLib.XmlSerializer.SaveXML <CNCMachineCode>(obj, xmlFileName);
 }
Ejemplo n.º 4
0
 public NCFileBuilder(CNCMachineCode machine)
 {
     this.machine = machine;
 }