Ejemplo n.º 1
0
        private void LoadSlicerSettings(SmartSlicerSettingsBase slicer_settings)
        {
            var filename = Path.Combine(Paths.WorkingFolder, slicer_settings.ConfigurationFileName);

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

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

            SmartSlicerSettingsBase slicerSettingsBase = mCurrentSettingsStack.Pop();

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