示例#1
0
 private void btnApply_Click(object sender, RoutedEventArgs e)
 {
     Properties.Settings.Default.Opacity = WindowClock.Opacity;
     Properties.Settings.Default.Save();
     ComboBoxStack.Visibility = Visibility.Hidden;
     WindowClock.BeginAnimation(HeightProperty, Anims.HtDecAnim);
     Updater(false);
 }
示例#2
0
 private void LocationChooser(object sender, MouseEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed && Keyboard.IsKeyDown(Key.LeftAlt))
     {
         ComboBoxStack.Visibility = Visibility.Visible;
         WindowClock.BeginAnimation(HeightProperty, Anims.HtIncAnim);
     }
 }
示例#3
0
        /// <summary>
        /// Main Program Start
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();


            Shell32.Shell  shell      = new Shell32.Shell();
            Shell32.Folder fontFolder = shell.NameSpace(0x14);
            fontFolder.CopyHere(@"Fonts/District Thin.ttf"); //Has no effect


            WindowClock.BeginAnimation(HeightProperty, Anims.StartAnimation);
            MouseDown += MainWindow_MouseDown;
            TimeUpdater();
            Updater(true);
        }
示例#4
0
 private void btnExit_Click(object sender, RoutedEventArgs e)
 {
     WindowClock.BeginAnimation(HeightProperty, Anims.ExitAnimation);
     this.Close();
 }