public void CreateTextBoxAxisLink(TextBoxPair pair, Enums.Axis axis, Enums.AxisDeviceType axisDevType) { this.lookUpTable.Add(pair, axis); switch (axisDevType) { case Enums.AxisDeviceType.DeviceOne: textBoxAxisPairDevOne = new TextBoxAxisPair(pair, axis); break; case Enums.AxisDeviceType.DeviceTwo: textBoxAxisPairDevTwo = new TextBoxAxisPair(pair, axis); break; case Enums.AxisDeviceType.DeviceThree: textBoxAxisPairDevThree = new TextBoxAxisPair(pair, axis); break; case Enums.AxisDeviceType.MoveTo: textBoxAxisPairMoveTo = new TextBoxAxisPair(pair, axis); break; case Enums.AxisDeviceType.Shift: textBoxAxisPairShift = new TextBoxAxisPair(pair, axis); break; } }
public TextboxAxisLinkLUT(TextBoxAxisPair pair_1, TextBoxAxisPair pair_2 = null, TextBoxAxisPair pair_3 = null) { lookUpTable = new Dictionary <TextBoxPair, Enums.Axis> { { pair_1.BoxPair, pair_1.Axis }, { pair_2.BoxPair, pair_2.Axis }, { pair_3.BoxPair, pair_3.Axis } }; }