2024-04-27 11:50:55 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Diagnostics.Eventing.Reader;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reactive.Disposables;
|
|
|
|
|
using System.Reactive.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
using ReactiveUI;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using DynamicData;
|
|
|
|
|
using Microsoft.WindowsAPICodePack.Dialogs;
|
|
|
|
|
using Wabbajack.Common;
|
|
|
|
|
using Wabbajack.Paths;
|
|
|
|
|
using Wabbajack.Paths.IO;
|
|
|
|
|
using Wabbajack.ViewModels.Controls;
|
2024-04-28 20:21:22 +00:00
|
|
|
|
using ReactiveMarbles.ObservableEvents;
|
|
|
|
|
using System.Reactive;
|
2024-04-27 11:50:55 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2024-04-28 20:21:22 +00:00
|
|
|
|
/// Interaction logic for CreateModList.xaml
|
2024-04-27 11:50:55 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class CreateModListView : ReactiveUserControl<CreateModListVM>
|
|
|
|
|
{
|
|
|
|
|
public CreateModListView()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
this.WhenActivated(dispose =>
|
|
|
|
|
{
|
2024-04-28 20:21:22 +00:00
|
|
|
|
this.WhenAny(x => x.ViewModel.CreatedModlists)
|
2024-04-27 11:50:55 +00:00
|
|
|
|
.BindToStrict(this, x => x.CreatedModListsControl.ItemsSource)
|
|
|
|
|
.DisposeWith(dispose);
|
|
|
|
|
|
2024-05-05 09:40:21 +00:00
|
|
|
|
NewModListBorder
|
2024-04-28 20:21:22 +00:00
|
|
|
|
.Events().MouseDown
|
|
|
|
|
.Select(args => Unit.Default)
|
2024-05-05 09:40:21 +00:00
|
|
|
|
.InvokeCommand(this, x => x.ViewModel.NewModListCommand)
|
2024-04-28 20:21:22 +00:00
|
|
|
|
.DisposeWith(dispose);
|
2024-05-09 15:20:11 +00:00
|
|
|
|
|
|
|
|
|
LoadSettingsBorder
|
|
|
|
|
.Events().MouseDown
|
|
|
|
|
.Select(args => Unit.Default)
|
|
|
|
|
.InvokeCommand(this, x => x.ViewModel.LoadSettingsCommand)
|
|
|
|
|
.DisposeWith(dispose);
|
2024-04-28 20:21:22 +00:00
|
|
|
|
});
|
2024-04-27 11:50:55 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|