Example #1
0
        public static InstructionSet GetOperatingSystemInstructionSet()
        {
            var  IS  = new InstructionSetDetector();
            bool x86 = ((App)Application.Current).IsX86;

            if (x86)
            {
                return(InstructionSet.x86);
            }
            else
            {
                return(InstructionSet.x64);
            }
        }
Example #2
0
        // shows/hides saturn core options depending on x64/x86 detected
        public static void DoShowHides()
        {
            var  IS  = new InstructionSetDetector();
            bool x86 = ((App)Application.Current).IsX86;

            if (x86 == true)
            {
                IS.btnSs.Visibility        = Visibility.Collapsed;
                IS.btnConfigSs.Visibility  = Visibility.Collapsed;
                IS.btnControlSs.Visibility = Visibility.Collapsed;
            }
            else
            {
                IS.btnSs.Visibility        = Visibility.Visible;
                IS.btnConfigSs.Visibility  = Visibility.Visible;
                IS.btnControlSs.Visibility = Visibility.Visible;
            }
        }