public void SwitchFocusTo(File tab) { if(Focus >= 0 && Focus < Tabs.Count) Tabs[Focus].outOfFocused(); rtx.Clear(); tab.Focused(); Focus = Tabs.IndexOf(tab); if (MainForm.debuging) Debug(); }