Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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();
        }