public Licence() { this.InitializeComponent(); if (Settings.GetSettings().Licence == "free") { LicenceValidation.ValidLicence(this.textBox1.Text, this.textBox2.Text); } this.panel2.Show(); this.panel1.Hide(); this.label5.Text = Settings.GetSettings().Serial; }
private void method_0(object sender, RoutedEventArgs e) { this.dialogHost_0.set_IsOpen(true); int num1 = LicenceValidation.ValidLicence(this.jNZshobRhysiXbmjDDUtHtLNjDTUA_0.Email, this.jNZshobRhysiXbmjDDUtHtLNjDTUA_0.Licence) ? 1 : 0; this.dialogHost_0.set_IsOpen(false); if (num1 != 0) { this.jNZshobRhysiXbmjDDUtHtLNjDTUA_0.StatusText = "Advanced functions are now unlocked."; int num2 = (int)MessageBox.Show("Thank you"); this.window_0.Close(); } else { this.jNZshobRhysiXbmjDDUtHtLNjDTUA_0.StatusText = "Invalid Licence information."; } }