public void SetData(IPipeData pPipeData) { pPUMP = pPipeData as IPUMP; TxbID.Text = pPUMP.ID; TxbACQUISITION_DATE.Text = pPipeData.ACQUISITION_DATE; TxbCo_X.Text = pPUMP.X; TxbCO_Y.Text = pPUMP.Y; TxbGROUND_LEVEL.Text = pPUMP.GROUND_LEVEL; TxbBOTTOM_LEVEL.Text = pPUMP.BOTTOM_LEVEL; // TxbPROCESS_DATE.Text = pPipePoint.PROCESS_Date; //TxbPROCESS_UNIT.Text = pPipePoint.PROCESS_Unit; TxbROAD_NAME.Text = pPUMP.ROAD_NAME; TxbSTATE.Text = pPUMP.STATE; TxbSURVEY_ID.TextChanged -= new EventHandler(TxbSURVEY_ID_TextChanged); TxbSURVEY_ID.Text = pPUMP.SURVEY_ID; TxbSURVEY_ID.TextChanged += new EventHandler(TxbSURVEY_ID_TextChanged); TxbSYSTEM_TYPE.Text = pPUMP.SYSTEM_TYPE; TxbBOTTOM_AREA.Text = pPUMP.BOTTOM_AREA; TxbTOP_LEVEL.Text = pPUMP.TOP_LEVEL; TxbTOP_AREA.Text = pPUMP.TOP_AREA; TxbWATER_LEVEL.Text = pPUMP.WATER_LEVEL; TxbRemark.Text = pPUMP.Remark; }
public void Clear() { pPUMP = new PUMP(); TxbID.Clear(); TxbACQUISITION_DATE.Clear(); TxbCo_X.Clear(); TxbCO_Y.Clear(); TxbGROUND_LEVEL.Clear(); TxbBOTTOM_LEVEL.Clear(); // TxbPROCESS_DATE.Text = pPipePoint.PROCESS_Date; //TxbPROCESS_UNIT.Text = pPipePoint.PROCESS_Unit; TxbROAD_NAME.Clear(); TxbSTATE.ResetText(); TxbSURVEY_ID.Clear(); TxbSYSTEM_TYPE.ResetText(); TxbBOTTOM_AREA.Clear(); TxbTOP_LEVEL.Clear(); TxbTOP_AREA.Clear(); TxbWATER_LEVEL.Clear(); TxbRemark.Clear(); }