2021-06-23 15:48:54 +03:00
|
|
|
// Copyright (c) Microsoft Corporation
|
2020-04-07 10:19:14 -07:00
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
2020-10-22 09:45:48 -07:00
|
|
|
using Microsoft.PowerToys.Settings.UI.Library;
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
2022-04-19 22:00:28 +02:00
|
|
|
using Microsoft.UI.Xaml.Controls;
|
2020-03-31 14:32:22 +02:00
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
{
|
|
|
|
|
public sealed partial class FancyZonesPage : Page
|
|
|
|
|
{
|
2020-07-17 11:01:46 -07:00
|
|
|
private FancyZonesViewModel ViewModel { get; set; }
|
2020-03-31 14:32:22 +02:00
|
|
|
|
|
|
|
|
public FancyZonesPage()
|
|
|
|
|
{
|
2020-08-19 15:59:10 -07:00
|
|
|
InitializeComponent();
|
2020-11-02 18:33:43 +01:00
|
|
|
var settingsUtils = new SettingsUtils();
|
2021-06-23 15:48:54 +03:00
|
|
|
ViewModel = new FancyZonesViewModel(settingsUtils, SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), SettingsRepository<FancyZonesSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-08-18 14:46:32 -07:00
|
|
|
DataContext = ViewModel;
|
2020-03-31 14:32:22 +02:00
|
|
|
}
|
2021-11-04 15:30:06 +01:00
|
|
|
|
2022-04-19 22:00:28 +02:00
|
|
|
private void OpenColorsSettings_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
|
2021-11-04 15:30:06 +01:00
|
|
|
{
|
|
|
|
|
Helpers.StartProcessHelper.Start(Helpers.StartProcessHelper.ColorsSettings);
|
|
|
|
|
}
|
2020-03-31 14:32:22 +02:00
|
|
|
}
|
|
|
|
|
}
|