Пример #1
0
 private void CpBackgroundClick(object sender, System.Windows.RoutedEventArgs e)
 {
     ((SlideMenu)((Decorator)Parent).Parent).FreezeSlideUp = true;
     var selector = new ColorPickerSelector { OldColor = settings.UiColor };
     selector.ColorSelected += SelectorBackColorSelected;
     selector.SelectedColorChanged+=SelectorBackColorChanged;
     var slider = new SlideMenu(Dock.Top, 300) { InnerControl = selector };
     slider.Closed += SelectorBackCancelled;
 }
Пример #2
0
 private void LocationClick(object sender, RoutedEventArgs e)
 {
     if (locationOpen)
     {
         locationOpen = false;
         return;
     }
     var locations = new LocationMenu();
     locationMenu = new SlideMenu(Dock.Top, locations.Width) { InnerControl = locations };
     locationOpen = true;
 }
Пример #3
0
        private void CpForeGroundClick(object sender, System.Windows.RoutedEventArgs e)
        {
            ((SlideMenu)((Decorator)Parent).Parent).FreezeSlideUp = true;
            var selector = new ColorPickerSelector {
                OldColor = settings.UiColorFore
            };

            selector.ColorSelected        += SelectorForeColorSelected;
            selector.SelectedColorChanged += SelectorForeColorChanged;
            var slider = new SlideMenu(Dock.Top, 300)
            {
                InnerControl = selector
            };

            slider.Closed += SelectorForeCancelled;
        }
Пример #4
0
 private void ShutdownClick(object sender, RoutedEventArgs e)
 {
     if (shutdownOpen)
     {
         shutdownOpen = false;
         return;
     }
     var shutdown = new ShutdownMenu();
     shutdownMenu = new SlideMenu(Dock.Top, shutdown.Width) { InnerControl = shutdown };
     shutdownOpen = true;
 }
Пример #5
0
 private void SettingsClick(object sender, RoutedEventArgs e)
 {
     if (settingsOpen)
     {
         settingsOpen = false;
         return;
     }
     var settingsControl = new SettingsControl();
     settingsMenu = new SlideMenu(Dock.Top, settingsControl.Width) { InnerControl = settingsControl };
     settingsOpen = true;
 }