Ejemplo n.º 1
0
        private void MapDataToModel(StationInspectionTaskResult result)
        {
            PropertyMapper
            <StationInspectionTaskResult, StationInspectionTaskModel> mapper
                =
                    new PropertyMapper
                    <StationInspectionTaskResult, StationInspectionTaskModel
                    >();

            mapper.MapFrom(result, this);
        }
Ejemplo n.º 2
0
        void deleteInspectionResultLink_Click(object sender, EventArgs e)
        {
            StationInspectionTaskResult result =
                inspectionsView.GetFocusedRow() as StationInspectionTaskResult;

            if (result == null)
            {
                return;
            }

            if (DeleteInspectionResult != null)
            {
                DeleteInspectionResult(this, new SingleChoiceActionRequestEventArgs <StationInspectionTaskResult>(result));
            }
        }
Ejemplo n.º 3
0
 public StationInspectionTaskModel(StationInspectionTaskResult taskResult)
 {
     m_taskResult = taskResult;
     MapDataToModel(m_taskResult);
 }