public RmInitBeh(CMatrix M, int NumBehaviorsDefined, string[] BehaviorNames, int BehaviorIndex)
 {
     // 5 is entered as a param for Construct() is due to this form being used to
     // show the behavior transition as a function of time and current behavior
     // the associated matrix model of which has 5 more columns in it than the
     // number of behaviors it models: start time, end time, zero probability + one
     // for each behavior + T50 and k (slope)).
     InitializeComponent();
     m_behaviorIndex = BehaviorIndex;
     m_displayType = MBSDEFAULTS.BITMAPDISPLAYTYPE.BEHAVIOR_TRANSITION;
     Construct(M, NumBehaviorsDefined, BehaviorNames, 5);
 }
        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();
        }
 //------------//
 // Constructor
 //------------//
 // 'NumAdditionalColumns' is the column count above the number of behaviors so
 // must include the first column that represents the starting range of zero of a
 // behavior and therefore must be 1 or greater.  For the initial behavior matrix
 // 'NumAdditionalColumns' then must be 3 (for the two additional columns for start
 // time and end time plus the 0 probablility starting column) and for the
 // behavior translation as a function of time it must be 5 for the same reason
 // plus the slope and ave time in behavior... or something...
 public RmInitBeh(CMatrix M, int NumBehaviorsDefined, string[] BehaviorNames)
 {
     // The 3 entered as a param for Construct() is due to this form being used to
     // show initial behavior model.  The initial behavior matrix has 3 more
     // columns in it than the number of behaviors it models: start time, end time,
     // zero probability + one for each behavior.
     InitializeComponent();
     m_displayType = MBSDEFAULTS.BITMAPDISPLAYTYPE.INITIAL_BEHAVIOR;
     BehaviorNumberLabel.Visible = false;
     BehaviorNameLabel.Visible = false;
     label6.Visible = false;
     DurationTextBoxMax.Visible = false;
     DurationTextBoxAve.Visible = false;
     DurationTextBoxMin.Visible = false;
     Construct(M, NumBehaviorsDefined, BehaviorNames, 3);
 }
        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();
        }
        //------------------------------------------------------------------------------//
        // Class Constructors
        //------------------------------------------------------------------------------//
        public FormBehTrans(CSpanMgr SpanListMgr, BEHTRANS_TERM_MODEL BehavorTerminationMdl, int BehCount,
            string[] BehaviorNames, int BehIndex)
        {
            // This class constructor is for behavior transition matrices.
            m_displayType = MBSDEFAULTS.BITMAPDISPLAYTYPE.BEHAVIOR_TRANSITION;
            m_spanMgr = SpanListMgr;

            m_behTermMdl = BehavorTerminationMdl;

            // Set intial indicies
            m_behaviorIndex = BehIndex;
            m_activeSpanIndex = 0; // start at span index 0
            m_activeMatrixRowIndex = 0;// start at row index 0

            m_numBehaviorsDefined = BehCount;
            m_behaviorNameArray = BehaviorNames;
            ConstructForm();
            SetTransitionFormulaText();
        }
        public FormBehTrans(CSpanMgr SpanlistMgr, int BehCount, string[] BehaviorNames)
        {
            // This class constructor is for the intitial behavior matrix.
            m_displayType = MBSDEFAULTS.BITMAPDISPLAYTYPE.INITIAL_BEHAVIOR;
            m_spanMgr = SpanlistMgr;
            //m_matrixParam = SpanlistMgr;

            // Set intial indicies
            m_behaviorIndex = -1;// no behavior indices for the initial behavior matrix.
            m_activeSpanIndex = 0;
            m_activeMatrixRowIndex = 0; // start at row index 0

            m_numBehaviorsDefined = BehCount;
            m_behaviorNameArray = BehaviorNames;
            ConstructForm();
        }
        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;
        }
 //------------------------------------------------------------------------------//
 // Behavior Transition Over Time Bitmap Window Constructor
 //------------------------------------------------------------------------------//
 public CBitmapSingleBehaviorTimeTransitionParent(MBSDEFAULTS.BITMAPDISPLAYTYPE DisplayType, Rectangle BitmapRec)
     : base(BitmapRec) //CBitmapParent() constructor
 {
     m_displayType = DisplayType;
 }