DCSIMG
January 2009 - Posts - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

January 2009 - Posts

TFS API Part 1: Domain Picker

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

image

 

DomainProjectPickerMode.ForwardWndMsgOutsideVS;

DomainProjectPickerMode.None;

#

 

dp.ShowDialog();

 

image

 

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;

}

 

image

Download Demo Project

How To Remove Watermarks From Windows 7 Desktop

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

Posted: Jan 12 2009, 12:29 AM by shair | with no comments
תגים:,

Does 20 NIS Makes A Difference?

20_nis_polymer_a 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!

Posted: Jan 10 2009, 11:47 PM by shair | with no comments
תגים:
More Posts « Previous page