TFS API Part 1: Domain Picker
When creating application for TFS the first thing you need to do is connect to TFS.
There is couple of ways to do that, in this post I’ll show how to connect TFS using DomainPicker.
First add reference for Microsoft.TeamFoundation,Microsoft.TeamFoundation.Client
located in - C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\
Add using for Proxy and Server.
Download Demo Project
using Microsoft.TeamFoundation.Proxy;
using Microsoft.TeamFoundation.Server;
DomainProjectPicker dp = new DomainProjectPicker();
DomainProjectPicker constructor can contain DomainProjectPickerMode Enumeration.
#DomainProjectPickerMode
DomainProjectPickerMode.AllowMultiSelect;
DomainProjectPickerMode.AllowProjectSelect;//Requires AllowMultiSelect
DomainProjectPickerMode.DisableServerSelect;//Must provide SelectedServer
DomainProjectPickerMode.ForwardWndMsgOutsideVS;
DomainProjectPickerMode.None;
#
dp.ShowDialog();
After selecting TFS server and the desire project you can take those projects with ProjectInfo
if (dp.SelectedServer != null)
{
ProjectInfo[] projects = dp.SelectedProjects;
list_projects.DataSource = projects;
}
Download Demo Project
How To Remove Watermarks From Windows 7 Desktop
I installed Windows 7 and it’s Rocks!!!
Love it! working great for me.
If you like to “Improve” your Windows 7 you may try the following link:
Remove Windows 7 Watermarks
Does 20 NIS Makes A Difference?
I really love to help people in any way I can.
“Donation”:
Each time I see a barehanded or some one asking for help (money) I don’t think twice and helps them.
But today I had a very touching event, while walking towards the car a men approach to me and start telling me a story – He is very poor ,homeless and very sick person, he asked for money…
I know what you think – money for the next “dose” or firewater.
But how should I know?
I don’t!
I open my wallet and pull 20 NIS bill and gave him, he was so excited he gave me a kiss (not French) and bless me.
For me it was only 20 NIS bill but for him it was happiness!
So 20 NIS can make a difference!