private static void UnitZPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MValueFunct3DInput instance = d as MValueFunct3DInput; if (instance == null) { return; } instance.UpdateUnitZTab(); }
private static void UnitYPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MValueFunct3DInput instance = d as MValueFunct3DInput; if (instance == null) { return; } foreach (MValueFunct2DInput entry in instance.tables) { entry.UnitY = instance.UnitY; } }
private static void BoundsPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MValueFunct3DInput instance = d as MValueFunct3DInput; if (instance == null) { return; } if (instance.Bounds == null) { return; } foreach (MValueFunct2DInput table in instance.tables) { table.Bounds = instance.Bounds; } }
private static void FinalizeFunctionPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MValueFunct3DInput instance = d as MValueFunct3DInput; if (instance == null) { return; } int t = instance.SelectedIndex; if (-1 < t && t < instance.tables.Count && instance.FinalizeFunction) { instance.tables[t].FunctionName = instance.FunctionName; instance.tables[t].FinalizeFunction = true; } instance.FinalizeFunction = false; }
private static void NrCellsZPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MValueFunct3DInput instance = d as MValueFunct3DInput; if (instance == null) { return; } if (instance.NrCellsZ < 1) { return; } instance.AdaptTabsToNrCellZChange(); // synchronize axis values with first table foreach (MValueFunct2DInput table in instance.tables) { table.SetAxisValues(instance.tables[0].AxisValues, instance.tables[0].Bounds); } }
private static void NewPointPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MValueFunct3DInput instance = d as MValueFunct3DInput; if (instance == null) { return; } if (instance.NewPoint == null) { return; } int t = instance.SelectedIndex; if (-1 < t && t < instance.tables.Count) { instance.tables[t].NewPoint = new Point3D(instance.NewPoint.X, instance.NewPoint.Y, t); } }