Exemple #1
0
        /// <summary>
        /// 双击错误构件序号即可定位
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ListBox listbox = (ListBox)sender;
            string  str     = listbox.SelectedItem.ToString();

            XplorerMainWindow mainWindow = Application.Current.Windows.OfType <XplorerMainWindow>().FirstOrDefault();

            mainWindow.ElementFocused(Int32.Parse(str));
            //MessageBox.Show(str, "Alert", MessageBoxButton.OK, MessageBoxImage.Error);
        }