private void axisOptions_Click( object sender , RoutedEventArgs e ) { Grid plottingGrid = contentGrid.Children[1] as Grid; SlopePlotCanvas currCanvas = null; if ( plottingGrid != null ) { currCanvas = plottingGrid.Children[3] as SlopePlotCanvas; } if ( currCanvas == null ) return; AxisOptionsDialog dlg = new AxisOptionsDialog( this , currCanvas ); dlg.ShowDialog(); }
/// <summary> /// Allows user to specify plotting extents and major/minor grid resolution /// </summary> private void axisOptions_Click( object sender , RoutedEventArgs e ) { Grid currGrid = windowManager.SelectedContent as Grid; SlopeCanvas currCanvas = null; if ( currGrid != null ) { currCanvas = currGrid.Children[2] as SlopeCanvas; } if ( currCanvas == null ) return; AxisOptionsDialog dlg = new AxisOptionsDialog( this , currCanvas ); dlg.ShowDialog(); }