public Display(ApplicationConfig config) { this.background = (Field)FieldFactory.MakeField(config.BackgroundField); this.numberField = (FieldString)FieldFactory.MakeField(config.NumberField); this.trialField = (FieldString)FieldFactory.MakeField(config.TrialField); this.recordField = (FieldString)FieldFactory.MakeField(config.RecordField); this.resultField = (FieldImage)FieldFactory.MakeField(config.ResultField); }
/// <summary> /// イメージフィールド書き出し /// </summary> /// <param name="field"></param> public void DrawField(FieldImage field) { this.grp.FillRectangle(field.BackColor, field.Rect); this.grp.DrawImage(new Bitmap(field.ImagePath), field.Rect); }