示例#1
0
        void OnItemClicked(int index, int subIndex)
        {
            switch (subIndex)
            {
            case 0:
                ModuleListPanel.LoadStateConfiguration(files[index].FileName);
                Close();
                break;

            case 1:
                string filename = files[index].FullPath;
                try
                {
                    File.Delete(filename);
                }
                catch (Exception e)
                {
                    Logger.Internal("Error deleting config file", e);
                }

                ReadAllFiles();
                break;
            }
        }