jdgordon
2nd December 2008, 02:43 PM
Dunno if this should go here or not... anywho...
I was bored today and been wanting to learn C# and .NET CF for a while, so here the first version of my first app....
I got sick of how it stores new numbers by default (i guess depending on the rom you'll get +61.... or just 0433......) and I have some international numbers and the whole thing is a mess, so what this does is it tries to match.
its all based off a rules file which you will find in the .cab
.. so how it works is like this... there is a rule "+614xxxxxxxx:04xx xxx xxx"
so that will take any number that starts with +614 and is followed by 8 numbers an change it to store as 04 with the numbers spaced like they normally are.
The rules are tried in order, lines starting with a # are comments (I've included 7 rules which converts all aussie numbers to how they are normally represented)
So, when the program is started it will run through your contacts and try out every number (which might take a few seconds). Any that it finds will get shown in a nice tree where you can check the numbers you want stored permanently.
you can get the .cab here (http://bjorn.haxx.se/jdgordon/NumberFormatter.CAB) and it needs CF.NET 3.5
I seriously hope there wasn't a inbuilt way to do this....
I'm probably going to release the source once its cleaned up a bit, but untill then, leave a reply if you want it.
Also, is there a nice regex which can do this?
Oh, the rules are mostly for Australian "standards" so you will probably need to fiddle to get them working well for you... paste your local rules and I'll add them
Let me know what you think.
I was bored today and been wanting to learn C# and .NET CF for a while, so here the first version of my first app....
I got sick of how it stores new numbers by default (i guess depending on the rom you'll get +61.... or just 0433......) and I have some international numbers and the whole thing is a mess, so what this does is it tries to match.
its all based off a rules file which you will find in the .cab
.. so how it works is like this... there is a rule "+614xxxxxxxx:04xx xxx xxx"
so that will take any number that starts with +614 and is followed by 8 numbers an change it to store as 04 with the numbers spaced like they normally are.
The rules are tried in order, lines starting with a # are comments (I've included 7 rules which converts all aussie numbers to how they are normally represented)
So, when the program is started it will run through your contacts and try out every number (which might take a few seconds). Any that it finds will get shown in a nice tree where you can check the numbers you want stored permanently.
you can get the .cab here (http://bjorn.haxx.se/jdgordon/NumberFormatter.CAB) and it needs CF.NET 3.5
I seriously hope there wasn't a inbuilt way to do this....
I'm probably going to release the source once its cleaned up a bit, but untill then, leave a reply if you want it.
Also, is there a nice regex which can do this?
Oh, the rules are mostly for Australian "standards" so you will probably need to fiddle to get them working well for you... paste your local rules and I'll add them
Let me know what you think.