Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        List <TrainingRecord> training  = new List <TrainingRecord>();
        TrainingRecord        training1 = new TrainingRecord(TRAINING_TYPE.COIN_BANK);

        training1.AddScore(2);
        training1.AddScore(3);
        training1.AddScore(4);
        training1.AddScore(2);
        training1.AddScore(5);
        TrainingRecord training2 = new TrainingRecord(TRAINING_TYPE.DRESS_CHOICE);

        training2.AddScore(1);
        training2.AddScore(2);
        training2.AddScore(3);
        training2.AddScore(4);
        training2.AddScore(5);
        TrainingRecord training3 = new TrainingRecord(TRAINING_TYPE.PICTURE_PUZZLE);

        training3.AddScore(5);
        training3.AddScore(2);
        training3.AddScore(3);
        training3.AddScore(2);
        training3.AddScore(4);

        training.Add(training1);
        training.Add(training2);
        training.Add(training3);

        this.training = training;

        //you have to change in the ChangeChartScale's method.
        barchart.MakeChart(training,
                           ExtractRecordListUnitFromTrainingRecord,
                           ExtractIntFromRecordUnit,
                           ExtractNameFromTrainingRecord
                           );
    }