You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Mesnac.Action.Compressor
|
|
{
|
|
public partial class NumBoard : Form
|
|
{
|
|
public NumBoard()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
private void button11_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
}
|
|
|
|
private void keyboardButton13_Click(object sender, EventArgs e)
|
|
{
|
|
this.textBox1.Text = "0";
|
|
}
|
|
|
|
private void keyboardButton12_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
}
|
|
|
|
private void btn_Click(object sender, EventArgs e)
|
|
{
|
|
Button btn = sender as Button;
|
|
if (this.textBox1.Text == "0")
|
|
this.textBox1.Text = btn.Text;
|
|
else
|
|
this.textBox1.Text += btn.Text;
|
|
}
|
|
}
|
|
}
|