public FrmTransitionTest(MBSDEFAULTS.BITMAPDISPLAYTYPE Type, CMatrix Matrix, string[] BehNameArray, int BehIndex)
        {
            InitializeComponent();

            if(Type == MBSDEFAULTS.BITMAPDISPLAYTYPE.BEHAVIOR_TRANSITION)
                Text = BehNameArray[BehIndex] + " (Behavior " + (BehIndex + 1) + ") Transition Trials";
            else
                Text = "Initial Behavior Trials";

            m_displayType = Type;
            m_behaviorIndex = BehIndex;
            m_matrix = Matrix;
            m_behaviorNameArray = BehNameArray;
            m_numBehaviors = Matrix.ColumnCount - 5;
            Construct();
        }
        private Form m_parentForm; // The C# form (panel, as Dorians calls them) the bitmap is displayed on.

        //------------//
        // Constructor
        //------------//
        public CBitmapSingleBehaviorTimeTransitionManager(Form Parent,
            MBSDEFAULTS.BITMAPDISPLAYTYPE DisplayType, // display type, either initial behavor or behavior transition
            Rectangle TransitionRect, // bitmap setup of the main (results) display
            Rectangle TransDurationMaxRect,// bitmap setup of the maximum time rectangle key
            Rectangle TransDurationAveRect,// bitmap setup of the average time rectangles key
            Rectangle TransDurationMinRect, // bitmap setup of the minimum time rectangle key
            Rectangle[] BehaviorColorRectArray) // bitmaps setup of the behavior rectangles key
        {
            m_parentForm = Parent;
            m_displayType = DisplayType;
            m_transBitMap = new CBitmapSingleBehaviorTimeTransition(DisplayType, TransitionRect);
            m_transDurationMaxRect = TransDurationMaxRect;
            m_transDurationAveRect = TransDurationAveRect;
            m_transDurationMinRect = TransDurationMinRect;
            m_behaviorColorRectArray = BehaviorColorRectArray;
        }
        public FrmTransitionTest(MBSDEFAULTS.BITMAPDISPLAYTYPE Type, CMatrix Matrix, string[] BehNameArray)
        {
            InitializeComponent();

            Text = "Intitial Behavior Trials";
            BehaviorNumberLabel.Visible = false;
            BehaviorNameLabel.Visible = false;
            label6.Visible = false;
            DurationTextBoxMax.Visible = false;
            DurationTextBoxAve.Visible = false;
            DurationTextBoxMin.Visible = false;

            m_displayType = Type;
            m_behaviorIndex = -1;
            m_matrix = Matrix;
            m_behaviorNameArray = BehNameArray;
            m_numBehaviors = Matrix.ColumnCount - 3;
            Construct();
        }
        public CBitmapSingleBehaviorTimeTransition(MBSDEFAULTS.BITMAPDISPLAYTYPE DisplayType, Rectangle BitmapRec)
            : base(DisplayType, BitmapRec)
        {
            //--------------------------------------------------------------------------//
            // Initialize window Rectangles to default values.
            //-----------------------------------------------//
            // m_displayRect is the remaining region after boarders have been taken away
            // and is set in the parent constructor.

            // Shell Rectangle
            m_shellRect.X = m_displayRect.X + BMPCONSTS.TRANS_HASH_REGION_VERT_WIDTH_MARK;
            m_shellRect.Y = m_displayRect.Y + BMPCONSTS.HASH_REGION_HORZ_HEIGHT_NOMARK;
            m_shellRect.Width = m_displayRect.Width - 2* BMPCONSTS.TRANS_HASH_REGION_VERT_WIDTH_MARK;
            m_shellRect.Height = m_displayRect.Height - BMPCONSTS.HASH_REGION_HORZ_HEIGHT_MARK -
                                                          BMPCONSTS.TRANS_HASH_REGION_HORZ_HEIGHT_MARK - 10;
            // Data Rectangle
            m_dataRect.X = m_shellRect.X + BMPCONSTS.SHELL_REGION_VERT_WIDTH;
            m_dataRect.Y = m_shellRect.Y + BMPCONSTS.SHELL_REGION_HORZ_HEIGHT;
            m_dataRect.Width = m_shellRect.Width - 2* BMPCONSTS.SHELL_REGION_VERT_WIDTH;
            m_dataRect.Height = m_shellRect.Height - BMPCONSTS.SHELL_REGION_HORZ_HEIGHT;
            
            //--------------------------------------------------------------------------//
            // Create text brush
            m_textBrush = new SolidBrush(Color.Black);
            m_textFont = new Font("Tahoma", 7.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
        }
 //------------------------------------------------------------------------------//
 // Behavior Transition Over Time Bitmap Window Constructor
 //------------------------------------------------------------------------------//
 public CBitmapSingleBehaviorTimeTransitionParent(MBSDEFAULTS.BITMAPDISPLAYTYPE DisplayType, Rectangle BitmapRec)
     : base(BitmapRec) //CBitmapParent() constructor
 {
     m_displayType = DisplayType;
 }