Click here to Skip to main content
15,897,226 members
Articles / Programming Languages / C#

VSS – OnTime Bridge

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
27 Apr 2010CPOL7 min read 35.7K   217   11  
VSS add-in providing for VSS – OnTime bridge
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Drawing;

namespace OnTimeConsoleTest
{
	class Program
	{
		static void Main(string[] args)
		{
			// test size persistence
			Size theSize;
			Size minSize;
			Point margins;

			Scm2OtGui.Scm2OtForm myForm = new Scm2OtGui.Scm2OtForm();
//			myForm.LinkLabel = "D1091";
//			myForm.LinkLabel = "T1441";
			myForm.LinkLabel = "crap";
//			myForm.VssItemSpec = "$/WIP/gfilkov/file11.txt";

			myForm.VssItemSpec = "$/Projects/Windows.NET/Test.csproj";

			bool bOk = myForm.Open();

			// test size persistence
//			theSize = myForm.Size;
			theSize = myForm.DlgSize;
			minSize = myForm.MinimumSize;
			margins = myForm.GridMargins;

			myForm.CloseDialog();
			myForm.Dispose();

			Scm2OtGui.Scm2OtForm myForm2 = new Scm2OtGui.Scm2OtForm();
			myForm2.LinkLabel = "crap";
			myForm2.VssItemSpec = "$/Projects/Windows.NET/Test.csproj";

			myForm2.DlgSize = theSize;
			myForm2.MinimumSize = minSize;
			myForm2.GridMargins = margins;

			bOk = myForm2.Open();
			myForm2.CloseDialog();

		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions