void FixValueInternal(bool combined) { if (binding == null) { return; } if (EnableUndo) { if (binding.DrawnAs == Data.DrawnAs.CenterAndAmplitude) { binding.SetCenter(internalValue[0], combined); binding.SetAmplitude(internalValue[1], combined); } else { binding.SetMin(internalValue[0], combined); binding.SetMax(internalValue[1], combined); } } else { throw new Exception("Not Implemented."); } }
public void Update() { if (binding != null) { internalValue[0] = binding.GetMin(); internalValue[1] = binding.GetMax(); } if (Manager.NativeManager.DragFloat2(Label + id, internalValue)) { if (EnableUndo) { binding.SetMin(internalValue[0]); binding.SetMax(internalValue[1]); } else { Console.WriteLine("Not implemented."); } } }