<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>StegLog - challenge</title>
    <link>http://blog.stegnar.com/</link>
    <description>Reflections on Software Development</description>
    <language>en-us</language>
    <copyright>Peter Stegnar</copyright>
    <lastBuildDate>Sun, 13 Sep 2009 10:00:59 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>peter@stegnar.com</managingEditor>
    <webMaster>peter@stegnar.com</webMaster>
    <item>
      <trackback:ping>http://blog.stegnar.com/Trackback.aspx?guid=b27e8395-a532-464e-8038-a22a3f2d216b</trackback:ping>
      <pingback:server>http://blog.stegnar.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stegnar.com/PermaLink,guid,b27e8395-a532-464e-8038-a22a3f2d216b.aspx</pingback:target>
      <dc:creator>Peter Stegnar</dc:creator>
      <wfw:comment>http://blog.stegnar.com/CommentView,guid,b27e8395-a532-464e-8038-a22a3f2d216b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stegnar.com/SyndicationService.asmx/GetEntryCommentsRss?guid=b27e8395-a532-464e-8038-a22a3f2d216b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">On <a href="http://meta.stackoverflow.com">meta.stackoverflow.com</a> Joel <a href="http://meta.stackoverflow.com/questions/20420/countdown-app-for-devdays">announced</a> a
need for countdown application for the coming DevDays, as I am planing to attend one,
I have decided to make one. Maybe I will watch my counter at the conference. ;)<br /><br />
It looks like:<br /><p></p><img src="http://blog.stegnar.com/content/binary/countDownDevDays.png" border="0" height="377" width="604" /><br /><br />
Source code: <a href="http://blog.stegnar.com/content/binary/PeterStegnarDevDaysCountdown.zip">PeterStegnarDevDaysCountdown.zip
(198.51 KB)</a><br /><br />
I have used WPF, .NET 3.5. The speciality of this solution is custom Stackoverflow
digits. :)<br /><br />
Short manual:<br />
-you can find exe in "PeterStegnarDevDaysCountdown\WPF_StackoverflowCountDown\bin\Debug"<br />
-start the app with the following parameters, for example: 0900 "DevDays begins in
%s"<br />
-just hit an "Esc" key to exit<br /><br />
Core functionalitiy is, of course, countdown:<br /><br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">if</span> (second
!<span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span> 0)
{ second--; } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">else</span> {
second <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span> 59; <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">if</span> (minute
!<span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span> 0)
{ minute--; } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">else</span> {
minute <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span> 59; <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">if</span> (hour
!<span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;">=</span> 0)
{ hour--; } <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">else</span> { <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">throw</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;">new</span> ArgumentNullException(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"No
valid time entry!"</span>); } } }</span></pre><br /><br />
What do you think?<br /><a href="http://blog.stegnar.com/content/binary/PeterStegnarDevDaysCountdown.zip"><br /></a><img width="0" height="0" src="http://blog.stegnar.com/aggbug.ashx?id=b27e8395-a532-464e-8038-a22a3f2d216b" /></body>
      <title>Countdown app for DevDays</title>
      <guid isPermaLink="false">http://blog.stegnar.com/PermaLink,guid,b27e8395-a532-464e-8038-a22a3f2d216b.aspx</guid>
      <link>http://blog.stegnar.com/2009/09/13/CountdownAppForDevDays.aspx</link>
      <pubDate>Sun, 13 Sep 2009 10:00:59 GMT</pubDate>
      <description>On &lt;a href="http://meta.stackoverflow.com"&gt;meta.stackoverflow.com&lt;/a&gt; Joel &lt;a href="http://meta.stackoverflow.com/questions/20420/countdown-app-for-devdays"&gt;announced&lt;/a&gt; a
need for countdown application for the coming DevDays, as I am planing to attend one,
I have decided to make one. Maybe I will watch my counter at the conference. ;)&lt;br&gt;
&lt;br&gt;
It looks like:&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://blog.stegnar.com/content/binary/countDownDevDays.png" border="0" height="377" width="604"&gt;
&lt;br&gt;
&lt;br&gt;
Source code: &lt;a href="http://blog.stegnar.com/content/binary/PeterStegnarDevDaysCountdown.zip"&gt;PeterStegnarDevDaysCountdown.zip
(198.51 KB)&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
I have used WPF, .NET 3.5. The speciality of this solution is custom Stackoverflow
digits. :)&lt;br&gt;
&lt;br&gt;
Short manual:&lt;br&gt;
-you can find exe in "PeterStegnarDevDaysCountdown\WPF_StackoverflowCountDown\bin\Debug"&lt;br&gt;
-start the app with the following parameters, for example: 0900 "DevDays begins in
%s"&lt;br&gt;
-just hit an "Esc" key to exit&lt;br&gt;
&lt;br&gt;
Core functionalitiy is, of course, countdown:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;if&lt;/span&gt; (second
!&lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; 0)
{ second--; } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;else&lt;/span&gt; {
second &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; 59; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;if&lt;/span&gt; (minute
!&lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; 0)
{ minute--; } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;else&lt;/span&gt; {
minute &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; 59; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;if&lt;/span&gt; (hour
!&lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;=&lt;/span&gt; 0)
{ hour--; } &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;else&lt;/span&gt; { &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;throw&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px;"&gt;new&lt;/span&gt; ArgumentNullException(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"No
valid time entry!"&lt;/span&gt;); } } }&lt;/span&gt;&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
What do you think?&lt;br&gt;
&lt;a href="http://blog.stegnar.com/content/binary/PeterStegnarDevDaysCountdown.zip"&gt;
&lt;br&gt;
&lt;/a&gt;&lt;img width="0" height="0" src="http://blog.stegnar.com/aggbug.ashx?id=b27e8395-a532-464e-8038-a22a3f2d216b" /&gt;</description>
      <comments>http://blog.stegnar.com/CommentView,guid,b27e8395-a532-464e-8038-a22a3f2d216b.aspx</comments>
      <category>C#</category>
      <category>challenge</category>
      <category>conference </category>
      <category>event</category>
      <category>WPF</category>
    </item>
  </channel>
</rss>