Events

public delegate void Finished_EventHandler(System.DateTime _FinishedDateTime, string _RunTime, string _ThreadID); public event Finished_EventHandler Finished; private input_DelegateVoid private_DelegateVoid; public void Start(input_DelegateVoid _DelegateVoid) { Run(); } private void Run() { if (Finished != null) { Finished(System.DateTime.Now, (System.DateTime.Now - _StartTime).ToString(), System.Threading.Thread.CurrentThread.ManagedThreadId.ToString()); } } MSDN Artikel

Von |2015-06-15T21:40:03+00:00Juni 15th, 2015|Kommentare deaktiviert für Events