Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled with JetBrains decompiler
- // Type: WpfApplication2.MainWindow
- // Assembly: WpfApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
- // MVID: 94E28718-C4F9-444B-BE1B-9625C9B145F2
- // Assembly location: E:\Missile Launch.exe
- using System;
- using System.CodeDom.Compiler;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Markup;
- using System.Windows.Threading;
- namespace WpfApplication2
- {
- public class MainWindow : Window, IComponentConnector
- {
- private DispatcherTimer _timer;
- private TimeSpan _time;
- private string InputUName;
- private string InputPWord;
- private string LogNum;
- private string SerialNum;
- private string AbortionC;
- internal Grid grid1;
- internal Button yes_button;
- internal Button no_button;
- internal TextBlock securityScreen;
- internal TextBox Username;
- internal TextBox Password;
- internal TextBlock countdown;
- internal TextBlock LogScreen;
- internal Button LogScreenBT;
- internal Button ok_button;
- internal TextBox lognum;
- internal TextBlock KeyCode;
- internal TextBlock RocketSerial;
- internal TextBox SerialEntry;
- internal Button Serialbt;
- internal TextBlock AbortionCode;
- internal TextBox AbortCode;
- internal Button AbortBT;
- private bool _contentLoaded;
- public MainWindow()
- {
- this.InitializeComponent();
- }
- private void no_button_Click(object sender, RoutedEventArgs e)
- {
- int num = (int) MessageBox.Show("WHAT ARE YOU DOING!\nPRESS YES!\n(unless you really do want \nto blow up the world)", "I.D.I.O.T WARNING", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- private void yes_button_Click(object sender, RoutedEventArgs e)
- {
- this.yes_button.Visibility = Visibility.Hidden;
- this.no_button.Visibility = Visibility.Hidden;
- this.securityScreen.Visibility = Visibility.Visible;
- this.Username.Visibility = Visibility.Visible;
- this.Password.Visibility = Visibility.Visible;
- this.ok_button.Visibility = Visibility.Visible;
- }
- private void Username_TextChanged(object sender, TextChangedEventArgs e)
- {
- this.InputUName = this.Username.Text;
- }
- private void Password_TextChanged(object sender, TextChangedEventArgs e)
- {
- this.InputPWord = this.Password.Text;
- }
- private void logoff_TextChanged(object sender, TextChangedEventArgs e)
- {
- this.LogNum = this.lognum.Text;
- }
- private void SerialEntry_TextChanged(object sender, TextChangedEventArgs e)
- {
- this.SerialNum = this.SerialEntry.Text;
- }
- private void AbortCode_TextChanged(object sender, TextChangedEventArgs e)
- {
- this.AbortionC = this.AbortCode.Text;
- }
- private void ok_button_Click(object sender, RoutedEventArgs e)
- {
- if (this.InputUName == "BECDZ445" && this.InputPWord == "RGBWOTPYLPYLPYLP")
- {
- int num = (int) MessageBox.Show("CORRECT USERNAME & PASSWORD\n\tENTERED", "ACCESS GRANTED", MessageBoxButton.OK, MessageBoxImage.Asterisk);
- this.Username.Visibility = Visibility.Hidden;
- this.Password.Visibility = Visibility.Hidden;
- this.ok_button.Visibility = Visibility.Hidden;
- this.securityScreen.Visibility = Visibility.Hidden;
- this.LogScreen.Visibility = Visibility.Visible;
- this.LogScreenBT.Visibility = Visibility.Visible;
- this.lognum.Visibility = Visibility.Visible;
- }
- else if (this.InputUName == "OLEG" || this.InputUName == "Oleg" || this.InputUName == "oleg")
- {
- int num1 = (int) MessageBox.Show("USERNAME IS REQUIRED \nNOT ACTUAL NAME", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- else if (this.InputPWord == "PASSWORD" || this.InputPWord == "password" || (this.InputPWord == "sabotage" || this.InputPWord == "SABOTAGE"))
- {
- int num2 = (int) MessageBox.Show("AS IF YOU THOUGHT THE PASSWORD \nWOULD BE SO EASY!\nHAHAHAHAHA!\nGUESS AGAIN", "Are You For Real?", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- else
- {
- int num3 = (int) MessageBox.Show("INVALID PASSWORD AND/OR USERNAME ENTERED \nMAKE SURE CAPS LOCK ON!!", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- }
- private void LogScreenBT_Click(object sender, RoutedEventArgs e)
- {
- if (this.LogNum == "1")
- {
- this.RocketSerial.Visibility = Visibility.Visible;
- this.SerialEntry.Visibility = Visibility.Visible;
- this.Serialbt.Visibility = Visibility.Visible;
- }
- else
- {
- int num = (int) MessageBox.Show("WHAT ARE YOU DOING!\nTYPE 1\n(and HURRY!!!)", "I.D.I.O.T WARNING", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- }
- private void Serialbt_Click(object sender, RoutedEventArgs e)
- {
- if (this.SerialNum == "999888444")
- {
- int num = (int) MessageBox.Show("CORRECT SERIAL NO. ENTERED", "ACCESS GRANTED", MessageBoxButton.OK, MessageBoxImage.Asterisk);
- this.Serialbt.Visibility = Visibility.Hidden;
- this.RocketSerial.Visibility = Visibility.Hidden;
- this.SerialEntry.Visibility = Visibility.Hidden;
- this.AbortionCode.Visibility = Visibility.Visible;
- this.AbortBT.Visibility = Visibility.Visible;
- this.AbortCode.Visibility = Visibility.Visible;
- }
- else
- {
- int num1 = (int) MessageBox.Show("INCORRECT SERIAL NO. ENTERED\nMAKE SURE CAPS LOCK ON", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- }
- private void AbortBT_Click(object sender, RoutedEventArgs e)
- {
- if (this.AbortionC == "12SHEEP")
- {
- int num = (int) MessageBox.Show("CORRECT ABORTION CODE ENTERED", "ACCESS GRANTED", MessageBoxButton.OK, MessageBoxImage.Asterisk);
- this.AbortionCode.Visibility = Visibility.Hidden;
- this.AbortBT.Visibility = Visibility.Hidden;
- this.AbortCode.Visibility = Visibility.Hidden;
- this.KeyCode.Visibility = Visibility.Visible;
- }
- else
- {
- int num1 = (int) MessageBox.Show("INCORRECT ABORTION CODE ENTERED\nMAKE SURE CAPS LOCK ON", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
- }
- }
- private void countdownTimer()
- {
- this._time = TimeSpan.FromMinutes(10.0);
- this._timer = new DispatcherTimer(new TimeSpan(0, 0, 1), DispatcherPriority.Normal, (EventHandler) ((param0, param1) =>
- {
- this.countdown.Text = this._time.ToString("c");
- if (this._time == TimeSpan.Zero)
- this._timer.Stop();
- this._time = this._time.Add(TimeSpan.FromSeconds(-1.0));
- }), Application.Current.Dispatcher);
- this._timer.Start();
- }
- [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
- [DebuggerNonUserCode]
- public void InitializeComponent()
- {
- if (this._contentLoaded)
- return;
- this._contentLoaded = true;
- Application.LoadComponent((object) this, new Uri("/WpfApplication2;component/mainwindow.xaml", UriKind.Relative));
- }
- [EditorBrowsable(EditorBrowsableState.Never)]
- [DebuggerNonUserCode]
- [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
- void IComponentConnector.Connect(int connectionId, object target)
- {
- switch (connectionId)
- {
- case 1:
- this.grid1 = (Grid) target;
- break;
- case 2:
- this.yes_button = (Button) target;
- this.yes_button.Click += new RoutedEventHandler(this.yes_button_Click);
- break;
- case 3:
- this.no_button = (Button) target;
- this.no_button.Click += new RoutedEventHandler(this.no_button_Click);
- break;
- case 4:
- this.securityScreen = (TextBlock) target;
- break;
- case 5:
- this.Username = (TextBox) target;
- this.Username.TextChanged += new TextChangedEventHandler(this.Username_TextChanged);
- break;
- case 6:
- this.Password = (TextBox) target;
- this.Password.TextChanged += new TextChangedEventHandler(this.Password_TextChanged);
- break;
- case 7:
- this.countdown = (TextBlock) target;
- break;
- case 8:
- this.LogScreen = (TextBlock) target;
- break;
- case 9:
- this.LogScreenBT = (Button) target;
- this.LogScreenBT.Click += new RoutedEventHandler(this.LogScreenBT_Click);
- break;
- case 10:
- this.ok_button = (Button) target;
- this.ok_button.Click += new RoutedEventHandler(this.ok_button_Click);
- break;
- case 11:
- this.lognum = (TextBox) target;
- this.lognum.TextChanged += new TextChangedEventHandler(this.logoff_TextChanged);
- break;
- case 12:
- this.KeyCode = (TextBlock) target;
- break;
- case 13:
- this.RocketSerial = (TextBlock) target;
- break;
- case 14:
- this.SerialEntry = (TextBox) target;
- this.SerialEntry.TextChanged += new TextChangedEventHandler(this.SerialEntry_TextChanged);
- break;
- case 15:
- this.Serialbt = (Button) target;
- this.Serialbt.Click += new RoutedEventHandler(this.Serialbt_Click);
- break;
- case 16:
- this.AbortionCode = (TextBlock) target;
- break;
- case 17:
- this.AbortCode = (TextBox) target;
- this.AbortCode.TextChanged += new TextChangedEventHandler(this.AbortCode_TextChanged);
- break;
- case 18:
- this.AbortBT = (Button) target;
- this.AbortBT.Click += new RoutedEventHandler(this.AbortBT_Click);
- break;
- default:
- this._contentLoaded = true;
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement