예제 #1
0
파일: MainForm.cs 프로젝트: azhi/BSUIR_labs
        public MainForm()
        {
            InitializeComponent();

            url_queue = new Queue<string>();
            filter_queue = new Queue<List<Channel>>();
            send_queue = new Queue<List<Article>>();
            sw = new ThreadPools.StringWrapper();
            emails = new List<string>();

            loader = new ThreadPools.Loader(url_queue, filter_queue, 2);
            filter = new ThreadPools.Filter(filter_queue, send_queue, sw, 2);
            mailer = new ThreadPools.Mailer(send_queue, emails, 2);
        }
예제 #2
0
        public MainForm()
        {
            InitializeComponent();

            url_queue    = new Queue <string>();
            filter_queue = new Queue <List <Channel> >();
            send_queue   = new Queue <List <Article> >();
            sw           = new ThreadPools.StringWrapper();
            emails       = new List <string>();

            loader = new ThreadPools.Loader(url_queue, filter_queue, 2);
            filter = new ThreadPools.Filter(filter_queue, send_queue, sw, 2);
            mailer = new ThreadPools.Mailer(send_queue, emails, 2);
        }