frm_wij.cs
来自「基于BP算法的贝叶斯网络参数学习」· CS 代码 · 共 45 行
CS
45 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace bs
{
public partial class frm_wij : Form
{
public frm_wij()
{
InitializeComponent();
}
private void maskedTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Enter)
{
if (Convert.ToDouble(this.maskedTextBox1.Text) > 1)
{
return;
}
else
{
this.DialogResult = DialogResult.OK;
}
}
}
private void button1_Click(object sender, EventArgs e)
{
if (Convert.ToDouble(this.maskedTextBox1.Text) > 1)
{
return;
}
else
{
this.DialogResult = DialogResult.OK;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?