예제 #1
0
파일: Form1.cs 프로젝트: eps1kk/NewsParser
 public Form1()
 {
     directory = AppDomain.CurrentDomain.BaseDirectory;
     advisePath = directory + "advise.txt";
     InitializeComponent();
     Application.ApplicationExit += onApplicationExit;
     filter = new Filter(this);
     parser = new Parser();
     decryptor = new Decryptor(filter);
     writer = new Writer(advisePath);
     activator = new Activator(decryptor, parser, writer);
     ReadData();
     checkUpdates(null, null);
     //System.Timers.Timer updateTimer = new System.Timers.Timer(15 * 60 * 60 * 1000);
     //updateTimer.Elapsed += new System.Timers.ElapsedEventHandler(checkUpdates);
     poolNewsListBox.DoubleClick += addActualNews;
     actualNewsListBox.DoubleClick += removeActualNews;
     actualNewsListBox.SelectedIndexChanged += newsListBox_SelectedIndexChanged;
     poolSymbolListBox.DoubleClick += addActualSymbol;
     actualSymbolListBox.DoubleClick += removeActualSymbol;
     highRadioButton.CheckedChanged += radioButton_CheckedChanged;
     midRadioButton.CheckedChanged += radioButton_CheckedChanged;
     lowRadioButton.CheckedChanged += radioButton_CheckedChanged;
     reverse_checkBox.CheckedChanged += reverse_checkBox_CheckedChanged;
     button2.Click += new_terminal_path;
 }
예제 #2
0
파일: Class1.cs 프로젝트: eps1kk/NewsParser
 public Decryptor(Filter filter)
 {
     this.filter = filter;
 }