2020-04-07 10:19:14 -07:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// 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.Utilities;
|
|
|
|
|
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
2020-03-27 16:58:53 +01:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Views
|
|
|
|
|
|
{
|
|
|
|
|
|
public sealed partial class ShortcutGuidePage : Page
|
|
|
|
|
|
{
|
2020-07-17 11:01:46 -07:00
|
|
|
|
private ShortcutGuideViewModel ViewModel { get; set; }
|
2020-03-27 16:58:53 +01:00
|
|
|
|
|
|
|
|
|
|
public ShortcutGuidePage()
|
|
|
|
|
|
{
|
2020-04-10 15:22:07 -07:00
|
|
|
|
InitializeComponent();
|
2020-09-23 13:20:32 -07:00
|
|
|
|
|
2020-11-02 18:33:43 +01:00
|
|
|
|
var settingsUtils = new SettingsUtils();
|
2021-05-20 15:07:34 +03:00
|
|
|
|
ViewModel = new ShortcutGuideViewModel(settingsUtils, SettingsRepository<GeneralSettings>.GetInstance(settingsUtils), SettingsRepository<ShortcutGuideSettings>.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage);
|
2020-07-17 11:01:46 -07:00
|
|
|
|
DataContext = ViewModel;
|
2020-03-27 16:58:53 +01:00
|
|
|
|
}
|
2021-02-09 14:11:51 +03:00
|
|
|
|
|
|
|
|
|
|
private void OpenColorsSettings_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
Helpers.StartProcessHelper.Start(Helpers.StartProcessHelper.ColorsSettings);
|
|
|
|
|
|
}
|
2020-03-27 16:58:53 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|