private void newFile() { ipaView.Dispose(); docView.Dispose(); dictView.Dispose(); exView.Dispose(); ipaView = new IpaKeyboardView(); docView = new LanguageDocumentationView(); dictView = new DictionaryView(); exView = new ExampleListView(); currentFile = ""; Title = AppSettings.WindowTitle; currView = ViewType.IpaKeyboard; viewContainer.Add(ipaView); ShowAll(); }