public void ExpandAll() { if (sourcePreviewer.Visible) { //string key = ATMLPleaseWait.Show(string.Format("Expanding {0} lines of code ", sourcePreviewer.Lines.Count)); sourcePreviewer.UnfoldAll(); //ATMLPleaseWait.Hide(key); } }