📄 newrecorddialog.cs
字号:
#region Namespaces
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
#endregion //Namespaces
namespace Epi.Windows.MakeView.Dialogs.CheckCodeCommandDialogs
{
/// <summary>
/// The New Record Dialog
/// </summary>
public partial class NewRecordDialog : Epi.Windows.MakeView.Dialogs.CheckCodeCommandDialogs.CheckCodeDesignDialog
{
#region Constructors
/// <summary>
/// Constructor for the class
/// </summary>
[Obsolete("Use of default constructor not allowed", true)]
public NewRecordDialog()
{
InitializeComponent();
}
/// <summary>
/// Constructor for the class
/// </summary>
public NewRecordDialog(MainForm frm) : base(frm)
{
InitializeComponent();
}
#endregion //Constructors
#region Private Event Handlers
/// <summary>
/// Cancel button closes this dialog
/// </summary>
/// <param name="sender">Object that fired the event</param>
/// <param name="e">.NET supplied event parameters</param>
private void btnCancel_Click(object sender, System.EventArgs e)
{
this.Close();
}
/// <summary>
/// Saves the current record and begins a new record
/// </summary>
/// <param name="sender">Object that fired the event</param>
/// <param name="e">.NET supplied event parameters</param>
private void btnOk_Click(object sender, System.EventArgs e)
{
Output = CommandNames.NEWRECORD;
this.DialogResult = DialogResult.OK;
this.Hide();
}
#endregion //Private Event Handlers
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -