private void InitializeNotifyIcon()
{
m_notifyIcon = new Forms.NotifyIcon();
m_notifyIcon.Text = this.Title;
m_notifyIcon.Icon = new System.Drawing.Icon(global::AniDBmini.Properties.Resources.AniDBmini, 16, 16);
m_notifyIcon.MouseDoubleClick += (s, e) => { this.Show(); WindowState = m_storedWindowState; };
m_notifyIcon.ContextMenu = m_notifyContextMenu;
Forms.MenuItem cm_open = new Forms.MenuItem();
cm_open.Text = "Open";
cm_open.Click += (s, e) => { this.Show(); WindowState = m_storedWindowState; };
m_notifyContextMenu.MenuItems.Add(cm_open);
Forms.MenuItem cm_MPCHCopen = new Forms.MenuItem();
cm_MPCHCopen.Text = "Open MPC-HC";
cm_MPCHCopen.Click += (s, e) => { mpchcLaunch(this, null); };
m_notifyContextMenu.MenuItems.Add(cm_MPCHCopen);
m_notifyContextMenu.MenuItems.Add("-");
Forms.MenuItem cm_exit = new Forms.MenuItem();
cm_exit.Text = "Exit";
cm_exit.Click += (s, e) => { this.Close(); };
m_notifyContextMenu.MenuItems.Add(cm_exit);
}