コード例 #1
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Bigdisplay.IsOpen = false;
            Line2D l    = (Line2D)LatticeLineList.SelectedItem;
            string name = (l == null) ? string.Empty : l.Name;

            LatticeDisplay.Hilight(name, true);
            SmallDisplay.Visibility = Windows.UI.Xaml.Visibility.Visible;
        }
コード例 #2
0
        private void LatticeLineList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // here we want to hilight the selected line
            Line2D l    = (Line2D)LatticeLineList.SelectedItem;
            string name = (l == null) ? string.Empty : l.Name;

            if (Bigdisplay.IsOpen)
            {
                PopupDisplay.Hilight(name, true);
            }
            else
            {
                LatticeDisplay.Hilight(name, true);
            }
        }