using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
using System.Data.SqlClient;
|
using HotelPms.Share.Util;
|
using HotelPms.Share.Windows.Util;
|
|
namespace HotelPms.Share.Windows.Tool
|
{
|
public partial class ExitDialog : Form
|
{
|
|
/// ****************************** Description *******************************
|
/// VXe¼Ì
|
/// @zeÇVXe
|
/// Tv
|
/// @ÒWI¹æÊ
|
/// ð
|
/// @2008/03/28@¬Ø@´@@VKì¬
|
/// ****************************** Declarations ******************************
|
|
#region @Declartions@
|
|
private int activeIndex = 1;
|
|
#endregion
|
|
#region @Property@
|
#endregion
|
|
#region @Class Event@
|
|
public ExitDialog()
|
{
|
InitializeComponent();
|
}
|
|
private void ExitDialog_Load(object sender, EventArgs e)
|
{
|
}
|
|
#endregion
|
|
#region @Control Event@
|
|
private void btnCmd_Click(object sender, EventArgs e)
|
{
|
activeIndex = CConvert.ToInt((sender as Button).Name.Replace("btnCmd", string.Empty));
|
switch (activeIndex)
|
{
|
case 1:
|
//ßé
|
this.DialogResult = DialogResult.Cancel;
|
break;
|
case 2:
|
//Û¶
|
this.DialogResult = DialogResult.OK;
|
break;
|
case 3:
|
//jü
|
this.DialogResult = DialogResult.Abort;
|
break;
|
}
|
this.Close();
|
}
|
|
#endregion
|
|
#region @Private Function@
|
|
#endregion
|
|
#region @Public Function@
|
|
public static DialogResult ExecuteDialog()
|
{
|
DialogResult ret = DialogResult.Cancel;
|
ExitDialog form = new ExitDialog();
|
ret = form.ShowDialog();
|
form.Dispose();
|
return ret;
|
}
|
|
#endregion
|
|
|
}
|
}
|