public void Copy()
        {
            BasicManeuverStrategy3dExampleNav pCopy = new BasicManeuverStrategy3dExampleNav();

            AgFlightPersistHelper pPersistHelper = new AgFlightPersistHelper();

            pPersistHelper.Merge((AGI.AgComUtilities.IPersistPropertyBag) this,
                                 (AGI.AgComUtilities.IPersistPropertyBag)pCopy);

            m_navCopy = pCopy;
        }
Ejemplo n.º 2
0
        public string CanCreateStrategy(IAgFlightProcedure pParentProc, IAgFlightBasicManeuverStrategy pNavStrategy)
        {
            try
            {
                BasicManeuverStrategy3dExampleNav pOtherNavValid = (BasicManeuverStrategy3dExampleNav)pNavStrategy;
                if (pOtherNavValid != null)
                {
                    return("Strategy is valid");
                }
            }
            catch { }

            throw new COMException("Strategy must be paired with a 3dExampleNav strategy");
        }