public void Apply() { if (VERBOSE) { Log.Debug("UIResetButton.Apply called()\n" + Environment.StackTrace); } var data = root_?.GetData(); data?.ResetToDefault(); // also calls RefreshAndUpdate() Assert(!refreshing_, "!refreshing_"); root_.Refresh(); }
public void Apply() { if (VERBOSE) { Log.Debug("UIResetButton.Apply called()\n" + Environment.StackTrace); } var data = root_?.GetData(); Action(data); data.RefreshAndUpdate(); Assert(!refreshing_, "!refreshing_"); root_.Refresh(); }
public void Apply() { //Log.Debug("TwistCheckbox.Apply called()\n"/* + Environment.StackTrace*/); var data = (root_ as UISegmentEndControllerPanel).SegmentEndData; if (data == null) { return; } data.Twist = this.isChecked; data.DeltaSlopeAngleDeg = 0; Assert(!refreshing_, "!refreshing_"); data.RefreshAndUpdate(); root_.Refresh(); }
public bool Left; // going away from the junction. public void Apply() { Assert(!refreshing_, "!refreshing_"); Log.Debug("LockDirCheckbox.Apply called()\n" /* + Environment.StackTrace*/); SegmentEndData data = root_?.GetData() as SegmentEndData; if (data == null) { return; } data.Corner(Left).LockLength = this.isChecked; if (ControlIsPressed && Mirror != null) { Mirror.isChecked = isChecked; } data.RefreshAndUpdate(); root_.Refresh(); }
public void Apply() { Log.Debug("UIUnFlattenJunctionsCheckbox.Apply called()\n" /* + Environment.StackTrace*/); SegmentEndData data = root_?.GetData() as SegmentEndData; if (data == null) { return; } data.FlatJunctions = this.isChecked; if (!this.isChecked) { data.Twist = false; } else { data.Twist = data.DefaultTwist; } data.DeltaSlopeAngleDeg = 0; Assert(!refreshing_, "!refreshing_"); data.RefreshAndUpdate(); root_.Refresh(); }