using System.Windows;
using PersonalToolBox.ViewModels;

namespace PersonalToolBox.Views;

public partial class CategoryEditWindow : Window
{
    public CategoryEditWindow(CategoryEditViewModel viewModel)
    {
        InitializeComponent();

        viewModel.CloseAction = (result) => { DialogResult = result; };

        Owner = Application.Current.MainWindow;
        DataContext = viewModel;
    }
}
