Advertisement
Guest User

Untitled

a guest
Jan 7th, 2017
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 9.85 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: WpfApplication2.MainWindow
  3. // Assembly: WpfApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. // MVID: 94E28718-C4F9-444B-BE1B-9625C9B145F2
  5. // Assembly location: E:\Missile Launch.exe
  6.  
  7. using System;
  8. using System.CodeDom.Compiler;
  9. using System.ComponentModel;
  10. using System.Diagnostics;
  11. using System.Windows;
  12. using System.Windows.Controls;
  13. using System.Windows.Markup;
  14. using System.Windows.Threading;
  15.  
  16. namespace WpfApplication2
  17. {
  18.   public class MainWindow : Window, IComponentConnector
  19.   {
  20.     private DispatcherTimer _timer;
  21.     private TimeSpan _time;
  22.     private string InputUName;
  23.     private string InputPWord;
  24.     private string LogNum;
  25.     private string SerialNum;
  26.     private string AbortionC;
  27.     internal Grid grid1;
  28.     internal Button yes_button;
  29.     internal Button no_button;
  30.     internal TextBlock securityScreen;
  31.     internal TextBox Username;
  32.     internal TextBox Password;
  33.     internal TextBlock countdown;
  34.     internal TextBlock LogScreen;
  35.     internal Button LogScreenBT;
  36.     internal Button ok_button;
  37.     internal TextBox lognum;
  38.     internal TextBlock KeyCode;
  39.     internal TextBlock RocketSerial;
  40.     internal TextBox SerialEntry;
  41.     internal Button Serialbt;
  42.     internal TextBlock AbortionCode;
  43.     internal TextBox AbortCode;
  44.     internal Button AbortBT;
  45.     private bool _contentLoaded;
  46.  
  47.     public MainWindow()
  48.     {
  49.       this.InitializeComponent();
  50.     }
  51.  
  52.     private void no_button_Click(object sender, RoutedEventArgs e)
  53.     {
  54.       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);
  55.     }
  56.  
  57.     private void yes_button_Click(object sender, RoutedEventArgs e)
  58.     {
  59.       this.yes_button.Visibility = Visibility.Hidden;
  60.       this.no_button.Visibility = Visibility.Hidden;
  61.       this.securityScreen.Visibility = Visibility.Visible;
  62.       this.Username.Visibility = Visibility.Visible;
  63.       this.Password.Visibility = Visibility.Visible;
  64.       this.ok_button.Visibility = Visibility.Visible;
  65.     }
  66.  
  67.     private void Username_TextChanged(object sender, TextChangedEventArgs e)
  68.     {
  69.       this.InputUName = this.Username.Text;
  70.     }
  71.  
  72.     private void Password_TextChanged(object sender, TextChangedEventArgs e)
  73.     {
  74.       this.InputPWord = this.Password.Text;
  75.     }
  76.  
  77.     private void logoff_TextChanged(object sender, TextChangedEventArgs e)
  78.     {
  79.       this.LogNum = this.lognum.Text;
  80.     }
  81.  
  82.     private void SerialEntry_TextChanged(object sender, TextChangedEventArgs e)
  83.     {
  84.       this.SerialNum = this.SerialEntry.Text;
  85.     }
  86.  
  87.     private void AbortCode_TextChanged(object sender, TextChangedEventArgs e)
  88.     {
  89.       this.AbortionC = this.AbortCode.Text;
  90.     }
  91.  
  92.     private void ok_button_Click(object sender, RoutedEventArgs e)
  93.     {
  94.       if (this.InputUName == "BECDZ445" && this.InputPWord == "RGBWOTPYLPYLPYLP")
  95.       {
  96.         int num = (int) MessageBox.Show("CORRECT USERNAME & PASSWORD\n\tENTERED", "ACCESS GRANTED", MessageBoxButton.OK, MessageBoxImage.Asterisk);
  97.         this.Username.Visibility = Visibility.Hidden;
  98.         this.Password.Visibility = Visibility.Hidden;
  99.         this.ok_button.Visibility = Visibility.Hidden;
  100.         this.securityScreen.Visibility = Visibility.Hidden;
  101.         this.LogScreen.Visibility = Visibility.Visible;
  102.         this.LogScreenBT.Visibility = Visibility.Visible;
  103.         this.lognum.Visibility = Visibility.Visible;
  104.       }
  105.       else if (this.InputUName == "OLEG" || this.InputUName == "Oleg" || this.InputUName == "oleg")
  106.       {
  107.         int num1 = (int) MessageBox.Show("USERNAME IS REQUIRED \nNOT ACTUAL NAME", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
  108.       }
  109.       else if (this.InputPWord == "PASSWORD" || this.InputPWord == "password" || (this.InputPWord == "sabotage" || this.InputPWord == "SABOTAGE"))
  110.       {
  111.         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);
  112.       }
  113.       else
  114.       {
  115.         int num3 = (int) MessageBox.Show("INVALID PASSWORD AND/OR USERNAME ENTERED \nMAKE SURE CAPS LOCK ON!!", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
  116.       }
  117.     }
  118.  
  119.     private void LogScreenBT_Click(object sender, RoutedEventArgs e)
  120.     {
  121.       if (this.LogNum == "1")
  122.       {
  123.         this.RocketSerial.Visibility = Visibility.Visible;
  124.         this.SerialEntry.Visibility = Visibility.Visible;
  125.         this.Serialbt.Visibility = Visibility.Visible;
  126.       }
  127.       else
  128.       {
  129.         int num = (int) MessageBox.Show("WHAT ARE YOU DOING!\nTYPE 1\n(and HURRY!!!)", "I.D.I.O.T WARNING", MessageBoxButton.OK, MessageBoxImage.Hand);
  130.       }
  131.     }
  132.  
  133.     private void Serialbt_Click(object sender, RoutedEventArgs e)
  134.     {
  135.       if (this.SerialNum == "999888444")
  136.       {
  137.         int num = (int) MessageBox.Show("CORRECT SERIAL NO. ENTERED", "ACCESS GRANTED", MessageBoxButton.OK, MessageBoxImage.Asterisk);
  138.         this.Serialbt.Visibility = Visibility.Hidden;
  139.         this.RocketSerial.Visibility = Visibility.Hidden;
  140.         this.SerialEntry.Visibility = Visibility.Hidden;
  141.         this.AbortionCode.Visibility = Visibility.Visible;
  142.         this.AbortBT.Visibility = Visibility.Visible;
  143.         this.AbortCode.Visibility = Visibility.Visible;
  144.       }
  145.       else
  146.       {
  147.         int num1 = (int) MessageBox.Show("INCORRECT SERIAL NO. ENTERED\nMAKE SURE CAPS LOCK ON", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
  148.       }
  149.     }
  150.  
  151.     private void AbortBT_Click(object sender, RoutedEventArgs e)
  152.     {
  153.       if (this.AbortionC == "12SHEEP")
  154.       {
  155.         int num = (int) MessageBox.Show("CORRECT ABORTION CODE ENTERED", "ACCESS GRANTED", MessageBoxButton.OK, MessageBoxImage.Asterisk);
  156.         this.AbortionCode.Visibility = Visibility.Hidden;
  157.         this.AbortBT.Visibility = Visibility.Hidden;
  158.         this.AbortCode.Visibility = Visibility.Hidden;
  159.         this.KeyCode.Visibility = Visibility.Visible;
  160.       }
  161.       else
  162.       {
  163.         int num1 = (int) MessageBox.Show("INCORRECT ABORTION CODE ENTERED\nMAKE SURE CAPS LOCK ON", "ACCESS DENIED", MessageBoxButton.OK, MessageBoxImage.Hand);
  164.       }
  165.     }
  166.  
  167.     private void countdownTimer()
  168.     {
  169.       this._time = TimeSpan.FromMinutes(10.0);
  170.       this._timer = new DispatcherTimer(new TimeSpan(0, 0, 1), DispatcherPriority.Normal, (EventHandler) ((param0, param1) =>
  171.       {
  172.         this.countdown.Text = this._time.ToString("c");
  173.         if (this._time == TimeSpan.Zero)
  174.           this._timer.Stop();
  175.         this._time = this._time.Add(TimeSpan.FromSeconds(-1.0));
  176.       }), Application.Current.Dispatcher);
  177.       this._timer.Start();
  178.     }
  179.  
  180.     [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  181.     [DebuggerNonUserCode]
  182.     public void InitializeComponent()
  183.     {
  184.       if (this._contentLoaded)
  185.         return;
  186.       this._contentLoaded = true;
  187.       Application.LoadComponent((object) this, new Uri("/WpfApplication2;component/mainwindow.xaml", UriKind.Relative));
  188.     }
  189.  
  190.     [EditorBrowsable(EditorBrowsableState.Never)]
  191.     [DebuggerNonUserCode]
  192.     [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  193.     void IComponentConnector.Connect(int connectionId, object target)
  194.     {
  195.       switch (connectionId)
  196.       {
  197.         case 1:
  198.           this.grid1 = (Grid) target;
  199.           break;
  200.         case 2:
  201.           this.yes_button = (Button) target;
  202.           this.yes_button.Click += new RoutedEventHandler(this.yes_button_Click);
  203.           break;
  204.         case 3:
  205.           this.no_button = (Button) target;
  206.           this.no_button.Click += new RoutedEventHandler(this.no_button_Click);
  207.           break;
  208.         case 4:
  209.           this.securityScreen = (TextBlock) target;
  210.           break;
  211.         case 5:
  212.           this.Username = (TextBox) target;
  213.           this.Username.TextChanged += new TextChangedEventHandler(this.Username_TextChanged);
  214.           break;
  215.         case 6:
  216.           this.Password = (TextBox) target;
  217.           this.Password.TextChanged += new TextChangedEventHandler(this.Password_TextChanged);
  218.           break;
  219.         case 7:
  220.           this.countdown = (TextBlock) target;
  221.           break;
  222.         case 8:
  223.           this.LogScreen = (TextBlock) target;
  224.           break;
  225.         case 9:
  226.           this.LogScreenBT = (Button) target;
  227.           this.LogScreenBT.Click += new RoutedEventHandler(this.LogScreenBT_Click);
  228.           break;
  229.         case 10:
  230.           this.ok_button = (Button) target;
  231.           this.ok_button.Click += new RoutedEventHandler(this.ok_button_Click);
  232.           break;
  233.         case 11:
  234.           this.lognum = (TextBox) target;
  235.           this.lognum.TextChanged += new TextChangedEventHandler(this.logoff_TextChanged);
  236.           break;
  237.         case 12:
  238.           this.KeyCode = (TextBlock) target;
  239.           break;
  240.         case 13:
  241.           this.RocketSerial = (TextBlock) target;
  242.           break;
  243.         case 14:
  244.           this.SerialEntry = (TextBox) target;
  245.           this.SerialEntry.TextChanged += new TextChangedEventHandler(this.SerialEntry_TextChanged);
  246.           break;
  247.         case 15:
  248.           this.Serialbt = (Button) target;
  249.           this.Serialbt.Click += new RoutedEventHandler(this.Serialbt_Click);
  250.           break;
  251.         case 16:
  252.           this.AbortionCode = (TextBlock) target;
  253.           break;
  254.         case 17:
  255.           this.AbortCode = (TextBox) target;
  256.           this.AbortCode.TextChanged += new TextChangedEventHandler(this.AbortCode_TextChanged);
  257.           break;
  258.         case 18:
  259.           this.AbortBT = (Button) target;
  260.           this.AbortBT.Click += new RoutedEventHandler(this.AbortBT_Click);
  261.           break;
  262.         default:
  263.           this._contentLoaded = true;
  264.           break;
  265.       }
  266.     }
  267.   }
  268. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement