Beispiel #1
0
        /// <summary>
        /// 本函数为Form添加FormClosingEvent,关闭窗口时关闭rs实例。构造函数依据Stream.***Option来使用
        /// </summary>
        /// <param name="so"></param>
        public Stream(Form f, StreamOption so = StreamOption.None, AlgoOption ao = AlgoOption.Face, RecordOption ro = RecordOption.Record, Label lb = null)
        {
            m_algoOption   = ao;
            m_streamOption = so;
            m_recordOption = ro;

            m_label = lb;

            f.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormClosingHandler);

            InitPowerState();
        }
Beispiel #2
0
        /// <summary>
        /// 构造函数依据Stream.***Option来使用
        /// </summary>
        /// <param name="so"></param>
        public Stream(StreamOption so = StreamOption.None, AlgoOption ao = AlgoOption.Face, RecordOption ro = RecordOption.Record)
        {
            m_algoOption   = ao;
            m_streamOption = so;
            m_recordOption = ro;

            if (session == null)
            {
                session = PXCMSession.CreateInstance();
            }

            InitPowerState();
        }