Skip to content

Commit

Permalink
Version 1.0.0.2307
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Jul 3, 2023
1 parent 52a7e52 commit 4f55898
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 96 deletions.
6 changes: 0 additions & 6 deletions DayBar/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/
using DayBar.Classes;
using DayBar.Windows;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace DayBar;
Expand Down
8 changes: 2 additions & 6 deletions DayBar/Classes/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using PeyrSharp.Enums;
using PeyrSharp.Env;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace DayBar.Classes
{
public static class Global
{
public static class Global
{
public static string Version => "1.0.0.2307";
public static string LastVersionLink => "https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/DayBar/Version.txt";
public static HomePage HomePage { get; set; }
Expand Down
11 changes: 1 addition & 10 deletions DayBar/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using DayBar.Classes;
using PeyrSharp.Env;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace DayBar;
Expand Down Expand Up @@ -148,7 +139,7 @@ void BalloonClick(object o, RoutedEventArgs e)

Sys.ExecuteAsAdmin(Directory.GetCurrentDirectory() + @"\Xalyus Updater.exe"); // Start the updater
Application.Current.Shutdown(); // Close

}

myNotifyIcon.TrayBalloonTipClicked += BalloonClick;
Expand Down
12 changes: 0 additions & 12 deletions DayBar/Pages/AboutPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/
using DayBar.Classes;
using PeyrSharp.Env;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DayBar.Pages;
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions DayBar/Pages/FirstRun/CustomizePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ namespace DayBar.Pages.FirstRun
/// Interaction logic for CustomizePage.xaml
/// </summary>
public partial class CustomizePage : Page
{
{
private FirstRunWindow FirstRunWindow { get; init; }
public CustomizePage(FirstRunWindow firstRunWindow)
{
{
InitializeComponent();
FirstRunWindow = firstRunWindow; // Set the first run window instance

Expand Down
2 changes: 1 addition & 1 deletion DayBar/Pages/FirstRun/FeaturesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace DayBar.Pages.FirstRun
/// Interaction logic for FeaturesPage.xaml
/// </summary>
public partial class FeaturesPage : Page
{
{
private FirstRunWindow FirstRunWindow { get; init; }
public FeaturesPage(FirstRunWindow firstRunWindow)
{
Expand Down
10 changes: 5 additions & 5 deletions DayBar/Pages/FirstRun/JumpInPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ namespace DayBar.Pages.FirstRun
/// Interaction logic for JumpIn.xaml
/// </summary>
public partial class JumpInPage : Page
{
{
FirstRunWindow FirstRunWindow { get; init; }
public JumpInPage(FirstRunWindow firstRunWindow)
{
InitializeComponent();
{
InitializeComponent();
FirstRunWindow = firstRunWindow;
}
}

private void NextBtn_Click(object sender, RoutedEventArgs e)
{
Global.Settings.IsFirstRun = false;
SettingsManager.Save();
SettingsManager.Save();

Global.MainWindow.Show();
FirstRunWindow.Close();
Expand Down
23 changes: 5 additions & 18 deletions DayBar/Pages/FirstRun/WelcomePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using DayBar.Classes;
using DayBar.Enums;
using DayBar.Windows;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DayBar.Pages.FirstRun
{
/// <summary>
/// Interaction logic for WelcomePage.xaml
/// </summary>
public partial class WelcomePage : Page
{
/// <summary>
/// Interaction logic for WelcomePage.xaml
/// </summary>
public partial class WelcomePage : Page
{
private FirstRunWindow FirstRunWindow { get; init; }
public WelcomePage(FirstRunWindow firstRunWindow)
{
Expand Down
10 changes: 0 additions & 10 deletions DayBar/Pages/HomePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using DayBar.Enums;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DayBar.Pages;
/// <summary>
Expand Down
12 changes: 0 additions & 12 deletions DayBar/Pages/NotificationsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
using DayBar.Classes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DayBar.Pages;
/// <summary>
Expand Down
15 changes: 1 addition & 14 deletions DayBar/Windows/FirstRunWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

using DayBar.Classes;
using DayBar.Pages.FirstRun;
using DayBar.Pages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DayBar.Classes;

namespace DayBar.Windows
{
Expand Down

0 comments on commit 4f55898

Please sign in to comment.