Ejemplo n.º 1
0
 private void fileTransfersToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _fileTransfersD.safeInvoke(() =>
     {
         if (_fileTransfersD.CanFocus)
         {
             _fileTransfersD.Activate();
         }
         else
         {
             _fileTransfersD = new FileTransfersDialog();
             _fileTransfersD.Show();
         }
     });
 }
Ejemplo n.º 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;
        }