public void SaveCurrentMachineConfig() { try { m_printerinfo.Save(m_appconfig.m_curmachineeprofilename); } catch (Exception ex) { DebugLogger.Instance().LogRecord(ex.Message); } }
private void CheckAndCreateDefaultMachines() { //Check to see if the null machine exists if (!File.Exists(UVDLPApp.Instance().m_PathMachines + UVDLPApp.m_pathsep + "NullMachine.machine")) { DebugLogger.Instance().LogWarning("Null Machine not found, creating..."); // if it doesn't, create it MachineConfig mc = new MachineConfig(); mc.CreateNullMachine(); if (!mc.Save(UVDLPApp.Instance().m_PathMachines + UVDLPApp.m_pathsep + "NullMachine.machine")) { DebugLogger.Instance().LogError("Could not save Null Machine"); } } //Check to see if the default SLA machine exists if (!File.Exists(UVDLPApp.Instance().m_PathMachines + UVDLPApp.m_pathsep + "Default_SLA.machine")) { DebugLogger.Instance().LogWarning("Default_SLA Machine not found, creating..."); // if it doesn't, create it MachineConfig mc = new MachineConfig(); if (!mc.Save(UVDLPApp.Instance().m_PathMachines + UVDLPApp.m_pathsep + "Default_SLA.machine")) { DebugLogger.Instance().LogError("Could not save Default_SLA Machine"); } } }
private void cmdOK_Click(object sender, EventArgs e) { if (GetData()) { //UVDLPApp.Instance().SaveCurrentMachineConfig(); m_config.Save(m_config.m_filename); Close(); } }