updated copyright messages for 2013
[deb_libcec.git] / src / LibCecTray / ui / CECTray.cs
index a44cd8ac155e936ea2ea0d1b46b60ab79b49b364..1ec1b169f6615b7eef0ef3bec87117b2bc55b08e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the libCEC(R) library.
  *
- * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited.  All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited.  All rights reserved.
  * libCEC(R) is an original work, containing original code.
  *
  * libCEC(R) is a trademark of Pulse-Eight Limited.
@@ -390,17 +390,9 @@ namespace LibCECTray.ui
     private void CECTrayResize(object sender, EventArgs e)
     {
       if (WindowState == FormWindowState.Minimized)
-      {
-        ShowInTaskbar = false;
-        tsMenuShowHide.Text = Resources.show;
-        _controller.Settings.StartHidden.Value = true;
-      }
+        Hide();
       else
-      {
-        ShowInTaskbar = true;
-        tsMenuShowHide.Text = Resources.hide;
-        _controller.Settings.StartHidden.Value = false;
-      }
+        Show();
     }
 
     private void TsMenuShowHideClick(object sender, EventArgs e)
@@ -491,6 +483,10 @@ namespace LibCECTray.ui
     private ConfigTab _selectedTab = ConfigTab.Configuration;
     private string _log = string.Empty;
     private readonly CECController _controller;
+    public CECController Controller
+    {
+      get { return _controller; }
+    }
     public Control.ControlCollection TabControls
     {
       get { return tabPanel.Controls; }