public AndroidMaterial() { InitializeComponent(); Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; this.Title += "v" + v.Major.ToString() + "." + v.Minor.ToString(); #if ALPHA_TRIAL DateTime d = new DateTime(2015, 11, 6); if (d <= DateTime.Today) { MessageBox.Show("This is an expired alpha testing version\nPlease check for the latest release, Application will exit "); Environment.Exit(0); } #endif // //Update Version // txtVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); // //Setup TxtLog for logging // Log.SetLogBuffer(txtlog); Log.SetStatuslabel(lblStatus); // //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(); MessageBox.Show("Not all system requirements are met\nPlease check the installer log"); } Log.write("=========================================="); }
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("=========================================="); }