private void FrmKumikaeSetting_FormClosing(object sender, FormClosingEventArgs e)
{
cmbAccount.Focus();
dvFormula.EndEdit();
cm.EndCurrentEdit();
if (ds.HasChanges())
{
DialogResult result = MessageBox.Show("保存しますか?",
"[確認]", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information);
if (result == DialogResult.Yes)
saveDs();
if (result == DialogResult.Cancel)
e.Cancel = true;
}
}
posted on 2010-08-24 10:02
Ying-er 阅读(191)
评论(0) 编辑 收藏 所属分类:
.Net