//关闭当前工程 public void CloseProject() { if (editWinList.Count > 0) { //close form foreach (EditWin Node in editWinList) { drawToolWindow.m_editWin = Node; drawToolWindow.m_editWin.Close(); } editWinList.Clear(); //close hc foreach (HostControl h in hcList) { hc = h; hc.Dispose(); } hcList.Clear(); } MainFirstForm = ""; }