Ejemplo n.º 1
0
 public FieldDetails()
 {
     InitializeComponent();
     FieldModel fieldModel = new FieldModel();
     LoadFieldCallback handler = new LoadFieldCallback(LoadFieldList);
     fieldModel.GetAllFields(new Action<List<FieldModel>>(handler));
 }
Ejemplo n.º 2
0
        public AddCrop()
        {
            InitializeComponent();
            GetAllFieldsCallback handlerFields = new GetAllFieldsCallback(LoadFieldList);
            FieldModel fm = new FieldModel();
            fm.GetAllFields(new Action<List<FieldModel>>(handlerFields));

            GetAllTimePeriodsCallback handlerTpms = new GetAllTimePeriodsCallback(LoadTimePeriodList);
            TimePeriodModel tpm = new TimePeriodModel();
            tpm.GetAllTimePeriods(new Action<List<TimePeriodModel>>(handlerTpms));
        }