Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         notifyIcon.Dispose();
         menuitemEnableTransmit.Dispose();
     }
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     ControlItem.Dispose();
     AltItem.Dispose();
     mExit.Dispose();
     cMenu.Dispose();
     TrayIcon.Dispose();
 }
Exemplo n.º 3
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (fetchBW != null)
                {
                    fetchBW.Dispose();
                }

                if (displayRoomNumTimer != null)
                {
                    displayRoomNumTimer.Close();
                }
                if (getWebContentTimer != null)
                {
                    getWebContentTimer.Close();
                }
                if (mainTimer != null)
                {
                    mainTimer.Close();
                }
                if (displayRoomNumViaDanmuTimer != null)
                {
                    displayRoomNumViaDanmuTimer.Close();
                }

                if (menuDisplay != null)
                {
                    menuDisplay.Dispose();
                }
                if (menuDisplayRoomNum != null)
                {
                    menuDisplayRoomNum.Dispose();
                }
                if (menuHide != null)
                {
                    menuHide.Dispose();
                }
                if (menuScreen != null)
                {
                    menuScreen.Dispose();
                }
                if (menuStop != null)
                {
                    menuStop.Dispose();
                }

                if (childrenOfMenuDisplay != null && childrenOfMenuDisplay.Length != 0)
                {
                    for (int i = 0; i < childrenOfMenuDisplay.Length; i++)
                    {
                        childrenOfMenuDisplay[i].Dispose();
                    }
                }
                if (childrenOfScreen != null && childrenOfScreen.Length != 0)
                {
                    for (int i = 0; i < childrenOfScreen.Length; i++)
                    {
                        childrenOfScreen[i].Dispose();
                    }
                }

                if (notifyIcon != null)
                {
                    notifyIcon.Dispose();
                }

                if (userSetting != null)
                {
                    userSetting.Close();
                }

                if (helpWindow != null)
                {
                    helpWindow.Close();
                }
                if (aboutWindow != null)
                {
                    aboutWindow.Close();
                }
            }
        }