Exemple #1
0
 private void newsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _newsD.safeInvoke(() =>
     {
         if (_newsD.CanFocus)
         {
             _newsD.Activate();
         }
         else
         {
             _newsD = new NewsDialog();
             _newsD.Show();
         }
     });
 }
Exemple #2
0
        public Main()
        {
            InitializeComponent();

            _configuration = new Config(Application.StartupPath + @"\Settings.ini");

            _configD        = new ConfigurationDialog(_configuration);
            _clientBuilderD = new ClientBuilderDialog();
            _pluginsD       = new PluginsDialog();
            _upnpD          = new UPnPDialog();
            _fileTransfersD = new FileTransfersDialog();
            _logD           = new LogDialog();
            _newsD          = new NewsDialog();
            _aboutD         = new AboutDialog();

            _listening = false;
            _listeners = new Dictionary <int, TcpListener>();

            _dataSent     = 0;
            _dataReceived = 0;

            _rsa            = new RSACryptoServiceProvider(2048);
            _connectedUsers = 0;
        }