Пример #1
0
        private void ComboBoxThemeList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var lSelectedItem = (sender as ComboBox).SelectedItem;

            CommonTheme.ThemeSelectedName = (lSelectedItem as ComboBoxItem).Content.ToString();
            CommonTheme.SetThemesProperties();
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            UIMenuSide.UIMenuSelected.Content = CalculatorMode.Standard.ToString();

            UIDisplayValueEvent += new UpdateUIDisplayHandler(ModifyUIDisplay);
            UICalculator.CalculusDisplayDelegate = UIDisplayValueEvent;

            var lXMLDataProvider = (XmlDataProvider)FindResource("ThemeList");
            var lXmlThemes       = lXMLDataProvider.Document;

            UIMenuSide.SetThemesList = GetListOfParametersFromXmlFile(lXmlThemes);

            CommonTheme.ThemeSelectedName = CommonTheme.CompleteListThemes.FirstOrDefault().ThemeSelected;
            UIMenuSide.SetMenuItems();
            CommonTheme.SetThemesProperties();
            SetThemes();
        }
Пример #3
0
 private void MenuTheme_Click(object sender, RoutedEventArgs e)
 {
     CommonTheme.ThemeSelectedName = (e.OriginalSource as MenuItem).Header.ToString();
     CommonTheme.SetThemesProperties();
 }