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

            AES.SetDefaultKey(Settings.Password);

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

            InitializeComponent();
        }
Exemplo 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();
        }
Exemplo n.º 3
0
 private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     ListenServer.Disconnect();
     UPnP.DeletePortMap(Settings.ListenPort);
     notifyIcon.Visible = false;
     notifyIcon.Dispose();
     Instance = null;
 }
Exemplo 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;
        }
Exemplo 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;
        }