<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/c-sharp/tags/event</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 23:24:07 GMT</pubDate>
<item>
<title>(C#) sharepoint 2010 event receiver code that checks in files newly added to style library - rumremix</title>
<link>http://snipplr.com/view/68942/sharepoint-2010-event-receiver-code-that-checks-in-files-newly-added-to-style-library/</link>
<description><![CDATA[ <p>Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.</p> ]]></description>
<pubDate>Tue, 04 Dec 2012 12:35:06 GMT</pubDate>
<guid>http://snipplr.com/view/68942/sharepoint-2010-event-receiver-code-that-checks-in-files-newly-added-to-style-library/</guid>
</item>
<item>
<title>(C#) Write to the Event Log C# - Verician</title>
<link>http://snipplr.com/view/67389/write-to-the-event-log-c/</link>
<description><![CDATA[ <p>Output your errors to the Windows event log. Very effective to output from try catch blocks.</p> ]]></description>
<pubDate>Wed, 26 Sep 2012 23:16:35 GMT</pubDate>
<guid>http://snipplr.com/view/67389/write-to-the-event-log-c/</guid>
</item>
<item>
<title>(C#) EventLoggingInterface - BrentS</title>
<link>http://snipplr.com/view/57313/eventlogginginterface/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 29 Jul 2011 08:25:48 GMT</pubDate>
<guid>http://snipplr.com/view/57313/eventlogginginterface/</guid>
</item>
<item>
<title>(C#) Custom Event - kat</title>
<link>http://snipplr.com/view/34268/custom-event/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 11 May 2010 17:32:33 GMT</pubDate>
<guid>http://snipplr.com/view/34268/custom-event/</guid>
</item>
<item>
<title>(C#) Silverlight ComboBox Keyboard Selection - alishahnovin</title>
<link>http://snipplr.com/view/30032/silverlight-combobox-keyboard-selection/</link>
<description><![CDATA[ <p>I've been trying to figure out a way to make ComboBox items selectable by the keyboard, much like how any ComboBox, ListBox, Selection box is in any other language like HTML, Windows Forms, etc.

Most of the solutions I've seen online weren't particularly useful, or required the use of some third-party DLLs. My solution is a little different, and does not require any new references.

My method works by extending the ComboBox. To use it, all you need to do is call .SetKeyboardSelection() on ComboBox *after* all ComboBoxItems have been added to the ComboBox.</p> ]]></description>
<pubDate>Fri, 19 Mar 2010 12:20:14 GMT</pubDate>
<guid>http://snipplr.com/view/30032/silverlight-combobox-keyboard-selection/</guid>
</item>
<item>
<title>(C#) Raise and handle events generically - pckujawa</title>
<link>http://snipplr.com/view/15033/raise-and-handle-events-generically/</link>
<description><![CDATA[ <p>For a discussion of .NET events best-practices, see [Roy Osherove's blog post](http://weblogs.asp.net/rosherove/articles/DefensiveEventPublishing.aspx) and [this post](http://blogs.msdn.com/ericlippert/archive/2009/04/29/events-and-races.aspx). Be sure to read the comments sections for some good arguments for and against the presented methods. Also, there is a good [MSDN Magazine article on Event Accessors](http://msdn.microsoft.com/en-us/magazine/cc163533.aspx), which may be useful.

Used in "Empire." The example shows an EventArgs with a DateTime object, but it could be a string or enumeration or whatever.</p> ]]></description>
<pubDate>Thu, 14 May 2009 16:30:42 GMT</pubDate>
<guid>http://snipplr.com/view/15033/raise-and-handle-events-generically/</guid>
</item>
<item>
<title>(C#) Example of subscribing to and firing events - pckujawa</title>
<link>http://snipplr.com/view/10291/example-of-subscribing-to-and-firing-events/</link>
<description><![CDATA[ <p>See [Raise and Handle Events Generically](http://snipplr.com/view/15033/raise-and-handle-events-generically/) for a better way to use events (generically) and links to best practices in .NET events.

This example should be used as a Console program and will simply write a line of text to the console. It shows how to create an event handler in a class, have that event handler fire an event with custom information, and how to subscribe to that event and use its data. I hope it is straightforward enough.</p> ]]></description>
<pubDate>Fri, 05 Dec 2008 14:12:19 GMT</pubDate>
<guid>http://snipplr.com/view/10291/example-of-subscribing-to-and-firing-events/</guid>
</item>
<item>
<title>(C#) Repeater ItemDataBound - Anthony</title>
<link>http://snipplr.com/view/8433/repeater-itemdatabound/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 16 Sep 2008 16:31:46 GMT</pubDate>
<guid>http://snipplr.com/view/8433/repeater-itemdatabound/</guid>
</item>
<item>
<title>(C#) Generic Based Event Handling Demo for VS.Net 2005 - rengber</title>
<link>http://snipplr.com/view/1565/generic-based-event-handling-demo-for-vsnet-2005/</link>
<description><![CDATA[ <p>Annotated version of the Microsoft/GotDotNet demo from the MSDN Wiki.</p> ]]></description>
<pubDate>Thu, 09 Nov 2006 13:05:19 GMT</pubDate>
<guid>http://snipplr.com/view/1565/generic-based-event-handling-demo-for-vsnet-2005/</guid>
</item>
</channel>
</rss>