diff options
| -rw-r--r-- | grapher/Form1.cs | 4 | ||||
| -rw-r--r-- | grapher/Layouts/LUTLayout.cs | 27 |
2 files changed, 29 insertions, 2 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs index 120bced..12fc9ff 100644 --- a/grapher/Form1.cs +++ b/grapher/Form1.cs @@ -33,9 +33,9 @@ namespace grapher try { - driverVersion = VersionHelper.ValidateAndGetDriverVersion(assemVersion); + driverVersion = VersionHelper.ValidOrThrow(); } - catch (VersionException ex) + catch (InteropException ex) { MessageBox.Show(ex.Message); throw; diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs new file mode 100644 index 0000000..97bfd60 --- /dev/null +++ b/grapher/Layouts/LUTLayout.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace grapher.Layouts +{ + public class LUTLayout : LayoutBase + { + public LUTLayout() + : base() + { + Name = "LookUpTable"; + Index = (int)AccelMode.lut; + + AccelLayout = new OptionLayout(false, Acceleration); + ScaleLayout = new OptionLayout(false, string.Empty); + CapLayout = new OptionLayout(false, Cap); + WeightLayout = new OptionLayout(false, Weight); + OffsetLayout = new OptionLayout(false, Offset); + LimitLayout = new OptionLayout(false, string.Empty); + ExponentLayout = new OptionLayout(false, Exponent); + MidpointLayout = new OptionLayout(false, string.Empty); + } + } +} |