/// <summary>
 /// 构造函数
 /// </summary>
 public PageViewModel()
 {
     LocalSettings   = DataRWLocalFileRepository.ReadObjFromFile <SettingLocal>(AppSet.LocalSettingFileName);
     RedColorBrush   = new SolidColorBrush();
     GreenColorBrush = new SolidColorBrush();
     BlueColorBrush  = new SolidColorBrush();
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     //读取本地设置
     AppSet.LocalSetting = DataRWLocalFileRepository.ReadObjFromFile <SettingLocal>(AppSet.LocalSettingFileName);
     if (AppSet.LocalSetting == null)
     {
         AppSet.LocalSetting = new SettingLocal();
     }
     Text_UserId.Text = AppSet.LocalSetting.LoginUserId;
     DataContext      = AppSet.LocalSetting;
     Text_UserPwd.Focus();
 }