예제 #1
0
 private void logToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _logD.safeInvoke(() =>
     {
         if (_logD.CanFocus)
         {
             _logD.Activate();
         }
         else
         {
             _logD = new LogDialog();
             _logD.Show();
         }
     });
 }
예제 #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;
        }