Posts tagged C#
Remembering WPF Windows Position
Aug 6th
A few of my apps require opening the same window for a lot of different items and I wanted each WPF window to remember its size, position and state all the time. Nothing annoys me more than closing a window, opening the same window and its back on my second monitor.
So I went in search of a solution that someone else had written first, I found a example on the MSDN website.What makes this sample good is it makes use of the Win32 API’s, specifically GetWindowPlacement and SetWindowPlacement in User32.dll. Because of this our code doesn’t have to worry about More >
Writing a Facebook event synchroniser for Outlook 2007+ Part 2
Jul 27th
Now for the juicy post, this will cover the nuts and bolts of putting it all together. I may make a part 3 once I have the time to clean up the code, add logging and other things. The aim of the project after this post is simply to be able to sync and change your RSVP status of a event (if they update their API! See below.
(Installer/Source available at end of post)
API RestrictionsFacebook have decided that only an admin of a event can RSVP through the API, sorry guys this is something that cannot be done through More >
C# Argument Parser
Jul 27th
I know this has been done to death but nothing I found did the job for me so I started with the one that fitted my needs the most then edited from there.
Original source: http://www.codeproject.com/KB/recipes/command_line.aspx
I have a few specific requirements:
- It must support lists, or the same argument specified multiple times. If an argument has comma’s in it then it will be treated as a list and split on the comma.
- It must support paths with a trailing \ ie. –arg:”c:\Users\ginnivanj\My Path\”
- Has support for flags.
There are two ways you can start using this class, I have More >