private void UpdateLinePlacement() { if (radPlacementGrid.IsChecked.Value) { this.LinePlacement = LinePlacementType.Grid; } else if (radPlacementPlateXY.IsChecked.Value) { this.LinePlacement = LinePlacementType.PlateXY; } else if (radPlacementPlateXZ.IsChecked.Value) { this.LinePlacement = LinePlacementType.PlateXZ; } else if (radPlacementPlateYZ.IsChecked.Value) { this.LinePlacement = LinePlacementType.PlateYZ; } else if (radPlacementRandomInstant.IsChecked.Value) { this.LinePlacement = LinePlacementType.RandomInstant; } else if (radPlacementRandomPersist.IsChecked.Value) { this.LinePlacement = LinePlacementType.RandomPersist; } else { throw new ApplicationException("Unknown line placement option"); } }