Ejemplo n.º 1
0
        public SettingsForm(ref NewsServer server)
        {
            settings = new NNTPServerSettingsGUI(ref server);
            folder = new FolderSettingsGUI();
            general = new GeneralSettingsGUI();
            this.server = server;
            InitializeComponent();

            setMain(general);
        }
Ejemplo n.º 2
0
 public MainGUI()
 {
     InitializeComponent();
     logHandler = new LogHandler(LogString);
     handler = QueueHandler.Instance;
     flowLayoutPanel1.Controls.Add(new EmptyQueue(this));
     server = new NewsServer();
     graphGUI = new GraphGUI();
     panelGraph.Controls.Add(graphGUI);
     Logging.Instance.maingui = this;
 }
Ejemplo n.º 3
0
        public NNTPConnection(int id, NewsServer serverInfo, QueueHandler handler)
        {
            this.id = id;
            this.serverInfo = serverInfo;
            this.handler = handler;
            keepAlive = true;
            sw = new Performance.Stopwatch();

            // Register connection in SpeedMonitor
            SpeedMonitor.Instance.RegisterConnection(this);

            ThreadStart job = new ThreadStart(Run);
            Thread thread = new Thread(job);
            thread.IsBackground = true;
            thread.Start();
        }
Ejemplo n.º 4
0
 public NNTPServerSettingsGUI(ref NewsServer server)
 {
     this.server = server;
     InitializeComponent();
 }