コード例 #1
0
        protected override System.Windows.Controls.Control GetEditControl(string PropName, object CurrentValue, object currentObj)
        {
            DialogHelpTextWindow helpwin = new DialogHelpTextWindow();

            if (CurrentValue != null)
            {
                helpwin.FormattedHelpHTMLText = CurrentValue.ToString();
            }
            if (currentObj != null)
            {
                helpwin.Canvas = currentObj as BSkyCanvas;
            }
            return(helpwin);
        }
コード例 #2
0
        protected override object GetEditedValue(System.Windows.Controls.Control EditControl, string PropertyName, object oldValue, object currentObj)
        {
            if (EditControl is DialogHelpTextWindow)
            {
                DialogHelpTextWindow helpwin = EditControl as DialogHelpTextWindow;

                if (helpwin.DialogResult.HasValue && helpwin.DialogResult.Value)
                {
                    return(helpwin.FormattedHelpHTMLText);
                }
                return(oldValue);
            }
            return(oldValue);
        }