コード例 #1
0
 public void Start(NotifyDelegate nd)
 {
     Console.WriteLine("Yes, I shouldn't write to the console from here, it's just to demonstrate the code executed.");
     Console.WriteLine("SaveToDatabase Complete");
     Console.WriteLine(" ");
     nd.Invoke();
 }
コード例 #2
0
 public void Start(NotifyDelegate nd)
 {
     /* I shouldn't write to the console from here,
      * just for demonstration purposes
      */
     Console.WriteLine("SaveToDatabase Complete");
     Console.WriteLine(" ");
     nd.Invoke();
 }
コード例 #3
0
        public void Start(NotifyDelegate nd)
        {
            string message = string.Empty;

            if (DateTime.Now.Second > 30)
            {
                message = "Success";
            }
            else
            {
                message = "failure";
            }


            nd.Invoke(message);
        }
コード例 #4
0
 public void Notify(string Msg)
 {
     m_Notifier.Invoke(Msg);
 }