|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace HopfieldRecognizer
{
public partial class frmAddDistortion : Form
{
public int DistortionLevel;
public frmAddDistortion()
{
DistortionLevel = 10;
InitializeComponent();
}
private void btnSetDistortionLevel_Click(object sender, EventArgs e)
{
this.nudDistortionLevel_ValueChanged(this, new EventArgs());
this.Close();
}
private void nudDistortionLevel_ValueChanged(object sender, EventArgs e)
{
DistortionLevel = Convert.ToInt32(nudDistortionLevel.Value);
}
private void nudDistortionLevel_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13) this.btnSetDistortionLevel_Click(this, new EventArgs());
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Work: HSBC (http://www.hsbc.co.uk/).
Regalia: PhD in CS, MCAD, MCPD: Web Developer, MCTS: .Net Framework 2.0., 3.5.
Interests: Programming, artificial intelligence, C#, .NET, HTML5, ASP.NET, SQL, LINQ.
Marital Status: Married, daughter
Blog:
http://www.magomedov.co.uk