mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using Flow.Launcher.Plugin.Caculator.ViewModels;
|
|
|
|
namespace Flow.Launcher.Plugin.Caculator.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for CalculatorSettings.xaml
|
|
/// </summary>
|
|
public partial class CalculatorSettings : UserControl
|
|
{
|
|
private readonly SettingsViewModel _viewModel;
|
|
private readonly Settings _settings;
|
|
|
|
public CalculatorSettings(SettingsViewModel viewModel)
|
|
{
|
|
_viewModel = viewModel;
|
|
_settings = viewModel.Settings;
|
|
DataContext = viewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void CalculatorSettings_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
DecimalSeparatorComboBox.SelectedItem = _settings.DecimalSeparator;
|
|
MaxDecimalPlaces.SelectedItem = _settings.MaxDecimalPlaces;
|
|
}
|
|
}
|
|
|
|
|
|
}
|