My Fawts

February 12, 2008

Mass File Renamer

Filed under: C# Coding — kj @ 3:26 am

Batch file renamer

 massrename.jpg Source code found on my C# Code flash drive. Recompiled it and gave it a nice interface with  a few bug fixes. I don’t know who originally wrote it or where I got the source code from. I use this tool to rename my source code archives and my MP3s and files I download from the net. Kudo’s to guy that originally wrote it. I just made it prettier. 

Requires the following:
Microsoft .NET 2.0 Framework
Windows XP or above
(more…)

January 16, 2008

Class Coder

Filed under: C# Coding — Kj @ 3:58 am

Download Link 

I am a C# Developer working for a Financial Institution. I am currently involved in writing a Data Analysis engine that makes use of existing excel workbooks. (There are so many workbooks with vital information).  Even though I program in an OO language and  the use of inheritance, there is a lot of  repetitive coding. To help me code faster, and keep my consistent in coding, i have created this excel Workbook to write code.

Worksheets:

Classcoder:
Type in the fieldname in Column A  and it will generate the property Get/Set statements in C#

DataSetCode:
Type in field names in column A and it generate the DataTable column add statements

SP Params:
Type in field name matching that of SP input parameters and it will create the code for Data Params for ADO.NET
Refer below for example:

jetDBParam.Direction = ParameterDirection.Input;
jetDBParam.Value = string pmapid,;
jetDBParam.DbType = DbType.Int32;
jetDBParam.ParameterName
=@mapid;
dataParams.Add(jetDBParam);

November 1, 2007

Some .NET development tools

Filed under: C# Coding — Kj @ 3:58 am

Whilst surfing the web I found some Code generation tools for C# and SQL Server. Here I would like to share with you some.

.NET Folder Structure

Clean OBJ folders in .NET source code structure.
Sometimes having old OBJ folders tend not to build the Windows Forms correctly. You might get an error that you cannot seem to work. You will get these errors when you have written custom controls. The Forms you have used these in, might not display properly in th Visual Studios IDE. (2003/2005/2008).
 cleanobjdirectories.rar
Clean BIN folders in .NET source code structure.
Having old DLL’s and EXE’s in the bin folder could cause you a headache when i comes to debugging. Especially when you have a large solution that  you have loaded up and you have one project referencing in other projects.
 cleanbinfolder.rar

(more…)

Powered by WordPress