Thursday, March 4, 2010

Adding Node in C# tree (NetPinger 2010 Video Demo)



My current project I've been working on for Spring 2010, NetPinger 2010. I've recorded a video in Camtasia. I've added significant overhauls, and have optimized the code. Recently I've added ability to add custom hostnames to a list. This entry entails how to add a node to a tree:

3531 try

3532 {

3533 treePing.SelectedNode = treePing.SelectedNode.Parent;

3534 }

3535 catch

3536 { }

3537

3538 if (txtAddServer.Text != "")

3539 {

3540 treePing.Nodes[0].Nodes.Add("CN=" + txtAddServer.Text.ToUpper());

3541 mnuNotify.ShowBalloonTip(

3542 5000,

3543 "NetPinger 2010: Added",

3544 txtAddServer.Text.ToUpper() + " has been added!",

3545 ToolTipIcon.Warning);}


No comments:

Post a Comment

Generating "Always On Top" NSWindow in macOS across all detected displays

Also: Using UIKit & Cocoa Frameworks using Objective-C In m acOS or OS X , written in either Objective-C or Swift  Langues, you m...