Exemplo n.º 1
0
        /*!
         * Deletes the current operator associated with the HBaseView object (if any) and resets the HBaseView's
         * current operator to the new one
         * \param new_operator A reference to an HBaseOperator object to be used as the new operator
         */
        public void SetCurrentOperator(HBaseOperator new_operator)
        {
            HBaseOperator current_operator = m_pHView.GetCurrentOperator();

            if (current_operator != null)
            {
                current_operator.Dispose();
            }

            if (m_pHOperator != null)
            {
                ((HBaseOperator)m_pHOperator).Dispose();
            }

            m_pHOperator = new_operator;
            m_pHView.SetCurrentOperator((HBaseOperator)m_pHOperator);
        }