protected void HandleLoginSucess()
        {
            try
            {
                m_tssUserName.Text = string.Format("Name: {0}", SystemParam.CurrentUser.user_name);
                m_tssUserRole.Text = string.Format("Role: {0}", EnumHelper.Parse <Constants.UserRole>(SystemParam.CurrentUser.role).GetDescription());

                IsLoggedIn = true;

                //UserId = SystemParam.CurrentUser.id;
                //UserName = SystemParam.CurrentUser.user_name;
                //UserRole = SystemParam.CurrentUser.role;

                //init Data
                MainBusiness business = new MainBusiness();

                string errorMessage = business.InitData();
                if (string.IsNullOrEmpty(errorMessage) == false)
                {
                    MessageBox.Show(errorMessage, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }

                AutoSync.GetInstance().Start();
                AutoSendMail.GetInstance().Start();
            }
            catch (Exception exc)
            {
                AppLogger.logError(this.ToString(), exc);
            }
        }
        private void m_tsbSyncData_Click(object sender, EventArgs e)
        {
            MainBusiness business = new MainBusiness();

            string errorMessage = business.InitData();

            //string errorMessage = business.SyncCommonData();
            if (string.IsNullOrEmpty(errorMessage) == false)
            {
                MessageBox.Show(errorMessage, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }