Esempio n. 1
0
        public FrmMain()
        {
            Instance = this;

            AES.SetDefaultKey(Settings.Password);

#if !DEBUG
            if (Settings.ShowToU)
                ShowTermsOfService();
#endif

            InitializeComponent();
        }
Esempio n. 2
0
        public FrmMain()
        {
            Instance = this;

            ReadSettings();

            #if !DEBUG
            ShowTermsOfService(XMLSettings.ShowToU);
            #endif

            InitializeComponent();

            this.Menu = mainMenu;

            _lvwColumnSorter = new ListViewColumnSorter();
            lstClients.ListViewItemSorter = _lvwColumnSorter;

            lstClients.RemoveDots();
            lstClients.ChangeTheme();
        }
Esempio n. 3
0
 private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     ListenServer.Disconnect();
     UPnP.DeletePortMap(Settings.ListenPort);
     notifyIcon.Visible = false;
     notifyIcon.Dispose();
     Instance = null;
 }
Esempio n. 4
0
        private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (ListenServer.Listening)
                ListenServer.Disconnect();

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

            nIcon.Visible = false;
            nIcon.Dispose();
            Instance = null;
        }
Esempio n. 5
0
        private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (ListenServer.Listening)
                ListenServer.Disconnect();

            if (XMLSettings.UseUPnP)
                UPnP.RemovePort(ushort.Parse(XMLSettings.ListenPort.ToString()));

            nIcon.Visible = false;
            FrmMain.Instance = null;
        }