Esempio n. 1
0
        protected override void _Dispose()
        {
            /*
             * //! dispose telegraph engine
             * if (null != m_Pipeline)
             * {
             *  m_Pipeline.Dispose();
             *  m_Pipeline = null;
             * }
             */
            //! dipose engine
            if (null != m_TelegraphAdapter)
            {
                m_TelegraphAdapter.Dispose();
                m_TelegraphAdapter = null;
            }

            //! dispose default control
            if (null != m_Control)
            {
                m_Control.Disposed -= new EventHandler(DefaultControlDisposedEventHandler);
                m_Control.Dispose();
                m_Control = null;
            }

            //! dispose default editor
            if (null != m_Editor)
            {
                m_Editor.Disposed -= new EventHandler(DefaultEditorDisposedEventHandler);
                m_Editor.Dispose();
                m_Editor = null;
            }

            base._Dispose();
        }
        private void Initialize()
        {
            RegisterSupportTelegraph(new UserTelegraph(null));
            RegisterSupportTelegraph(new GSFrameTelegraph(null));

            m_TelegraphAdapter = new SinglePhaseTelegraphAdapter(this);
        }
Esempio n. 3
0
 private void Initiliaze()
 {
     //RegisterSupportTelegraph(new XBatteryTelegraph(null));
     //
     //RegisterSupportTelegraph(new SmartBatteryTelegraph(null));
     RegisterSupportTelegraph(new UserTelegraph(null));
     RegisterSupportTelegraph(new BatteryManagementTelegraph(null));
     m_TelegraphAdapter = new SinglePhaseTelegraphAdapter(this);
 }