public void ShowMessage(DelMessage del) { if (del != null) { del(); } }
static void Main(string[] args) { MessageCenter center = new MessageCenter(); DelMessage del = new DelMessage(ShowmusicMessage); del += ShownormalMessage; del += ShownewsMessage; center.ShowMessage(del); Console.ReadKey(); }
private void btnCombine_Click(object sender, EventArgs e) { MyPath mypath = new MyPath(); mypath.InputPath = txtInput.Text; mypath.OutputPath = txtOutput.Text; delmessage = new DelMessage(ShowMessage); delProgress = new DelProgress(RefreshProgress); delSetProgress = new DelSetProgress(SetProgress); Thread t = new Thread(HandleFile); t.Start(mypath); }
public MedianFilterThread(DelMessage delMessage, ProcessBarValue processBarValue) { this._delMessage = delMessage; this._processBarValue = processBarValue; }