Exemplo n.º 1
0
 private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     ConServer.Disconnect();
     UPnP.DeletePortMap(XMLSettings.ListenPort);
     nIcon.Visible = false;
     nIcon.Dispose();
     Instance = null;
 }
Exemplo n.º 2
0
        private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            ConServer.Disconnect();

            if (UPnP.IsPortForwarded)
            {
                UPnP.RemovePort();
            }

            nIcon.Visible = false;
            nIcon.Dispose();
            Instance = null;
        }