private void DisbleRunButtons() { StopButton.IsEnabled = true; StopButton.Refresh(); RunActionButton.IsEnabled = false; RunActivityButton.IsEnabled = false; RunButton.IsEnabled = false; StatusImageControl.ImageType = eImageType.Processing; if (mStopwatch == null) { mStopwatch = new System.Diagnostics.Stopwatch(); } mStopwatch.Reset(); mStopwatch.Start(); }