예제 #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);
 }