diff --git a/public/versions/changelog.txt b/public/versions/changelog.txt deleted file mode 100644 index 74f26a9..0000000 --- a/public/versions/changelog.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Version 0.9.0 - -- Initial BETA Release - -### This file is on Dropbox - https://www.dropbox.com/home/AstroKittySoundBoard?preview=changelog.txt diff --git a/public/versions/releaseNotes.html b/public/versions/releaseNotes.html new file mode 100644 index 0000000..e794225 --- /dev/null +++ b/public/versions/releaseNotes.html @@ -0,0 +1,36 @@ + + + + + + + +
+ +
+
+

v1

+
+
+
    +
  • Reworked Settings
  • +
  • Added Crash Reporting
  • +
  • Code Cleanup and Bug Fixes
  • +
+
+
+ +
+
+

v0.9.0-beta

+
+
+
    +
  • Initial Release
  • +
+
+
+
+ + + \ No newline at end of file diff --git a/public/versions/updaterInfo.xml b/public/versions/updaterInfo.xml index f5bb3ae..1537ae5 100644 --- a/public/versions/updaterInfo.xml +++ b/public/versions/updaterInfo.xml @@ -2,5 +2,5 @@ 0.9.0 https://github.com/FetzenRndy/AstroSoundboard/raw/master/public/versions/AstroKittySoundBoard.zip - https://github.com/FetzenRndy/AstroSoundboard/releases + \ No newline at end of file diff --git a/src/AstroSoundBoard/WPF/Windows/MainWindow.xaml.cs b/src/AstroSoundBoard/WPF/Windows/MainWindow.xaml.cs index 6111f04..2705ad1 100644 --- a/src/AstroSoundBoard/WPF/Windows/MainWindow.xaml.cs +++ b/src/AstroSoundBoard/WPF/Windows/MainWindow.xaml.cs @@ -1,8 +1,8 @@ // ****************************** Module Header ****************************** // // // -// Last Modified: 25:04:2017 / 18:53 -// Creation: 25:04:2017 +// Last Modified: 28:04:2017 / 22:58 +// Creation: 28:04:2017 // Project: AstroSoundBoard // // @@ -26,125 +26,125 @@ namespace AstroSoundBoard.WPF.Windows using log4net; public partial class MainWindow : Window - { - private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + { + private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); - public MainWindow() - { - AutoUpdater.CurrentCulture = CultureInfo.CreateSpecificCulture("en"); - AutoUpdater.Start("https://raw.githubusercontent.com/FetzenRndy/AstroSoundboard/master/public/versions/updaterInfo.xml"); + public MainWindow() + { + AutoUpdater.CurrentCulture = CultureInfo.CreateSpecificCulture("en"); + AutoUpdater.Start("http://127.0.0.1:8887/updaterInfo.xml"); - ViewChanger.MainWindowInstance = this; + ViewChanger.MainWindowInstance = this; - InitializeComponent(); + InitializeComponent(); - ViewChanger.ChangeViewTo(ViewChanger.Page.Board); + ViewChanger.ChangeViewTo(ViewChanger.Page.Board); - VolumeSlider_ValueChanged(new object(), new RoutedPropertyChangedEventArgs(0, 50)); - VolumeSlider.Value = 50; - } + VolumeSlider_ValueChanged(new object(), new RoutedPropertyChangedEventArgs(0, 50)); + VolumeSlider.Value = 50; + } - #region Helpers + #region Helpers - private bool CanSearchItemsExecute() - { - if (ViewChanger.MainWindowInstance.DataContext is BoardView) - { - SearchBox.IsEnabled = true; - FavoriteButton.IsEnabled = true; - return true; - } - else - { - SearchBox.IsEnabled = false; - FavoriteButton.IsEnabled = false; - return false; - } - } + private bool CanSearchItemsExecute() + { + if (ViewChanger.MainWindowInstance.DataContext is BoardView) + { + SearchBox.IsEnabled = true; + FavoriteButton.IsEnabled = true; + return true; + } + else + { + SearchBox.IsEnabled = false; + FavoriteButton.IsEnabled = false; + return false; + } + } - #endregion Helpers + #endregion Helpers - #region Search + #region Search - public void SearchForItem(object sender, TextChangedEventArgs e) - { - BoardView.BoadViewInstance?.SearchForElement(SearchBox.Text, onlyFavoritesActive); - } + public void SearchForItem(object sender, TextChangedEventArgs e) + { + BoardView.BoadViewInstance?.SearchForElement(SearchBox.Text, onlyFavoritesActive); + } - #endregion Search + #endregion Search - #region Favorites + #region Favorites - private bool onlyFavoritesActive; + private bool onlyFavoritesActive; - public void ToogleFavorites() - { - Log.Debug("Toggling Favorites!"); + public void ToogleFavorites() + { + Log.Debug("Toggling Favorites!"); - if (!CanSearchItemsExecute()) - { - return; - } + if (!CanSearchItemsExecute()) + { + return; + } - if (onlyFavoritesActive) - { - onlyFavoritesActive = false; - BoardView.BoadViewInstance?.OnlyShowFavorites(onlyFavoritesActive); - } - else - { - onlyFavoritesActive = true; - BoardView.BoadViewInstance?.OnlyShowFavorites(onlyFavoritesActive); - } - } + if (onlyFavoritesActive) + { + onlyFavoritesActive = false; + BoardView.BoadViewInstance?.OnlyShowFavorites(onlyFavoritesActive); + } + else + { + onlyFavoritesActive = true; + BoardView.BoadViewInstance?.OnlyShowFavorites(onlyFavoritesActive); + } + } - private void FavoriteButton_Click(object sender, RoutedEventArgs e) - { - ToogleFavorites(); - } + private void FavoriteButton_Click(object sender, RoutedEventArgs e) + { + ToogleFavorites(); + } - private void ContentControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) - { - CanSearchItemsExecute(); - } + private void ContentControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) + { + CanSearchItemsExecute(); + } - #endregion Favorites + #endregion Favorites - #region VolumeSlider + #region VolumeSlider - [DllImport("winmm.dll")] - private static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume); + [DllImport("winmm.dll")] + private static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume); - private void VolumeSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) - { - int newVolume = ushort.MaxValue / 100 * (int)e.NewValue; - uint newVolumeAllChannels = ((uint)newVolume & 0x0000ffff) | ((uint)newVolume << 16); + private void VolumeSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + { + int newVolume = ushort.MaxValue / 100 * (int)e.NewValue; + uint newVolumeAllChannels = ((uint)newVolume & 0x0000ffff) | ((uint)newVolume << 16); - waveOutSetVolume(IntPtr.Zero, newVolumeAllChannels); - } + waveOutSetVolume(IntPtr.Zero, newVolumeAllChannels); + } - #endregion VolumeSlider + #endregion VolumeSlider - #region UI Events + #region UI Events - private void ShowHome_Click(object sender, RoutedEventArgs e) => ViewChanger.ChangeViewTo(ViewChanger.Page.Board); + private void ShowHome_Click(object sender, RoutedEventArgs e) => ViewChanger.ChangeViewTo(ViewChanger.Page.Board); - private void ShowSettings_Click(object sender, RoutedEventArgs e) => ViewChanger.ChangeViewTo(ViewChanger.Page.Settings); + private void ShowSettings_Click(object sender, RoutedEventArgs e) => ViewChanger.ChangeViewTo(ViewChanger.Page.Settings); - private void BrowserFaceBook_Click(object sender, RoutedEventArgs e) => Process.Start("https://www.facebook.com/TheAstronautKitty"); + private void BrowserFaceBook_Click(object sender, RoutedEventArgs e) => Process.Start("https://www.facebook.com/TheAstronautKitty"); - private void BrowserTwitter_Click(object sender, RoutedEventArgs e) => Process.Start("https://twitter.com/AstroShitty"); + private void BrowserTwitter_Click(object sender, RoutedEventArgs e) => Process.Start("https://twitter.com/AstroShitty"); - private void BrowserYoutube_Click(object sender, RoutedEventArgs e) => Process.Start("https://www.youtube.com/user/TheAstronautKitty"); + private void BrowserYoutube_Click(object sender, RoutedEventArgs e) => Process.Start("https://www.youtube.com/user/TheAstronautKitty"); - private void BrowserRequestFeature_Click(object sender, RoutedEventArgs e) => Process.Start("https://docs.google.com/forms/d/e/1FAIpQLSc9JnTYAgQ2fbaSujj9-F3DsI6_BOXJGG7jsXNLD6Dqf11X9g/viewform?usp=sf_link"); + private void BrowserRequestFeature_Click(object sender, RoutedEventArgs e) => Process.Start("https://docs.google.com/forms/d/e/1FAIpQLSc9JnTYAgQ2fbaSujj9-F3DsI6_BOXJGG7jsXNLD6Dqf11X9g/viewform?usp=sf_link"); - private void BrowserRequestSound_Click(object sender, RoutedEventArgs e) => Process.Start("https://docs.google.com/forms/d/e/1FAIpQLSfVT7Jx-5n80LYFskIcjLsL3fb2RmI7XOXAS_2rtUFIuyYp8Q/viewform?usp=sf_link"); + private void BrowserRequestSound_Click(object sender, RoutedEventArgs e) => Process.Start("https://docs.google.com/forms/d/e/1FAIpQLSfVT7Jx-5n80LYFskIcjLsL3fb2RmI7XOXAS_2rtUFIuyYp8Q/viewform?usp=sf_link"); - private void BrowserReportIssue_Click(object sender, RoutedEventArgs e) => Process.Start("https://docs.google.com/forms/d/e/1FAIpQLSdrhFCCVeKrbA56kiLpOqA5H1nszwA4gWimV1V6YOjXr5mC-A/viewform?usp=sf_link"); + private void BrowserReportIssue_Click(object sender, RoutedEventArgs e) => Process.Start("https://docs.google.com/forms/d/e/1FAIpQLSdrhFCCVeKrbA56kiLpOqA5H1nszwA4gWimV1V6YOjXr5mC-A/viewform?usp=sf_link"); - private void BrowserGitHub_Click(object sender, RoutedEventArgs e) => Process.Start("https://github.com/FetzenRndy/AstroSoundboard"); + private void BrowserGitHub_Click(object sender, RoutedEventArgs e) => Process.Start("https://github.com/FetzenRndy/AstroSoundboard"); - #endregion UI Events - } + #endregion UI Events + } } \ No newline at end of file