BKI_DichVuMatDat.CHRM_BaseMessages.InitClass C# (CSharp) Method

InitClass() private static method

private static InitClass ( string i_UserFileName ) : void
i_UserFileName string
return void
        private static void InitClass(string i_UserFileName)
        {
            try
            {
                string v_UserFileName;
                if(ApplicationDeployment.IsNetworkDeployed)
                {
                    v_UserFileName = ApplicationDeployment.CurrentDeployment.DataDirectory + "\\" + i_UserFileName;
                }
                else
                {
                    v_UserFileName = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + i_UserFileName;
                }
                //MessageBox.Show("b1:" + v_UserFileName);
                m_dsUser.ReadXml(v_UserFileName);
                //XtraMessageBox.Show("Số lượng " + m_dsUser.Users_DataSet.Count);
                m_IntialedClass = true;
            }
            catch(Exception v_Ex)
            {
                throw new Exception("Could not read file. Error message: " + v_Ex.Message);
            }
            finally
            {
            }
        }