public VerseControl(StoryStageLogic storyStageLogic, int nVerseNumber, StoryEditor theSE, LineFlowLayoutPanel parentFlowLayoutPanel) : base(storyStageLogic) { VerseNumber = nVerseNumber; TheSE = theSE; ParentFlowLayoutPanel = parentFlowLayoutPanel; }
public VerseBtControl(StoryEditor theSE, LineFlowLayoutPanel parentFlowLayoutPanel, VerseData dataVerse, int nVerseNumber) : base(theSE.theCurrentStory.ProjStage, nVerseNumber, theSE, parentFlowLayoutPanel) { _verseData = dataVerse; InitializeComponent(); tableLayoutPanel.Controls.Add(labelReference, 0, 0); tableLayoutPanel.Controls.Add(buttonDragDropHandle, 1, 0); labelReference.Text = CstrVerseName + VerseNumber; if (theSE.viewTransliterationVernacular.Checked && !String.IsNullOrEmpty(theSE.LoggedOnMember.TransliteratorVernacular)) { if (TransliteratorVernacular == null) { TransliteratorVernacular = new DirectableEncConverter(theSE.LoggedOnMember.TransliteratorVernacular, theSE.LoggedOnMember. TransliteratorDirectionForwardVernacular, NormalizeFlags.None); } } else { TransliteratorVernacular = null; // in case it was set from before } if (theSE.viewTransliterationNationalBT.Checked && !String.IsNullOrEmpty(theSE.LoggedOnMember.TransliteratorNationalBT)) { if (TransliteratorNationalBT == null) { TransliteratorNationalBT = new DirectableEncConverter(theSE.LoggedOnMember.TransliteratorNationalBT, theSE.LoggedOnMember. TransliteratorDirectionForwardNationalBT, NormalizeFlags.None); } } else { TransliteratorNationalBT = null; } InitControls(theSE); }
public ConsultNotesControl(StoryEditor theSE, LineFlowLayoutPanel parentFlowLayoutPanel, StoryStageLogic storyStageLogic, ConsultNotesDataConverter aCNsDC, int nVerseNumber, TeamMemberData.UserTypes eLoggedOnMemberType) : base(storyStageLogic, nVerseNumber, theSE, parentFlowLayoutPanel) { _theCNsDC = aCNsDC; InitializeComponent(); tableLayoutPanel.SuspendLayout(); SuspendLayout(); labelReference.Text = (VerseNumber == 0) ? CstrZerothVerseName : CstrVerseName + VerseNumber; tableLayoutPanel.Controls.Add(labelReference, 0, 0); tableLayoutPanel.Controls.Add(buttonDragDropHandle, 1, 0); if (aCNsDC.Count > 0) { int nRowIndex = 1; foreach (ConsultNoteDataConverter aCNDC in aCNsDC) { if (aCNDC.Visible || theSE.hiddenVersesToolStripMenuItem.Checked) { ConsultNoteControl aCNCtrl = new ConsultNoteControl(this, storyStageLogic, aCNsDC, aCNDC, eLoggedOnMemberType); aCNCtrl.Name = CstrFieldNameConsultantNote + nRowIndex; aCNCtrl.ParentControl = this; InsertRow(nRowIndex); tableLayoutPanel.SetColumnSpan(aCNCtrl, 2); tableLayoutPanel.Controls.Add(aCNCtrl, 0, nRowIndex); nRowIndex++; } } } tableLayoutPanel.ResumeLayout(false); ResumeLayout(false); }