Example #1
0
        private async Task RoleSettingFlyout_IsOpenChanged(object sender, RoutedEventArgs e)
        {
            RoleSettingViewModel model = SoftContext.Locator.RoleSetting;

            if (IsOpen)
            {
                model.InitFromLocal();
                return;
            }
            model.SaveToLocal();
            SoftContext.Locator.Main.StatusBar = "配置信息保存成功";
        }
Example #2
0
 public RichangTask(TaskContext context) : base(context)
 {
     settingViewModel = LocalDataHandler.GetData <RoleSettingViewModel>("data.db", "roleSetting");
 }