public void Initialize(string rigId) { // Get Rig By Id RigDetails = m_rigService.GetRigById(rigId); // Get Rigs equipment by rig id. Systems.Clear(); foreach (Equipment system in m_equipmentService.GetEquipmentByRigId(rigId).Where(e => e.IsSystem)) { Systems.Add(system); } }
public override void Initialize(Dictionary <string, object> pageParameterBundle) { string rigId = pageParameterBundle["RigId"] as string; if (string.IsNullOrEmpty(rigId)) { return; } Rig rigToEdit = m_rigService.GetRigById(rigId); m_rigUnderEdit = rigToEdit.Copy(); }