public 一条指标()
 {
     InitializeComponent();
     检查指标参数 = new 检查指标();
     this.DataContext = 检查指标参数;
     标度及其说明集合ListView.DataContext = this;
     AddNewItem.MouseLeftButtonUp += AddNewItem_MouseLeftButtonUp;
 }
 public 一条指标(bool b)
 {
     //true for Add
     //false for Delete
     InitializeComponent();
     检查指标参数 = new 检查指标();
     this.DataContext = 检查指标参数;
     标度及其说明集合ListView.DataContext = this;
     if (b == false)
     {
         RotateTransform rotateTrans = new RotateTransform();
         AddNewItem.RenderTransform = rotateTrans;
         DoubleAnimation rotateAnim = new DoubleAnimation(45, TimeSpan.FromMilliseconds(300));
         rotateTrans.BeginAnimation(RotateTransform.AngleProperty, rotateAnim);
         AddNewItem.MouseLeftButtonUp -= AddNewItem_MouseLeftButtonUp;
         AddNewItem.MouseLeftButtonUp += DeleteItem_MouseLeftButtonUp;
     }
     else
     {
         AddNewItem.MouseLeftButtonUp += AddNewItem_MouseLeftButtonUp;
     }
 }