Example #1
0
 public void ShowMessage(DelMessage del)
 {
     if (del != null)
     {
         del();
     }
 }
Example #2
0
        static void Main(string[] args)
        {
            MessageCenter center = new MessageCenter();
            DelMessage    del    = new DelMessage(ShowmusicMessage);

            del += ShownormalMessage;
            del += ShownewsMessage;
            center.ShowMessage(del);
            Console.ReadKey();
        }
Example #3
0
        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;
 }