Lecture04 - ITE 5230
Lecture04 - ITE 5230
1
Chapter 10
namespace Payment
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmCustomer());
}
}
}
DialogResult button =
MessageBox.Show(message, "Customer",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Warning);
if (button == DialogResult.Yes)
{
if (IsValidData())
this.SaveData();
else
e.Cancel = true;
}
if (button == DialogResult.Cancel)
{
e.Cancel = true;
}
}
}
DialogResult button =
MessageBox.Show(message, "Customer",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Warning);
this.Tag = msg;
this.DialogResult = DialogResult.OK;
}