bbrez1
Power Member
- Feb 21, 2009
- 675
- 2,378
It's really simple actually (I made it in 2-3 hours). It doesn't have nested spinner yet but I will probably create it in the next version. I will also add synonyms. It's going to be like the best spinner except this one is going to be completely free. You can find the source at the bottom (not whole, but the most important part - the spinning functions - I haven't found this source code anywhere yet). There are some tool tips on buttons for some more info. Expect the updated version till the end of the month.
Screenshot:
v1.0 Download:
v1.01 Download:
Changes in v1.01 - fixed one small bug, added word and char counter
VirusTotal:
Source:
Screenshot:
v1.0 Download:
Code:
http://udesignmedia.com/ContentSpinner.zip
v1.01 Download:
Code:
http://udesignmedia.com/ContentSpinner1.zip
VirusTotal:
Code:
http://www.virustotal.com/analisis/8a56f92c8ed8dab5365294492b58f3a7c85fadf7f3d5c85d2ea592298caada16-1278627271
Source:
Code:
private string returnSpinnedPart(string part)
{
Random random = new Random();
string[] values = part.Split('|');
if (values.Length > 0)
return values[random.Next(0, values.Length)];
return "";
}
private string returnSpinnedContent(string input)
{
string spinned = input;
try
{
Regex regexObj = new Regex(@"\{.*?\}", RegexOptions.Singleline);
MatchCollection m = regexObj.Matches(input);
foreach (Match match in m)
{
string part = returnSpinnedPart(match.Value.Replace("{", "").Replace("}", ""));
spinned = spinned.Replace(match.Value, part);
}
}
catch (ArgumentException ex)
{
MessageBox.Show("RegEx prob");
}
return spinned;
}
Last edited: