示例#1
0
 public CellDataFrameBase GetControl()
 {
     if (m_control == null)
     {
         m_control = CreateControl();
     }
     return(m_control);
 }
示例#2
0
        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);
        }
示例#3
0
        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);
            }
        }