Esempio 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());
        }
Esempio n. 2
0
 public NcFileBuilder(CNCMachineCode machine)
 {
     this.machine      = machine;
     currentLineNumber = machine.StartingLineNumber;
 }
Esempio n. 3
0
 public static void Save(CNCMachineCode obj)
 {
     FileIOLib.XmlSerializer.SaveXML <CNCMachineCode>(obj, xmlFileName);
 }
Esempio n. 4
0
 public NCFileBuilder(CNCMachineCode machine)
 {
     this.machine = machine;
 }