예제 #1
0
        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 + ")");
            }
        }
예제 #2
0
 private static void SetAlternateComponentDragDropCommand(object data)
 {
     alternateComponentDragDropCommand = (ComponentDragDropCommand)data;
 }
예제 #3
0
 private static void SetComponentDragDropCommand(object data)
 {
     componentDragDropCommand = (ComponentDragDropCommand)data;
 }