Ejemplo n.º 1
0
		private void btnOk_Click( object sender, EventArgs e )
		{
			if( this.tbKey.Text.Equals( Properties.Settings.Default.Key ) )
			{
				Properties.Settings.Default.Registered = true;
				Properties.Settings.Default.Save();
				this.Hide();

				//Once user successfully register his version,
				//default checks will be created
				this.AddDefaultChecks();

				FmScanner scanner = new FmScanner();
				scanner.Show();
			}
			else
			{
				this.tbKey.Text = String.Empty;
				MessageBox.Show( "Wrong key!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error );
			}
		}
Ejemplo n.º 2
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            if (this.tbKey.Text.Equals(Properties.Settings.Default.Key))
            {
                Properties.Settings.Default.Registered = true;
                Properties.Settings.Default.Save();
                this.Hide();

                //Once user successfully register his version,
                //default checks will be created
                this.AddDefaultChecks();

                FmScanner scanner = new FmScanner();
                scanner.Show();
            }
            else
            {
                this.tbKey.Text = String.Empty;
                MessageBox.Show("Wrong key!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }