AmandaInterface.FileManagerTabControl.CloseFile C# (CSharp) Method

CloseFile() public method

public CloseFile ( FileEditorTab fileTab ) : void
fileTab FileEditorTab
return void
        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();
            }
        }