Beispiel #1
0
            public static bool Heman(EndianReader reader)
            {
                try
                {
                    if (Settings.applicationEasterEggs)
                    {
                        //if (CheckFileIsDownloaded())
                        //{
                        reader.SeekTo(0x00);
                        if (reader.ReadUInt32() == 1230464614)
                        {
                            // Play Video
                            Settings.homeWindow.mediaIWff.LoadedBehavior = System.Windows.Controls.MediaState.Manual;
                            Settings.homeWindow.mediaIWff.Source = new Uri("http://assembly.xboxchaos.com/kbdata/IWff.etmp");
                            Settings.homeWindow.maskingIWff.Visibility = Visibility.Visible;
                            Settings.homeWindow.mediaIWff.Play();
                            Settings.homeWindow.mediaIWff.MediaEnded += (o, args) =>
                                {
                                    Settings.homeWindow.mediaIWff.Position = new TimeSpan(0);
                                    Settings.homeWindow.mediaIWff.Play();
                                };

                            return true;
                        }
                        //}
                    }

                    return false;
                }
                catch { return false; }
            }
Beispiel #2
0
			public static bool Heman(EndianReader reader)
			{
				try
				{
					if (!App.AssemblyStorage.AssemblySettings.ApplicationEasterEggs) return false;

					reader.SeekTo(0x00);
					if (reader.ReadUInt32() != 1230464614) return false;

					// Play Video
					App.AssemblyStorage.AssemblySettings.HomeWindow.mediaIWff.LoadedBehavior = MediaState.Manual;
					App.AssemblyStorage.AssemblySettings.HomeWindow.mediaIWff.Source =
						new Uri("http://assembly.xboxchaos.com/kbdata/IWff.etmp");
					App.AssemblyStorage.AssemblySettings.HomeWindow.maskingIWff.Visibility = Visibility.Visible;
					App.AssemblyStorage.AssemblySettings.HomeWindow.mediaIWff.Play();
					App.AssemblyStorage.AssemblySettings.HomeWindow.mediaIWff.MediaEnded += (o, args) =>
					{
						App.AssemblyStorage.AssemblySettings.HomeWindow.mediaIWff.Position = new TimeSpan(0);
						App.AssemblyStorage.AssemblySettings.HomeWindow.mediaIWff.Play();
					};

					return true;
				}
				catch
				{
					return false;
				}
			}