Exemple #1
0
        public void StopTailing()
        {
            Trace.WriteLine("Stopping tail...");
            TailFile.StopTailing();

            Status    = "Idle";
            IsRunning = false;
            CommandManager.InvalidateRequerySuggested();
        }
        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
        }