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); }
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); } }
/// <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); }
private void btnExit_Click(object sender, RoutedEventArgs e) { WindowClock.BeginAnimation(HeightProperty, Anims.ExitAnimation); this.Close(); }