コード例 #1
0
ファイル: ILearning.cs プロジェクト: Shaunyl/media-player
 protected void OnPredictionDone(PredictionDoneEventArgs e)
 {
     if (PredictionDone != null)
     {
         PredictionDone(this, e);
     }
 }
コード例 #2
0
ファイル: ILearning.cs プロジェクト: Shaunyl/media-player
        private void learning_LearningDone(object sender, LearningDoneEventArgs e)
        {
            PredictionDoneEventArgs pd = new PredictionDoneEventArgs();

            if (e.Prediction == 1)
            {
                pd.Media = e.Media;
            }

            OnPredictionDone(pd);
        }