private void LoadSlicerSettings(SmartSlicerSettingsBase slicer_settings)
        {
            var filename = Path.Combine(Paths.WorkingFolder, slicer_settings.ConfigurationFileName);

            if (slicer_settings.ParseFile(filename))
            {
                return;
            }

            slicer_settings.SetToDefault();
        }
        public void SaveSettingsDown()
        {
            if (mCurrentSettingsStack.Count < 2)
            {
                return;
            }

            SmartSlicerSettingsBase slicerSettingsBase = mCurrentSettingsStack.Pop();

            mCurrentSettingsStack.Pop();
            mCurrentSettingsStack.Push(slicerSettingsBase);
        }
Exemple #3
0
 protected SlicerConnectionBase(string WorkingFolder, string ExeResourceFolder, SmartSlicerSettingsBase toCloneFrom)
 {
     this.WorkingFolder     = WorkingFolder;
     this.ExeResourceFolder = ExeResourceFolder;
     SlicerSettingStack     = new SmartSlicerSettingsStack(toCloneFrom);
 }
 public SmartSlicerSettingsStack(SmartSlicerSettingsBase smartSlicerSettings)
 {
     mSmartSlicerSettings = smartSlicerSettings;
     mSettingsStackList   = new Dictionary <string, Stack <SmartSlicerSettingsBase> >();
 }
Exemple #5
0
 public SmartSlicerSettingsBase(SmartSlicerSettingsBase other)
 {
     ProfileName = other.ProfileName;
     xmlSettings = other.xmlSettings.Clone();
     BuildInternalStructures();
 }