protected override object GetEditedValue(Control EditControl, string PropertyName, object oldValue, object currentObj) { if (EditControl is RCommandDialog) { RCommandDialog w = EditControl as RCommandDialog; if (w.DialogResult.HasValue && w.DialogResult.Value) { return(w.CommandString); } return(oldValue); } return(oldValue); }
protected override Control GetEditControl(string PropName, object CurrentValue, object CurrentObj) { RCommandDialog w = new RCommandDialog(); if (CurrentValue != null) { w.CommandString = CurrentValue.ToString(); } if (CurrentObj != null) { w.Canvas = CurrentObj as BSkyCanvas; } return(w); }