public FunctionConfigControl()
 {
     InitializeComponent();
     Messenger.Default.Register <string>(this, (s) => {
         //保存配置
         RemoveNullCustemGroup();
         if (FunctionConfigViewModel.CustomModuleViews.Count(n => n.Show == Visibility.Visible) > 0)
         {
             Messenger.Default.Send(FunctionConfigViewModel.CustomModuleViews);
         }
         else
         {
             Messenger.Default.Send(FunctionConfigViewModel.SysModuleViews);
         }
         SmartSystemLEConsts.CustemModules = FunctionConfigViewModel.CustomModuleViews.CloneJson();
         SmartSystemLEConsts.SystemModules = FunctionConfigViewModel.SysModuleViews.CloneJson();
     });
     this.DataContext = FunctionConfigViewModel = new FunctionConfigViewModel();
 }