private void textBox1_TextChanged(object sender, EventArgs e) { if (Checker != null) { var ea = new CheckerEventArgs(this); Checker(sender, ea); label2.Text = ea.Message; } }
protected virtual void OnCheckProgress(CheckerEventArgs e) { ChekerEventHandler handler = CheckProgress; if (handler != null) { handler(this, e); } }
protected virtual void OnFoundBrokenFile(CheckerEventArgs e) { ChekerEventHandler handler = FoundBrokenFile; if (handler != null) { handler(this, e); } }
protected virtual void OnSwithState(CheckerEventArgs e) { ChekerEventHandler handler = SwithState; if (handler != null) { handler(this, e); } }
private void _checker_FoundBrokenFile(object sender, CheckerEventArgs e) { fileQueue.Enqueue(e.file); }
private void _checker_SwithState(object sender, CheckerEventArgs e) { CheckDone = e.State; }