/// <summary> /// 刷新界面 /// </summary> /// <param name="intFlag">0 库存界面,1 关系界面,2 两个界面同时</param> void Refresh(int intFlag) { if (intFlag == 0) { dataGridView1.DataSource = m_serverStorageInfo.GetStoreRoom(); } else if (intFlag == 1) { dataGridView2.DataSource = m_serverStorageInfo.GetStoreRoomAndPerson(); } else { dataGridView1.DataSource = m_serverStorageInfo.GetStoreRoom(); dataGridView2.DataSource = m_serverStorageInfo.GetStoreRoomAndPerson(); } }