mattercontrol/SlicerConfiguration/SliceSettingsLayerSelector.cs
2014-03-24 18:56:41 -07:00

37 lines
911 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 int ActiveLayerIndex
{
get { return activeLayerIndex; }
}
public void SaveSetting(string settingKey, string settingValue)
{
ActiveSliceSettings.Instance.SaveValue(settingKey, settingValue, this.activeLayerIndex);
}
}
}