Code
Code
If your an Australian software developer and using Skype check out “The Skype List”.
http://weblogs.asp.net/autocrat/archive/2005/01/06/347548.aspx
I had the domain clarkescott.com for years now but, when I started to blog Nov 2003 see my first blog post
I just signed up here and Donny Mack was a big help! Thank Donny.
Last night I installed the dasBlog engine on my web site last night. So I'm “on the move”. www.clarkescott.com
I think I'II cross-post for awhile or at least provide a link to the post.
Now to tell Frank
I perhaps a month ago I had created a drop shadow on a form but, I had forgotten how to do it and google was not bringing anything useful back.
In steps David Kean with an even better solution then the one I had http://davidkean.net/archive/2004/09/13/151.aspx
Thanks David
For the sake of balance, here is what I love about VS.Net 2005 and .Net 2.0
1: Partial classes, man this beautiful!
The fact that we can now seperate a classes into mutliple files rocks.
2: The little yellow lines that show you where a method starts and finishes.
3: Win Forms Strip controls. Menu strip, ToolbarStrip and the StatusStrip all come with renders and you can also built your own.
This means we can now build Win Forms skins easily.
4: Code Refactoring. “Encapsulate Field“ I love it.
5: Right click on a file tab “Close all windows except for this“. Now this may seem like a little feature but I'd like to meet the person who made this happen.
6: Document Outline. The document outline gives you a hierarchical view of your form. From here you can chnage the z order of controls on your form. I'd like to be able to double-click a control from within the Document Outline and have it take you to the properties of the control.
I lost about a weeks work last week!
Becuase of this I have become more interested in back ups.
So, does anyone know of a good backUP utility.
Don't tell me the backUp util that windows offers is a good util and I dont want to use VSS!
I would like something that will back up file as a save them.
Note to self : if no one responses. Do it yourself and dont tell any bastard about it (only joking....or are you![ -- sinister laugh -- ])
private static void ProcessSomeData()
{
/*******************************************************************************************************************************
IN A GIVEN DIRECTORY WE HAVE TWO XML FILES. (1) HAS THE PARENT ITEMS (2) HAS THE CHILD ITEMS THE METHOD WILL TAKE THE TWO XML FILE AND
GENERATE A DATASET WITH 2 DATATABLES AND A DATARELATION OBJECT FOR THE 2 TABLES DATATABLE (1) HAS ALL THE PARENT ITEMS. DATATABLE(2) HAS THE
CHILD ITEMS
*******************************************************************************************************************************/
try
{
DataSet dsTemp = new DataSet();
//GET THE XML FILES
DirectoryInfo dir = new DirectoryInfo(GlobalSettings.DesktopDirectory + GlobalSettings.SyncData + GlobalSettings.TransactionData);
FileInfo[] fl = dir.GetFiles();
//READ THE XML FILE INTO A DATASET THEN DELETE THE FILE
foreach(FileInfo f in fl)
{
dsTemp.ReadXml(f.FullName, XmlReadMode.ReadSchema);
File.Delete(f.FullName);
}
//SETUP THE DATARELATION
DataColumn parent = dsTemp.Tables["ParentItem"].Columns["ParentID"];
DataColumn child = dsTemp.Tables["ChildItem"].Columns["ParentID"];
DataRelation dRel = new DataRelation("Items",parent,child); dsTemp.Relations.Add(dRel);
DataRow[] childRows;
foreach(DataRow myRow in dsTemp.Tables["Parent"].Rows)
{
DataSet ds = new DataSet("ParentItems");
DataTable dtParent = new DataTable("Parent");
DataTable dtChild = new DataTable("Child");
dtParent = dsTemp.Tables["ParentItem"].Clone();
dtChld = dsTemp.Tables["ChildItem"].Clone();
dtParent.Rows.Add(myRow.ItemArray);
childRows = myRow.GetChildRows("ParentItems");
foreach(DataRow childRow in childRows)
{
dtParent.Rows.Add(childRow.ItemArray);
}
ds.Tables.Add(dtParent);
ds.Tables.Add(dtChild);
WriteThis(ds);
}
}
catch(Exception ex)
{
//WRITE THE EXCEPTION TO THE LOG FILE
CustomExceptionHandler.LogException(ex);
}
}
private static void WriteThis(DataSet ds)
{
//THIS METHOD WILL WRITE OUT EACH DATASET TO XML
//EACH XML FILE WILL HAVE ONE PARENT ROW AND ALL ITS CHILD ROWS
try
{
ds.WriteXml(GlobalSettings.DesktopDirectory + @"Transaction - " + forDevelopment + ".xml", XmlWriteMode.WriteSchema);
forDevelopment++;
}
catch(Exception ex)
{
CustomExceptionHandler.LogException(ex);
}
}
I am adding this category for me to add links to articles, place some code for me to use.
It is not about showing you how good I am and therefore you may find from time to time some stuff that SUX!
Please be kind with your comments if you see anything wrong.