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()); }
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(); }
private void StartTail() { tailManager.StartTail(); }
public void StartTail(bool save = true, bool stop = true) { demoThread.Start(); fileTailManager.StartTail(false); }