public void HandleAlgorithmChanged(Editing.TerrainAlgorithm value) { if (mIsValueChangedSurpressed) { return; } switch (value) { case Editing.TerrainAlgorithm.Flat: mWidget.FlatRadio.IsChecked = true; break; case Editing.TerrainAlgorithm.Linear: mWidget.LinearRadio.IsChecked = true; break; case Editing.TerrainAlgorithm.Quadratic: mWidget.QuadraticRadio.IsChecked = true; break; case Editing.TerrainAlgorithm.Trigonometric: mWidget.TrigonometricRadio.IsChecked = true; break; } }
public void HandleAlgorithm(Editing.TerrainAlgorithm value) { mIsValueChangedSurpressed = true; Editing.TerrainChangeManager.Instance.ChangeAlgorithm = value; mIsValueChangedSurpressed = false; }