internal TextBoxInstance(ReportProcessing.ProcessingContext pc, TextBox reportItemDef, int index) : base(pc.CreateUniqueName(), reportItemDef) { if (reportItemDef.IsSimpleTextBox()) { m_instanceInfo = new SimpleTextBoxInstanceInfo(pc, reportItemDef, this, index); } else { m_instanceInfo = new TextBoxInstanceInfo(pc, reportItemDef, this, index); } }
internal SimpleTextBoxInstanceInfo UpgradeToSimpleTextbox(TextBoxInstanceInfo instanceInfo, out bool isSimple) { isSimple = false; TextBox textBox = base.ReportItemDef as TextBox; if (textBox.IsSimpleTextBox()) { isSimple = true; return((SimpleTextBoxInstanceInfo)(m_instanceInfo = new SimpleTextBoxInstanceInfo(textBox, instanceInfo))); } return(null); }
internal SimpleTextBoxInstanceInfo(TextBox reportItemDef, TextBoxInstanceInfo instanceInfo) { m_reportItemDef = reportItemDef; m_originalValue = instanceInfo.OriginalValue; m_formattedValue = instanceInfo.FormattedValue; }