Tuesday, July 15, 2008

Test my plugs ins for windows live writer

Since I make my plug ins for windows live writer, I want to know it is works well or not.

In C#

public static string GetProductName(bool withTag)
        {
            string bareProductName = GetBareProductName();
            string productNameFormat = PdnResources.GetString("Application.ProductName.Format");
            string tag;

            if (withTag)
            {
                string tagFormat = PdnResources.GetString("Application.ProductName.Tag.Format");
                tag = string.Format(tagFormat, GetAppConfig());
            }
            else
            {
                tag = string.Empty;
            }

            string version = GetVersionNumberString(GetVersion(), 2);

            string productName = string.Format(
                productNameFormat,
                bareProductName,
                version,
                tag);

            return productName;
        }

 

In VB

Public Sub SomeMethods

Dim baseProductName As String = GetBareProductName()

End Sub 

 

Technorati Tags: ,

0 comments: