12. Mai 2014 08:41
12. Mai 2014 08:59
13. Mai 2014 14:25
13. Mai 2014 14:48
13. Mai 2014 21:47
16. Mai 2014 08:38
19. Mai 2014 08:37
namespace NAVText
{
    [ControlAddInExport("NAVText")]
    public class EditorField : WinFormsControlAddInBase , IWinFormsControlAddIn, IValueControlAddInDefinition<object>
    {
        HtmlEditor control = new HtmlEditor();
        protected override Control CreateControl()
        {
            PredefinedButtonSets.SetupDefaultButtons(control);
            control.MinimumSize = new Size(50, 0);
            control.MaximumSize = new Size(500, Int32.MaxValue);
            
            
           return control;
        }
       
        
        #region IObjectControlAddInDefinition Members
        public event ControlAddInEventHandler ControlAddIn;
        public bool HasValueChanged
        {
            get { return true; }
        }
        public object Value
        {
            get
            {
                return this.control.Html;
            }
            set
            {
                if (value is byte[])
                
                {
                    byte[] data = (byte[])value;
                    
                    
                    if (data != null)
                    {
                        this.control.Html = Convert.ToString(data);
                    }
                }
            }
        }
        #endregion
        
    }
}