2020-03-31 11:00:09 +00:00
|
|
|
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;
|
2020-04-21 09:12:17 +00:00
|
|
|
using Flow.Launcher.Plugin.Caculator.ViewModels;
|
2020-03-31 11:00:09 +00:00
|
|
|
|
2020-04-21 09:12:17 +00:00
|
|
|
namespace Flow.Launcher.Plugin.Caculator.Views
|
2020-03-31 11:00:09 +00:00
|
|
|
{
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|