Beispiel #1
0
        // DISPLAY CLICK EVENTS

        /// <summary>
        /// Toggles the dynamic gridlines on and off, then draws any active vectors on currently on the plane
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ToggleDynamicGridLines_Click(object sender, RoutedEventArgs e)
        {
            if (sender is ToggleButton tb)
            {
                bool ischecked = tb.IsChecked == true;

                if (ischecked)
                {
                    Grid.ChangeGridLineState(true, false);
                }
                else
                {
                    Grid.ChangeGridLineState(false, false);
                }

                Grid.ShowActiveLines(Plane);
            }
        }