123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace NEIntelligentControl2.Views.Windturbine
- {
- /// <summary>
- /// 参数对比标题
- /// </summary>
- public partial class ComparisonHeader : UserControl
- {
- public string Header { get; set; }
- public Action<string> OnClick { get; set; }
- public ComparisonHeader()
- {
- InitializeComponent();
- }
- private void UserControl_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- OnClick?.Invoke(Header);
- }
- }
- }
|