Esempio n. 1
0
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            if (!firstLoad)
            {
                firstLoad = true;

                DataContext             = new XAMLStyles {
                };
                checkForChange.Interval = 1000;
                checkForChange.Elapsed += (se, ea) => { try { if (Styles.themeChanged)
                                                              {
                                                                  Dispatcher.Invoke(() => { DataContext = new XAMLStyles {
                                                                                            }; });
                                                              }
                                                        } catch { } };
                checkForChange.Start();

                IndexThisPC();
            }
        }
Esempio n. 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            WindowBorder.Visibility = Visibility.Visible;
            BlurWindow.EnableBlur(this);

            winAero.Interval = 10;
            winAero.Elapsed += checkForAeroFC;
            winAero.Start();

            DataContext             = new XAMLStyles {
            };
            checkForChange.Interval = 1000;
            checkForChange.Elapsed += (se, ea) => { try { if (Styles.themeChanged)
                                                          {
                                                              Dispatcher.Invoke(() => { DataContext = new XAMLStyles {
                                                                                        }; });
                                                          }
                                                    } catch { } };
            checkForChange.Start();

            CreateTab(null, null);
        }