pascalabcnet/VisualPascalABCNET/ReplaceConfirmDialog.cs

44 lines
1,008 B
C#
Raw Normal View History

2015-05-14 22:35:07 +03:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace VisualPascalABC
{
public partial class ReplaceConfirmDialog : Form
{
public enum ModalResult {Yes,No,All,Cancel}
public ModalResult Result;
public ReplaceConfirmDialog()
{
InitializeComponent();
}
private void btYes_Click(object sender, EventArgs e)
{
Result = ModalResult.Yes;
Close();
}
private void btNo_Click(object sender, EventArgs e)
{
Result = ModalResult.No;
Close();
}
private void btCancel_Click(object sender, EventArgs e)
{
Result = ModalResult.Cancel;
Close();
}
private void btAll_Click(object sender, EventArgs e)
{
Result = ModalResult.All;
Close();
}
}
}