Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled with JetBrains decompiler
- // Type: Guess.MainWindow
- //guess, guess, guess, main window, initialize component():void
- using System;
- using System.CodeDom.Compiler;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Controls.Primitives;
- using System.Windows.Markup;
- #nullable enable
- namespace Guess
- {
- public class MainWindow : Window, IComponentConnector
- {
- private int f = 3;
- private int try_count = 2;
- internal
- #nullable disable
- TextBox polje;
- internal Label label;
- private bool _contentLoaded;
- public MainWindow() => this.InitializeComponent();
- private void Button_Click(
- #nullable enable
- object sender, RoutedEventArgs e)
- {
- double num1 = -12.0;
- double num2 = num1 + 200.0 - 122.0;
- ++this.f;
- double num3 = num1 / num2 * 2211.0 + 3096.0 + 1452.0 + (double) (31 * (42 * this.f + 112));
- --this.f;
- if (this.try_count > 0)
- {
- if (num3 == (double) long.Parse(this.polje.Text))
- {
- int num4 = (int) MessageBox.Show("Ugotovil si pravilno");
- }
- else
- {
- int num5 = (int) MessageBox.Show("Ni pravilno. Imaš še " + this.try_count.ToString() + " poskusov");
- --this.try_count;
- }
- }
- else
- {
- int num6 = (int) MessageBox.Show("Več sreče prihodnjist porabil si vse možnosti");
- }
- }
- [DebuggerNonUserCode]
- [GeneratedCode("PresentationBuildTasks", "6.0.9.0")]
- public void InitializeComponent()
- {
- if (this._contentLoaded)
- return;
- this._contentLoaded = true;
- Application.LoadComponent((object) this, new Uri("/Guess;component/mainwindow.xaml", UriKind.Relative));
- }
- [DebuggerNonUserCode]
- [GeneratedCode("PresentationBuildTasks", "6.0.9.0")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- void IComponentConnector.Connect(int connectionId,
- #nullable disable
- object target)
- {
- switch (connectionId)
- {
- case 1:
- this.polje = (TextBox) target;
- break;
- case 2:
- ((ButtonBase) target).Click += new RoutedEventHandler(this.Button_Click);
- break;
- case 3:
- this.label = (Label) target;
- break;
- default:
- this._contentLoaded = true;
- break;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment