private void OnFormClosing(object sender, FormClosingEventArgs e)
{
if(m_bModified)
{
if(MessageService.AskYesNo(KPRes.SaveBeforeCloseQuestion))
OnFileSave(sender, EventArgs.Empty);
}
Debug.Assert(m_uBlockEvents == 0);
string strRect = UIUtil.GetWindowScreenRect(this);
if(strRect != m_strInitialFormRect)
Program.Config.UI.DataEditorRect = strRect;
m_ctxText.Detach();
GlobalWindowManager.RemoveWindow(this);
}