using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace FLY.Simulation.Casting
{
    public delegate void ActiveEventHandler(object sender);

    public interface ICurveService : INotifyPropertyChanged
    {
        /// <summary>
        /// AD曲线校正方式
        /// </summary>
        CurveCorrectWay CorrectWay { get; set; }
        /// <summary>
        /// 标记，用于告诉 客户端，当前的曲线类型， 自然对数 / 直线拟合 / 二次拟合
        /// </summary>
        CurveType Flag { get; set; }
        ObservableCollection<CurveCell> Curves { get; }
        void Apply();
        int AD2Value(int ad, AD2ValueFlag flag);
    }
}
