public bool LoadBuildSliceProfile(string filename) { m_buildparms = new SliceBuildConfig(); bool ret = m_buildparms.Load(filename); if (ret) { m_appconfig.m_cursliceprofilename = filename; m_appconfig.Save(m_appconfigname);// this name doesn't change } return(ret); }
public bool LoadBuildSliceProfile(string filename) { m_buildparms = new SliceBuildConfig(); bool ret = m_buildparms.Load(filename); if (ret) { m_appconfig.m_cursliceprofilename = filename; m_appconfig.Save(m_apppath + m_pathsep + m_appconfigname);// this name doesn't change RaiseAppEvent(eAppEvent.eSliceProfileChanged, ""); } return(ret); }
public void DoAppStartup() { m_apppath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); //get the path separater if (RunningPlatform() == Platform.Windows) { m_pathsep = "\\"; } else { m_pathsep = "/"; } // define some default paths m_PathMachines = m_apppath + "\\Machines"; m_PathProfiles = m_apppath + "\\Profiles"; // set up directories if they don't exist if (!Directory.Exists(m_PathMachines)) { Utility.CreateDirectory(m_PathMachines); } if (!Directory.Exists(m_PathProfiles)) { Utility.CreateDirectory(m_PathProfiles); } // load the current application configuration if (!m_appconfig.Load(m_apppath + m_pathsep + m_appconfigname)) { m_appconfig.CreateDefault(); m_appconfig.Save(m_apppath + m_pathsep + m_appconfigname); } //load the current machine configuration file if (!m_printerinfo.Load(m_appconfig.m_curmachineeprofilename)) { m_printerinfo.Save(m_appconfig.m_curmachineeprofilename); } //load the current slicing profile if (!m_buildparms.Load(m_appconfig.m_cursliceprofilename)) { m_buildparms.CreateDefault(); m_buildparms.Save(m_appconfig.m_cursliceprofilename); } SetupDriver(); }