Change from
Windows Registry Editor Version 5.00
to
REGEDIT4
then you can import to Wise
save as ANSI
Thursday, July 31, 2014
Monday, July 28, 2014
pass data from web restful service to android
http://nanoexpert.wordpress.com/2013/10/07/using-google-volley-library-to-build-android-application-for-restful-web-services/
Wednesday, July 16, 2014
Visual studio - show version # on windows form
C#
string m_sAssemblyName;
string m_sVersion;
m_sAssemblyName = Assembly.GetExecutingAssembly().GetName().Name;
m_sVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
this.Text = String.Format("{0} v{1}", m_sAssemblyName, m_sVersion);
VB.net
Private m_sAssemblyName As String = String.Empty
Private m_sVersion As String = String.Empty
m_sAssemblyName = Assembly.GetExecutingAssembly().GetName().Name
m_sVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString()
Me.Text = String.Format("{0} v{1}", m_sAssemblyName, m_sVersion)
string m_sAssemblyName;
string m_sVersion;
m_sAssemblyName = Assembly.GetExecutingAssembly().GetName().Name;
m_sVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
this.Text = String.Format("{0} v{1}", m_sAssemblyName, m_sVersion);
VB.net
Private m_sAssemblyName As String = String.Empty
Private m_sVersion As String = String.Empty
m_sAssemblyName = Assembly.GetExecutingAssembly().GetName().Name
m_sVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString()
Me.Text = String.Format("{0} v{1}", m_sAssemblyName, m_sVersion)
TFS SDK display item detail by wild card
Wild card is in textBox1.Text
using Microsoft.TeamFoundation.Common;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.Framework;
using Microsoft.TeamFoundation.VersionControl.Client;
using System.Net;
private void btnGo_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
NetworkCredential cred = new NetworkCredential("domain\\userid", "password");
//TeamFoundationServer tfs = new TeamFoundationServer("http://tfsserver:8080/TFS/collection", cred);
//tfs.EnsureAuthenticated();
TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(
new Uri("http://tfsserver:8080/TFS/collection"), cred);
//tfs.EnsureAuthenticated();
VersionControlServer vcServer = tpc.GetService<VersionControlServer>();
// List all of the .xaml files.
ItemSet items = vcServer.GetItems("$/" + textBox1.Text, RecursionType.Full);
foreach (Item item in items.Items)
{
//Console.Write(item.ItemType.ToString());
//Console.Write(": ");
//Console.WriteLine(item.ServerItem.ToString());
VersionControlLabel[] itemLabels = vcServer.QueryLabels(null, null, null, false, item.ServerItem, new ChangesetVersionSpec(item.ChangesetId));
foreach (VersionControlLabel label in itemLabels)
{
foreach (Item labelItem in label.Items)
{
if (labelItem.ItemId == item.ItemId && labelItem.ChangesetId == item.ChangesetId)
{
// <Found it>
listBox1.Items.Add(item.ItemType.ToString() + ": " + item.ServerItem.ToString() + " checked in:" + item.CheckinDate.ToString() + " label:" + label.Name + " " + label.Comment);
break;
}
}
}
}
}
}
using Microsoft.TeamFoundation.Common;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.Framework;
using Microsoft.TeamFoundation.VersionControl.Client;
using System.Net;
private void btnGo_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
NetworkCredential cred = new NetworkCredential("domain\\userid", "password");
//TeamFoundationServer tfs = new TeamFoundationServer("http://tfsserver:8080/TFS/collection", cred);
//tfs.EnsureAuthenticated();
TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(
new Uri("http://tfsserver:8080/TFS/collection"), cred);
//tfs.EnsureAuthenticated();
VersionControlServer vcServer = tpc.GetService<VersionControlServer>();
// List all of the .xaml files.
ItemSet items = vcServer.GetItems("$/" + textBox1.Text, RecursionType.Full);
foreach (Item item in items.Items)
{
//Console.Write(item.ItemType.ToString());
//Console.Write(": ");
//Console.WriteLine(item.ServerItem.ToString());
VersionControlLabel[] itemLabels = vcServer.QueryLabels(null, null, null, false, item.ServerItem, new ChangesetVersionSpec(item.ChangesetId));
foreach (VersionControlLabel label in itemLabels)
{
foreach (Item labelItem in label.Items)
{
if (labelItem.ItemId == item.ItemId && labelItem.ChangesetId == item.ChangesetId)
{
// <Found it>
listBox1.Items.Add(item.ItemType.ToString() + ": " + item.ServerItem.ToString() + " checked in:" + item.CheckinDate.ToString() + " label:" + label.Name + " " + label.Comment);
break;
}
}
}
}
}
}
Subscribe to:
Posts (Atom)