private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxWindow mbw = new MessageBoxWindow();

            mbw.vm_MessageBoxWindow = new AMS.ViewModel.ViewModelMessageBoxWindow(AMS.Model.Enum.MessageBoxType.Ask, "是否要退出程序?");
            mbw.ShowDialog();
            if (mbw.vm_MessageBoxWindow.Result)
            {
                Application.Current.Shutdown();
            }
        }
 private void btnUsers_Click(object sender, RoutedEventArgs e)
 {
     if (AMS.ViewModel.ViewModelObject.User.LoginId.Equals("juneberry"))
     {
         uc_SchoolManageForm.Visibility   = System.Windows.Visibility.Collapsed;
         uc_MainForm.Visibility           = System.Windows.Visibility.Collapsed;
         uc_AdVideoManage.Visibility      = System.Windows.Visibility.Collapsed;
         uc_dataStatisticsForm.Visibility = System.Windows.Visibility.Collapsed;
         uc_SysManageForm.Visibility      = System.Windows.Visibility.Collapsed;
         uc_UserManageForm.Visibility     = System.Windows.Visibility.Visible;
         uc_UserManageForm.vm_UserList.GetDataList();
     }
     else
     {
         MessageBoxWindow mbw = new MessageBoxWindow();
         mbw.vm_MessageBoxWindow = new AMS.ViewModel.ViewModelMessageBoxWindow(AMS.Model.Enum.MessageBoxType.Informatsion,
                                                                               "此功能只能管理员操作,请用管理员身份登录!");
         mbw.ShowDialog();
     }
 }