C# Code Snippet, Math, Calculate Out Measuring Values
$30-5000 USD
Closed
Posted about 13 years ago
$30-5000 USD
Paid on delivery
I am looking for a simple C# code snippet.
I need this method(s) to accept an integer, which represents the value on a Telerik gauge object. Experience with the control is not neccesary, since I just need integers as a return value using just straight .NET class (3.5, no 4). Rather than hardcoding the value, I need to be able to pass a value and it figure out what values should be used to make the gauge look ok.
The following are the values I am looking for:
MajorTicks
Max
MiddleTicks
Min
MinorTicks
I believe I have already figured out the method for Max:
public int ReturnMax(int value)
{
int max = (int)(value * 1.5);
max = max + (10 - max % 10);
int customMax = [login to view URL](100, max);
return customMax;
}
I would like the other methods delivered in a similiar format. No commenting please.
More on the control:
<[login to view URL]>