private void btnSaveProject_Click(object sender, EventArgs e) { btnSaveProject.Focus(); ProjectGrid.EndUpdate(); if (EditList.Count == 0) { ToastMessage.Show(this, "没有可保存的内容。"); return; } SaveProjectInfo(EditList); EditList.Clear(); ToastMessage.Show(this, "已保存。"); }