public static string GetTooltip(ETooltip pTooltip) { switch (pTooltip) { case ETooltip.EstimatedTotalSize: return("Estimated total size of resulting OBJ files.\n\n" + "The actual size can be very different. Estimation is based on average tree density which is different for every forest."); case ETooltip.EstimatedPartitionSize: return("Estimated size of 1 file partition."); case ETooltip.avgTreeHeighSlider: return("Set tree height manually or let it be calculated automatically by checking 'automatic tree height' checkbox."); case ETooltip.sequenceFile: return("A file containing a configuration of a sequence process. Replaces the forest file. Read a required file format in the documentation."); case ETooltip.toggleConsole: return("Toggles visibility of a console. In the console are logged some extra information about the process."); case ETooltip.openResult: return("Opens a folder where the last result has been exported."); } return("- no tooltip defined"); }
public static void AssignTooltip(ToolTip pTooltipForm, Control pControl, ETooltip pTooltip) { pTooltipForm.SetToolTip(pControl, GetTooltip(pTooltip)); }