private static string GetCurrentComponentCommand(ComponentDragDropCommand command, string componentName, string goName) { if (string.IsNullOrEmpty(componentName)) { return(string.Empty); } switch (command) { default: case ComponentDragDropCommand.SetEnabledTrue: return("SetEnabled(" + componentName + ",true," + goName + ")"); case ComponentDragDropCommand.SetEnabledFalse: return("SetEnabled(" + componentName + ",false," + goName + ")"); } }
private static void SetAlternateComponentDragDropCommand(object data) { alternateComponentDragDropCommand = (ComponentDragDropCommand)data; }
private static void SetComponentDragDropCommand(object data) { componentDragDropCommand = (ComponentDragDropCommand)data; }