Sunday, November 26, 2006

[BlogMyCode] I released useful plugin for VS2005

Yesturday I had too much free time, so I wrote useful add-in for VS2005. This one will help you to post nicely formatted source code right from Visual Studio 2005 by using Windows Live Writer. The source code posted lookes like that

 
 
public void AddPoint()
        {
            /*double angle = this.points.Count * this.angleIncrement;
            double x = 250 + 250 * Math.Cos(angle);
            double y = 250 + 250 * Math.Sin(angle);*/
            if (maxFine == points.Count)
                return;
            if (t == -Math.PI)
            {
                mySign = 1;
            }
            if (t == Math.PI)
            {
                mySign = -1;
            }
            t += mySign * angleIncrement;
 
            R = (1 + Math.Sin(t)) * (1 + 0.9 * Math.Cos(8 * t)) * (1 + 0.1 * Math.Cos(24 * t)) * 500 / 10;
 
 
            nextPoint.X = 125 + R * Math.Cos(t);
            nextPoint.Y = 250 - R * Math.Sin(t);
 
            this.points.Add(nextPoint);
 
        }
 
Is't it so cute? For more information and download, please visit my website at http://sharpsoft.net/
 



Link to [BlogMyCode] I released useful plugin for VS2005

No comments: