示例#1
0
 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);
 }
示例#2
0
文件: Field.cs 项目: kikuchit/example
 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);
 }
示例#3
0
 /// <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);
 }