mattercontrol/SlicerConfiguration/SliceSettingsLayerSelector.cs
larsbrubaker 263e2325f5 Put the slicing configuration files in their own folder
updated copy write date
added bsd to a few files
Made the mapping to slice engines more procedural to support more engines.
2014-02-15 18:06:03 -08:00

31 lines
808 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MatterHackers.MatterControl.SlicerConfiguration
{
class SliceSettingsLayerSelector
{
static SliceSettingsLayerSelector globalInstance = null;
int activeLayerIndex = 1;
public static SliceSettingsLayerSelector Instance
{
get
{
if (globalInstance == null)
{
globalInstance = new SliceSettingsLayerSelector();
}
return globalInstance;
}
}
public void SaveSetting(string settingKey, string settingValue)
{
ActiveSliceSettings.Instance.SaveValue(settingKey, settingValue, this.activeLayerIndex);
}
}
}