/[NexusPowerControl]/trunk/NexusPowerControl/DesktopSplash.cs
ViewVC logotype

Diff of /trunk/NexusPowerControl/DesktopSplash.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by william, Sat Oct 22 23:15:43 2011 UTC revision 14 by william, Sat Oct 22 23:37:10 2011 UTC
# Line 6  using System.Drawing; Line 6  using System.Drawing;
6  using System.Linq;  using System.Linq;
7  using System.Text;  using System.Text;
8  using System.Windows.Forms;  using System.Windows.Forms;
9    using Ownskit.Utils;
10    
11  namespace NexusPowerControl  namespace NexusPowerControl
12  {  {
13      public partial class DesktopSplash : Form      public partial class DesktopSplash : Form
14      {      {
15            KeyboardListener keyboard_listener = new KeyboardListener();
16    
17          MainUI ui = new MainUI();          MainUI ui = new MainUI();
18    
19          const int MAX_TICK_COUNT = 10; // milliseconds          const int MAX_TICK_COUNT = 10; // milliseconds
# Line 18  namespace NexusPowerControl Line 21  namespace NexusPowerControl
21          public DesktopSplash()          public DesktopSplash()
22          {          {
23              InitializeComponent();              InitializeComponent();
24                keyboard_listener = new KeyboardListener();
25                keyboard_listener.DisableKeyboard();
26    
27              ui.FormClosed += new FormClosedEventHandler(ui_FormClosed);              ui.FormClosed += new FormClosedEventHandler(ui_FormClosed);
28          }          }
29    
30          void ui_FormClosed(object sender, FormClosedEventArgs e)          void ui_FormClosed(object sender, FormClosedEventArgs e)
31          {          {
32                keyboard_listener.EnableKeyboard();
33              this.Close();              this.Close();
34          }          }
35    

Legend:
Removed from v.13  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.22