public bool CloseFile(bool checkSaved = true)
        {
            if (!OnEditing)
            {
                return(true);
            }
            if (checkSaved && !ShowSaveQuestion())
            {
                return(false);
            }

            UnregisterFileEvents(EditingFile);

            MotionTab.ClearItems();
            GraphEditorTab.DetachMotion();
            EditingFile = null;

            return(true);
        }
 private void InitTabs()
 {
     MotionTab.Init(this);
     GraphEditorTab.Init(this);
     PreviewTab.Init(this);
 }