public MultiLineControl(VerseControl ctrlVerse, StoryStageLogic storyStageLogic,
                                MultipleLineDataConverter aMLDC, Font font, List <string> astrTestors)
            : base(storyStageLogic)
        {
            InitializeComponent();

            tableLayoutPanel.SuspendLayout();
            SuspendLayout();

            System.Diagnostics.Debug.Assert(tableLayoutPanel.RowCount == 1, "otherwise, fix this assumption: RetellingsControl.cs.20");
            tableLayoutPanel.RemoveRow(1);              // remove the one default one we start with

            // finally populate the buttons on that tool strip
            System.Diagnostics.Debug.Assert(aMLDC.Count > 0);
            int nNumRows = 0;

            for (int i = 0; i < aMLDC.Count; i++)
            {
                StringTransfer strRowData = aMLDC[i];
                string         strUnsGui  = aMLDC.MemberIDs[i];
                System.Diagnostics.Debug.Assert(astrTestors.Contains(strUnsGui));
                int nTest = astrTestors.IndexOf(strUnsGui) + 1;
                InitRow(ctrlVerse, aMLDC.LabelTextFormat, font, strRowData, nTest, ref nNumRows);
            }

            tableLayoutPanel.ResumeLayout(false);
            ResumeLayout(false);
        }
Beispiel #2
0
        protected MultipleLineDataConverter(MultipleLineDataConverter rhs)
        {
            foreach (string str in rhs.MemberIDs)
            {
                MemberIDs.Add(str);
            }

            foreach (StringTransfer aST in rhs)
            {
                Add(new StringTransfer(aST.ToString()));
            }
        }
Beispiel #3
0
 public AnswersData(MultipleLineDataConverter rhs)
     : base(rhs)
 {
 }
Beispiel #4
0
 public RetellingsData(MultipleLineDataConverter rhs)
     : base(rhs)
 {
 }