public FrmMain() { Instance = this; AES.SetDefaultKey(Settings.Password); #if !DEBUG if (Settings.ShowToU) ShowTermsOfService(); #endif InitializeComponent(); }
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(); }
private void FrmMain_FormClosing(object sender, FormClosingEventArgs e) { ListenServer.Disconnect(); UPnP.DeletePortMap(Settings.ListenPort); notifyIcon.Visible = false; notifyIcon.Dispose(); Instance = null; }
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; }
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; }