Ejemplo n.º 1
0
        public void StopTailing()
        {
            Trace.WriteLine("Stopping tail...");
            TailFile.StopTailing();

            Status    = "Idle";
            IsRunning = false;
            CommandManager.InvalidateRequerySuggested();
        }
Ejemplo n.º 2
0
        private void ChangeLogLocation()
        {
            var wasRunning = _tail.IsRunning;

            if (wasRunning)
            {
                _tail.StopTailing();
            }

            LogSource.Instance.SaveState();
            _tail.LogLines.Clear();

            if (wasRunning)
#pragma warning disable 4014
            {
                _tail.StartTailing();
            }
#pragma warning restore 4014
        }