1.异步优化,现在起创建工作区,导出聊天记录,都是独立线程操作了!体验更好!并且多了相关状态提示,体验更好。 2.新增批量导出模式,左侧工作区,右键->管理就见啦! 3.修复视频、图片导出时逻辑bug
55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Data;
|
|
using WechatBakTool.Model;
|
|
using WechatBakTool.Pages;
|
|
|
|
namespace WechatBakTool.ViewModel
|
|
{
|
|
public partial class CreateWorkViewModel : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
private List<ProcessInfo> processInfos = new List<ProcessInfo>();
|
|
|
|
[ObservableProperty]
|
|
private ProcessInfo? selectProcess;
|
|
|
|
[ObservableProperty]
|
|
private string userName = "";
|
|
|
|
[ObservableProperty]
|
|
private int keyType = -1;
|
|
|
|
[ObservableProperty]
|
|
private bool isEnable = true;
|
|
|
|
private string labelStatus = "-";
|
|
public string LabelStatus
|
|
{
|
|
get { return "状态:" + labelStatus; }
|
|
set
|
|
{
|
|
labelStatus = value;
|
|
OnPropertyChanged("LabelStatus");
|
|
}
|
|
}
|
|
}
|
|
|
|
public class GetKeyConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
return (int.Parse(parameter.ToString()!) == (int)value);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
|
|
{
|
|
return (bool)value ? parameter : Binding.DoNothing;
|
|
}
|
|
}
|
|
}
|