private void showICSale() { try { if(ComSoft.frmMonitorEx.m_dtFarCmd==null) { MessageBox.Show("���ȴ�ʵʱ������!"); return; } XmlDocument xDoc=new XmlDocument(); xDoc.Load("icSys/icSys.xml"); xDoc.DocumentElement.SelectSingleNode("./sysForm").Attributes.GetNamedItem("val").Value="saleIC"; xDoc.Save("icSys/icSys.xml"); NFrmIC.frmIC frmICO=new NFrmIC.frmIC(); frmICO.m_strSalerName=BengZhan.CDBConnection.m_strUserName; frmICO.Show(); } catch(Exception ex) { MessageBox.Show(ex.ToString()); } }