My Writings. My Thoughts.
Create Array Parameters in C#
// November 14th, 2009 // No Comments » // ProgrammingToday i have request from ‘bad friend’ code name ‘mashudi’ to create Nearest Neighbor Class, Artificial Intelegent system that can compute distance from one to other node.
From this project I will share how to create a constructor or maybe you need for method that use array parameters.
Design of implementation in KNN node class will be [...]
C# with MySQL Database
// October 30th, 2009 // No Comments » // ProgrammingIf you want direct connection from C# to MySQL you can use MySQL.Data library from this resource. I’ve write down my own DataAccess class to make my work in other class easier.
Settings is setting class in .NET you can click on project->properties->settings to generate this class. You can find this file in Debug folder that [...]
Mutex for one instance application
// October 29th, 2009 // No Comments » // ProgrammingIf you want to create application that must be running only once (can’t duplicate). Mutex class in System.Threading namespace can help you to done this problem.
Here the sample of my code to control’s my program only run once, i need this cause i working on serial communication. But, you can use this for other purpose.
Exposing Inner Control Event in WPF UserControl
// August 16th, 2009 // No Comments » // ProgrammingWhen you have controls inside your custom UserControl you can’t call directly to any controls inside user control in WPF. There’s a way to expose them.. First you can add RoutedEvents to a custom control you can declare a public static RoutedEvent in your class and use EventManager.RegisterRoutedEvent() method to register these events. EventManager.RegisterRoutedEvent() [...]



