public void CloseFile(FileEditorTab fileTab) { // TODO: Make AskToSaveFile so that it also has a CANCEL button // fileTab.AskToSaveFile(); TabPages.Remove(fileTab); if (TabCount == 0) { this.AddNewFile(); } }
public void CloseFile(FileEditorTab fileTab) { // TODO: Make AskToSaveFile so that it also has a CANCEL button // fileTab.AskToSaveFile(); TabPages.Remove(fileTab); if (TabCount == 0) { this.AddNewFile(); } }