/// <summary> /// Event handler for the ShowHeavy checkbox. /// Shows or hides heavy XICs based on checkbox value. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> private void ShowHeavy_OnUnchecked(object sender, RoutedEventArgs e) { LightColumn.Width = new GridLength(100, GridUnitType.Star); HeavyColumn.Width = new GridLength(0, GridUnitType.Star); FragmentAreaRow.Height = new GridLength(0, GridUnitType.Pixel); HeavyFragmentIonXic.Visibility = Visibility.Collapsed; HeavyFragmentIonXic.UpdateLayout(); LinkColumn.Width = new GridLength(0, GridUnitType.Pixel); }
/// <summary> /// Event handler for the ShowFragment checkbox. /// Shows or hides fragment XICs based on checkbox value. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> private void ShowFragment_OnUnChecked(object sender, RoutedEventArgs e) { FragmentPlotRow.Height = new GridLength(0, GridUnitType.Pixel); FragmentTitleRow.Height = new GridLength(0, GridUnitType.Pixel); PrecursorPlotRow.Height = new GridLength(100, GridUnitType.Star); FragmentAreaRow.Height = new GridLength(0, GridUnitType.Pixel); FragmentLinkRow.Height = new GridLength(0, GridUnitType.Pixel); FragmentIonXic.Visibility = Visibility.Collapsed; FragmentIonXic.UpdateLayout(); HeavyFragmentIonXic.Visibility = Visibility.Collapsed; HeavyFragmentIonXic.UpdateLayout(); }
/// <summary> /// Event handler for the ShowHeavy checkbox. /// Shows or hides heavy XICs based on checkbox value. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The e.</param> private void ShowHeavy_OnChecked(object sender, RoutedEventArgs e) { LightColumn.Width = new GridLength(50, GridUnitType.Star); HeavyColumn.Width = new GridLength(50, GridUnitType.Star); PrecursorIonXic.Visibility = Visibility.Visible; PrecursorIonXic.UpdateLayout(); LinkColumn.Width = new GridLength(30, GridUnitType.Pixel); if (ShowFragment.IsChecked == true) { HeavyFragmentIonXic.Visibility = Visibility.Visible; HeavyFragmentIonXic.UpdateLayout(); FragmentAreaRow.Height = new GridLength(20, GridUnitType.Pixel); FragmentLinkRow.Height = new GridLength(30, GridUnitType.Pixel); } }