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