Client/Desktop/KMBIM3.0/KMBIM3.0_소스/Cmd/Stretch/Form_Stretch.cs

38 lines
876 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KMBIM.Revit.Tools.Cmd.Stretch
{
public partial class Form_Stretch : Form
{
public Form_Stretch()
{
InitializeComponent();
}
private void Form_Stretch_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
this.DialogResult = DialogResult.Cancel;
}
else if (e.KeyCode == Keys.Enter)
{
this.DialogResult = DialogResult.OK;
}
}
private void Form_Stretch_Load(object sender, EventArgs e)
{
this.KeyPreview = true;
}
}
}