示例#1
0
        // All path text boxes should do some kind of error checking
        // Config path under base, config will default to %exe%
        private void LockDownCores()
        {
            if (VersionInfo.DeveloperBuild)
            {
                return;
            }

            string[] coresToHide = { };

            foreach (var core in coresToHide)
            {
                PathTabControl.TabPages.Remove(
                    PathTabControl.TabPages().FirstOrDefault(tp => tp.Name == core) ?? new TabPage());
            }
        }
示例#2
0
        // All path text boxes should do some kind of error checking
        // Config path under base, config will default to %exe%
        private void LockDownCores()
        {
            if (VersionInfo.DeveloperBuild)
            {
                return;
            }

            string[] coresToHide = { "GB4x", "O2", "ChannelF", "AmstradCPC" };

            foreach (var core in coresToHide)
            {
                var tabPage = PathTabControl.TabPages().First(tp => tp.Name == core);
                PathTabControl.TabPages.Remove(tabPage);
            }
        }