Android_UEFIInstaller.MainWindow.MainWindow C# (CSharp) Method

MainWindow() public method

public MainWindow ( ) : System
return System
        public MainWindow()
        {
            InitializeComponent();

            byte[] bytes = { 0x00,0x55, 0, 0x86};

            // If the system architecture is little-endian (that is, little end first),
            // reverse the byte array.
            if (BitConverter.IsLittleEndian)
                Array.Reverse(bytes);

            UInt16 i = BitConverter.ToUInt16(bytes, 0);

            //
            //Setup TxtLog for logging
            //
            Log.SetLogBuffer(txtlog);
            //
            //SetupGlobalExceptionHandler
            //
            SetupGlobalExceptionHandler();
            //
            //Log Some Info
            //
            Log.write("================Installer Info================");
            Log.write("Installer Directory:" + Environment.CurrentDirectory);
            Log.write("Installer Version:" + System.Reflection.Assembly.GetExecutingAssembly()
                                            .GetName()
                                            .Version
                                            .ToString());
            //
            // Machine Info
            //
            GetMachineInfo();
            //
            // Check if Requirements satisifed
            //
            if(!RequirementsCheck())
            {
                DisableUI();
            }

            Log.write("==========================================");
        }