private static void LoadMessagesData(decimal i_NumOFMsg)
{
string v_strWhere = null;
string v_FileName = null;
if(ApplicationDeployment.IsNetworkDeployed)
{
v_FileName = ApplicationDeployment.CurrentDeployment.DataDirectory + "\\XML_MESSAGE\\";
}
else
{
v_FileName = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + @"XML_MESSAGE\";
}
//MessageBox.Show("v_FileName: " + v_FileName);
v_strWhere = "(FromNum <= " + i_NumOFMsg + ") and (" + i_NumOFMsg + " < ToNum)";
DataView v_dvUserData = new DataView(m_dsUser.Users_DataSet, v_strWhere, "", DataViewRowState.CurrentRows);
//MessageBox.Show("Count: " + v_dvUserData.Count);
if(v_dvUserData.Count > 0)
{
v_FileName += Convert.ToString(v_dvUserData[0]["FileName"]);
m_DataSet.ReadXml(v_FileName);
//MessageBox.Show("v_FileName: " + v_FileName);
}
}