private dynamic DoGetUnicodeTextDragDropData(IAppCellSelectionIter aSelection) { var lText = "["; aSelection.First(); while (!aSelection.IsDone()) { #if (EmulateDragAndDropError) if (!string.IsNullOrEmpty(sOld) && sOld != aSelection.Current().GetFieldCellPath(false)) { throw new Exception("bad field"); } sOld = aSelection.Current().GetFieldCellPath(false); #endif lText += '"' + aSelection.Current().GetFieldCellPath(false) + '"'; aSelection.Next(); if (!aSelection.IsDone()) { lText += ','; } } lText += ']'; lText = '{' + string.Format("name:\"WKCA.Sample\",cells:{0}", lText) + "}\0"; return(System.Text.Encoding.Unicode.GetBytes(lText)); }
public dynamic GetData(IAppCellSelectionIter aSelection) { if (_onExecute != null) { return(_onExecute(aSelection)); } return(null); }
public dynamic GetData(IAppCellSelectionIter aSelection) { try { if (_onExecute != null) { return(_onExecute(aSelection)); } } catch (Exception e) { if (!UnhandledExceptionManager.HandleException(this, e)) { throw; } } return(null); }