public MainWindow() { InitializeComponent(); DataContext = this; MyTitle = "Chatea :D"; filterD = new Dictionary <string, Filter>(); sc = new StorageContainer("chat"); cc = new ContentControls("chat", lineOP); cc.addDataGrid("global", dg1); //cc.addDataGrid("whisper", dg2); //cc.addDataGrid("guild", dg3); this.lEval = new LineEvaluator(); this.id = 0; lb1.ItemsSource = clItemL; alertsLB1.ItemsSource = alertsCLItemL; // --------------------------------------------------- // dispatcherTimer1.Tick += dispatcherTimer_Tick1; dispatcherTimer1.Interval = new TimeSpan(0, 0, 0, 0, 100); // --------------------------------------------------- // dispatcherTimer2.Tick += dispatcherTimer_Tick2; dispatcherTimer2.Interval = new TimeSpan(0, 0, 0, 0, 100); // --------------------------------------------------- // dispatcherTimer3.Tick += dispatcherTimer_Tick3; dispatcherTimer3.Interval = new TimeSpan(0, 0, 0, 0, 500); // --------------------------------------------------- // dispatcherTimer4.Tick += dispatcherTimer_Tick4; dispatcherTimer4.Interval = new TimeSpan(0, 0, 1, 0, 0); // --------------------------------------------------- // }
public Reader(string fullPath, StorageContainer sc, LineEvaluator lEval) { this.fullPath = fullPath; this.sc = sc; this.lEval = lEval; openFile(); }