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