public void Clear() { switch (_CurrentTab) { case DesignTabs.Design: dcDesign.Clear(); break; case DesignTabs.Edit: scintilla1.Clear(); break; default: break; } }