public CellDataFrameBase GetControl() { if (m_control == null) { m_control = CreateControl(); } return(m_control); }
public DataDocker(CellDataDockerFactory factory) : base(factory) { InitializeComponent(); m_frame = factory.Editor.GetControl(); Controls.Add(m_frame); m_frame.Dock = DockStyle.Fill; HCellData.ShowData += HCellData_ShowData; HCellData.InvalidateData += HCellData_InvalidateData; HCellData_ShowData(DataDockerStaticData.Sender, DataDockerStaticData.Data); }
public override int SupportLevel(IDataHolder data, IBedValueReader holder) { string xmlval = CellDataFrameBase.GetStringValue(holder); if (String.IsNullOrEmpty(xmlval)) { return(0); } if (!xmlval.StartsWith("<")) { return(0); } try { var doc = new XmlDocument(); doc.LoadXml("<ROOT>" + xmlval + "</ROOT>"); return(10); } catch { return(0); } }