Exemplo n.º 1
0
        private string StartDemo()
        {
            if (IsDemo)
            {
                return(null);
            }

            var message = "Demo mode will generate a log file automatically and tail it.  Do you want to continue?";

            if (MessageBox.Show(message, "Demo Mode", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return(null);
            }

            tailManager.StopTail();
            tailManager.FormInterface.LoadLastLinesCallback = () => - 1;
            tailManager = new DemoTailManager(tailManager);

            InitializeNewFile(tailManager.FormInterface.GetFileNameCallback());
            tailManager.StartTail(false, false);

            return(tailManager.FormInterface.GetFileNameCallback());
        }
Exemplo n.º 2
0
        private string StartDemo()
        {
            if (IsDemo)
            {
                return null;
            }

            var message = "Demo mode will generate a log file automatically and tail it.  Do you want to continue?";
            if (MessageBox.Show(message, "Demo Mode", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return null;
            }

            tailManager.StopTail();
            tailManager.FormInterface.LoadLastLinesCallback = () => -1;
            tailManager = new DemoTailManager(tailManager);

            InitializeNewFile(tailManager.FormInterface.GetFileNameCallback());
            tailManager.StartTail(false, false);

            return tailManager.FormInterface.GetFileNameCallback();
        }
Exemplo n.º 3
0
 private void StartTail()
 {
     tailManager.StartTail();
 }
Exemplo n.º 4
0
 public void StartTail(bool save = true, bool stop = true)
 {
     demoThread.Start();
     fileTailManager.StartTail(false);
 }