/// <summary>
        /// 确定设置
        /// </summary>
        private void btnConfirm_Click(object sender, RoutedEventArgs e)
        {
            if (this.portraitPath != null)
            {
                // 备份原头像
                File.Copy(appPath + @"Resource\Portrait\2121.jpg",
                          appPath + $"Resource\\Portrait\\2121{DateTime.Now.ToString("yyyyMMddHHmmss")}.jpg", true);
                // 设置头像
                File.Copy(this.portraitPath, appPath + @"Resource\Portrait\2121.jpg", true);
            }

            if (this.backgroudImagePath != null)
            {
                // 备份原背景
                File.Copy(appPath + @"Resource\BackgroudImage\login.jpg",
                          appPath + $"Resource\\BackgroudImage\\login{DateTime.Now.ToString("yyyyMMddHHmmss")}.jpg", true);
                // 设置背景
                File.Copy(this.backgroudImagePath, appPath + @"Resource\BackgroudImage\login.jpg", true);
            }

            if (lblContent.Text != "点击设置登录时显示的文本内容" && !string.IsNullOrEmpty(lblContent.Text))
            {
                service.SetLabelContent(lblContent.Text);
            }

            if (this.IsFirstFlg)
            {
                // 打开登录界面
                Login win = new Login();
                win.Show();
            }

            this.Close();
        }