Guest User

Untitled

a guest
Oct 6th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: Guess.MainWindow
  3.  
  4. //guess, guess, guess, main window, initialize component():void
  5.  
  6.  
  7.  
  8.  
  9. using System;
  10. using System.CodeDom.Compiler;
  11. using System.ComponentModel;
  12. using System.Diagnostics;
  13. using System.Windows;
  14. using System.Windows.Controls;
  15. using System.Windows.Controls.Primitives;
  16. using System.Windows.Markup;
  17.  
  18.  
  19. #nullable enable
  20. namespace Guess
  21. {
  22. public class MainWindow : Window, IComponentConnector
  23. {
  24. private int f = 3;
  25. private int try_count = 2;
  26. internal
  27. #nullable disable
  28. TextBox polje;
  29. internal Label label;
  30. private bool _contentLoaded;
  31.  
  32. public MainWindow() => this.InitializeComponent();
  33.  
  34. private void Button_Click(
  35. #nullable enable
  36. object sender, RoutedEventArgs e)
  37. {
  38. double num1 = -12.0;
  39. double num2 = num1 + 200.0 - 122.0;
  40. ++this.f;
  41. double num3 = num1 / num2 * 2211.0 + 3096.0 + 1452.0 + (double) (31 * (42 * this.f + 112));
  42. --this.f;
  43. if (this.try_count > 0)
  44. {
  45. if (num3 == (double) long.Parse(this.polje.Text))
  46. {
  47. int num4 = (int) MessageBox.Show("Ugotovil si pravilno");
  48. }
  49. else
  50. {
  51. int num5 = (int) MessageBox.Show("Ni pravilno. Imaš še " + this.try_count.ToString() + " poskusov");
  52. --this.try_count;
  53. }
  54. }
  55. else
  56. {
  57. int num6 = (int) MessageBox.Show("Več sreče prihodnjist porabil si vse možnosti");
  58. }
  59. }
  60.  
  61. [DebuggerNonUserCode]
  62. [GeneratedCode("PresentationBuildTasks", "6.0.9.0")]
  63. public void InitializeComponent()
  64. {
  65. if (this._contentLoaded)
  66. return;
  67. this._contentLoaded = true;
  68. Application.LoadComponent((object) this, new Uri("/Guess;component/mainwindow.xaml", UriKind.Relative));
  69. }
  70.  
  71. [DebuggerNonUserCode]
  72. [GeneratedCode("PresentationBuildTasks", "6.0.9.0")]
  73. [EditorBrowsable(EditorBrowsableState.Never)]
  74. void IComponentConnector.Connect(int connectionId,
  75. #nullable disable
  76. object target)
  77. {
  78. switch (connectionId)
  79. {
  80. case 1:
  81. this.polje = (TextBox) target;
  82. break;
  83. case 2:
  84. ((ButtonBase) target).Click += new RoutedEventHandler(this.Button_Click);
  85. break;
  86. case 3:
  87. this.label = (Label) target;
  88. break;
  89. default:
  90. this._contentLoaded = true;
  91. break;
  92. }
  93. }
  94. }
  95. }
  96.  
Add Comment
Please, Sign In to add comment