注销修改

This commit is contained in:
leomon 2023-08-30 22:48:34 +08:00
parent 6985599614
commit ee9a20f4f9
2 changed files with 17 additions and 23 deletions

View File

@ -383,12 +383,10 @@ namespace AIMS
} }
private void btnOk_Click(object sender, EventArgs e) private void btnOk_Click(object sender, EventArgs e)
{
try
{ {
foreach (Form frm in Application.OpenForms) foreach (Form frm in Application.OpenForms)
{ {
if (frm.Name != "frmLogin" && frm.Name != this.Name) if (frm.Name != "FormLogin" && frm.Name != this.Name)
{ {
frm.Close(); frm.Close();
break; break;
@ -396,7 +394,7 @@ namespace AIMS
} }
foreach (Form frm in Application.OpenForms) foreach (Form frm in Application.OpenForms)
{ {
if (frm.Name == "frmLogin") if (frm.Name == "FormLogin")
{ {
frm.Show(); frm.Show();
isClose = true; isClose = true;
@ -405,10 +403,6 @@ namespace AIMS
} }
} }
} }
catch (Exception)
{
}
}
bool isClose = false; bool isClose = false;
private void FormMainManage_FormClosing(object sender, FormClosingEventArgs e) private void FormMainManage_FormClosing(object sender, FormClosingEventArgs e)
{ {

View File

@ -196,9 +196,9 @@ namespace DrawGraph
} }
} }
} }
catch (Exception) catch (Exception ex)
{ {
//PublicMethod.WriteLog(new Exception("回写数据出错:" + propertyName + " 值:" + value + " 错误:" + ex.Message)); PublicMethod.WriteLog(new Exception("回写数据出错:" + propertyName + " 值:" + value + " 错误:" + ex.Message));
} }
return i; return i;
} }