Beispiel #1
0
        private void RefreshElapsed(Object state)
        {
            iServiceDiagnosticsMutex.WaitOne();
            ServiceDiagnostics.AsyncActionDiagnostic action = iActionDiagnostic;
            iServiceDiagnosticsMutex.ReleaseMutex();

            if (action != null)
            {
                action.DiagnosticBegin(textBoxDiagnostic.Text);
            }
        }
Beispiel #2
0
        private void textBoxDiagnosticTextChanged(object sender, EventArgs e)
        {
            iServiceDiagnosticsMutex.WaitOne();
            ServiceDiagnostics.AsyncActionDiagnostic action = iActionDiagnostic;
            iServiceDiagnosticsMutex.ReleaseMutex();

            if (action != null)
            {
                action.DiagnosticBegin(textBoxDiagnostic.Text);
            }
        }