private void button4_Click(object sender, RoutedEventArgs e)
 {
     IsSuccess = ViewModelSchoolEdit.Submit();
     if (IsSuccess)
     {
         MessageBoxWindow mbw = new MessageBoxWindow();
         mbw.vm_MessageBoxWindow = new AMS.ViewModel.ViewModelMessageBoxWindow(AMS.Model.Enum.MessageBoxType.Success, "操作成功!");
         mbw.ShowDialog();
         this.Close();
     }
 }
        public void DeleteSchoolInfo()
        {
            MessageBoxWindow mbw = new MessageBoxWindow();

            mbw.vm_MessageBoxWindow = new AMS.ViewModel.ViewModelMessageBoxWindow(AMS.Model.Enum.MessageBoxType.Warning, "该操作会删除该学校下的校区信息以及设备信息,您确定要删除该学校吗?");
            mbw.ShowDialog();
            if (mbw.vm_MessageBoxWindow.Result)
            {
                if (ViewModelSchoolEdit.Submit())
                {
                    mbw = new MessageBoxWindow();
                    mbw.vm_MessageBoxWindow = new AMS.ViewModel.ViewModelMessageBoxWindow(AMS.Model.Enum.MessageBoxType.Success, "删除成功");
                    mbw.ShowDialog();
                }
            }
        }