private void Timer_Hide_Tick(object sender, EventArgs e) { if ((filename.Substring(filename.Length - 5, 5).ToLower() != ".epdf") || !System.IO.File.Exists(filename)) { this.Close(); } Timer_Hide.Stop(); ExtractFile(filename); }
private void Viewer_Load(object sender, EventArgs e) { Timer_Hide.Start(); }