?? formaddfunctionguide.cs
字號:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ProgramCalculator
{
public partial class FormAddFunctionGuide : Form
{
public string FunctionName = "";
/// <summary>
/// 用于說明函數的簡短信息
/// </summary>
public string ExplainInfo = "";
public FormAddFunctionGuide()
{
InitializeComponent();
}
private void buttonCancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
}
private void buttonOk_Click(object sender, EventArgs e)
{
string input = this.textBoxFunctionName.Text.Trim();
if(String.IsNullOrEmpty(input))
{
this.labelInfo.Text = "函數名不能為空";
return;
}
else
{
for (int i = 0; i < input.Length; i++)
{
if(!char.IsLetter(input[i]))
{
this.labelInfo.Text = "函數名只能為字母";
return;
}
}
}
this.FunctionName = input;
this.ExplainInfo = this.textBoxExplainInfo.Text;
this.DialogResult = DialogResult.OK;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -