private void CheckForSaveChanges()
        {
            string toLoad   = null;
            string toDelete = null;

            for (int i = this.savePanes.Count - 1; i >= 0; i--)
            {
                SavePane pane = this.savePanes[i];
                if (pane.wantsLoad)
                {
                    toLoad         = pane.Name;
                    pane.wantsLoad = false;
                }
                if (pane.wantsDelete)
                {
                    toDelete         = pane.Name;
                    pane.wantsDelete = false;
                }
            }

            if (toLoad != null)
            {
                LoadEnv(toLoad);
            }
            else if (toDelete != null)
            {
                DeleteEnv(toDelete);
            }
        }
        private void ReloadSaves()
        {
            this.ClearSavePanes();

            DirectoryInfo info = new DirectoryInfo(PRESET_DIR);

            FileInfo[] files = info.GetFiles("*.xml").OrderBy(p => p.CreationTime).ToArray();
            foreach (FileInfo f in files)
            {
                SavePane pane = new SavePane(this.FontSize, Path.GetFileNameWithoutExtension(f.Name));
                this.savePanes.Add(pane);
                this.ChildControls.Add(pane);
            }
        }