Commit 919d8c05 authored by shubham's avatar shubham

Added automation procedure

parent 0bda7b65
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="NodaTime" publicKeyToken="4226afe0d9b296d1" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.4.6.0" newVersion="2.4.6.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
......@@ -26,16 +26,24 @@
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="300"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Margin="0,50" TextWrapping="Wrap" Text="Personal Insight - Dashboard" FontSize="48" TextAlignment="Center" HorizontalAlignment="Center" Foreground="#DDFFFFFF" FontFamily="Microsoft YaHei UI Light" VerticalAlignment="Top"/>
<Grid Grid.Row="1" Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Margin="50,0,0,0" TextWrapping="Wrap" Text="Overview" FontSize="30" TextAlignment="Center" HorizontalAlignment="Left" Foreground="#DDFFFFFF" FontFamily="Microsoft YaHei UI Light" VerticalAlignment="Top"/>
</Grid>
<Grid Grid.Row="2">
<ListView x:Name="listBox" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="25" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#00FAFAFA">
<ListView.ItemTemplate>
......@@ -62,11 +70,5 @@
</ListView.ItemsPanel>
</ListView>
</Grid>
<TextBlock Margin="0,50" TextWrapping="Wrap" Text="Personal Insight - Dashboard" FontSize="48" TextAlignment="Center" HorizontalAlignment="Center" Foreground="#DDFFFFFF" FontFamily="Microsoft YaHei UI Light" VerticalAlignment="Top"/>
<Separator Grid.Row="1" Height="2" Background="#7FA0A0A0"/>
</Grid>
</Page>
namespace Personal_Insight
{
internal interface IInvokeProvider
{
}
}
\ No newline at end of file
<Page x:Class="Personal_Insight.IntroPage_1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Personal_Insight"
mc:Ignorable="d"
d:DesignHeight="1080" d:DesignWidth="1920"
Title="Personal Insight"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Personal_Insight"
mc:Ignorable="d"
d:DesignHeight="1080" d:DesignWidth="1920"
Title="Personal Insight"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="{DynamicResource MaterialDesignFont}">
FontFamily="{DynamicResource MaterialDesignFont}"
Loaded="Window_ContentRendered">
<Page.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.75,0">
<GradientStop Color="{DynamicResource Color2}" Offset="0"/>
<GradientStop Color="{DynamicResource Color1}" Offset="1" FrameworkElement.FlowDirection="LeftToRight"/>
</LinearGradientBrush>
</Page.Background>
<Grid>
<Button Content="BEGIN" Height="67.002" Margin="0,0,0,-200" Width="263.912" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P1BtnClick_begin"/>
<Grid.RenderTransform>
<TranslateTransform x:Name="renderTransform"/>
</Grid.RenderTransform>
<Button x:Name="begin_btn" Content="BEGIN" Height="67.002" Margin="0,0,0,-200" Width="263.912" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P1BtnClick_begin"/>
<TextBlock Height="91.616" Margin="0,0,0,350" TextWrapping="Wrap" Text="Personal Insight" Width="847.052" FontSize="72" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#DDFFFFFF" FontFamily="Microsoft YaHei UI Light"/>
<TextBlock HorizontalAlignment="Center" Height="56.397" Margin="0,0,0,150" TextWrapping="Wrap" Text="This is a tool which provides personal and detailed analytic information of what data Google acquires on a user, like yourself." VerticalAlignment="Center" Width="710.56" Foreground="#DDC9C9C9" FontSize="20" TextAlignment="Center" FontFamily="Microsoft YaHei UI Light"/>
......
......@@ -5,6 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
......@@ -26,6 +27,12 @@ namespace Personal_Insight
ShowsNavigationUI = false;
}
private void Window_ContentRendered(object sender, EventArgs e)
{
begin_btn.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
}
private void P1BtnClick_begin(object sender, RoutedEventArgs e)
{
if (NavigationService.CanGoForward)
......
......@@ -13,7 +13,8 @@
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="{DynamicResource MaterialDesignFont}">
FontFamily="{DynamicResource MaterialDesignFont}"
Loaded="Window_ContentRendered">
<Page.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.75,0">
<GradientStop Color="{DynamicResource Color2}" Offset="0"/>
......@@ -43,7 +44,7 @@
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Content="BACK" Height="50" Margin="0" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P2BtnClick_back" Padding="0" Width="200"/>
<Button Content="NEXT" Height="50" Margin="0" Width="200" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P2BtnClick_next" Grid.Column="1" Padding="0"/>
<Button x:Name="next_btn" Content="NEXT" Height="50" Margin="0" Width="200" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P2BtnClick_next" Grid.Column="1" Padding="0"/>
</Grid>
<WrapPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
......
......@@ -13,6 +13,7 @@ using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Diagnostics;
using System.Windows.Controls.Primitives;
namespace Personal_Insight
{
......@@ -27,6 +28,11 @@ namespace Personal_Insight
ShowsNavigationUI = false;
}
private void Window_ContentRendered(object sender, EventArgs e)
{
next_btn.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
}
private void onClickHyperLink(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start("https://takeout.google.com");
......
......@@ -12,7 +12,8 @@
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="{DynamicResource MaterialDesignFont}">
FontFamily="{DynamicResource MaterialDesignFont}"
Loaded="Window_ContentRendered">
<Page.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.75,0">
<GradientStop Color="{DynamicResource Color2}" Offset="0"/>
......@@ -44,7 +45,7 @@
<TextBlock TextWrapping="Wrap" FontFamily="Microsoft YaHei UI Light" FontSize="20" Foreground="#DDE2E2E2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0" TextAlignment="Center">
Choose the path to the <Italic>'.../Takeout'</Italic> folder
</TextBlock>
<Button Content="Select folder" Height="Auto" Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="50,15" Click="btnClick_openFile" Grid.Column="1"/>
<Button x:Name="open_folder_btn" Content="Select folder" Height="Auto" Margin="20,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="50,15" Click="btnClick_openFile" Grid.Column="1"/>
</Grid>
<ListView x:Name="listView" Margin="0,25,0,0" Background="#FF646464" Padding="50" Grid.Row="2" HorizontalAlignment="Center" SelectionMode="Single" IsTextSearchEnabled="False">
......@@ -72,7 +73,7 @@
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Content="BACK" Height="50" Margin="0" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P3BtnClick_back" Padding="0" Width="200"/>
<Button x:Name="btn_next" Content="NEXT" Height="50" Margin="0" Width="200" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P3BtnClick_next" Grid.Column="1" Padding="0"/>
<Button x:Name="next_btn" Content="NEXT" Height="50" Margin="0" Width="200" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P3BtnClick_next" Grid.Column="1" Padding="0"/>
</Grid>
</Grid>
</Page>
......@@ -16,6 +16,8 @@ using System.IO;
using Microsoft.WindowsAPICodePack.Dialogs;
using Personal_Insight.Models;
using Personal_Insight.Pages;
using System.Windows.Controls.Primitives;
using System.Windows.Forms;
namespace Personal_Insight
{
......@@ -37,8 +39,18 @@ namespace Personal_Insight
isPopulated = false;
}
private void Window_ContentRendered(object sender, EventArgs e)
{
open_folder_btn.RaiseEvent(new RoutedEventArgs(System.Windows.Controls.Primitives.ButtonBase.ClickEvent));
System.Threading.Thread.Sleep(1000);
SendKeys.SendWait("{ENTER}"); // How to press enter?
System.Threading.Thread.Sleep(1000);
next_btn.RaiseEvent(new RoutedEventArgs(System.Windows.Controls.Primitives.ButtonBase.ClickEvent));
}
private void P3BtnClick_next(object sender, RoutedEventArgs e)
{
if (isPopulated)
{
if (NavigationService.CanGoForward)
......@@ -50,11 +62,10 @@ namespace Personal_Insight
IntroPage_4 page4 = new IntroPage_4(googleProductList);
NavigationService.Navigate(page4);
}
}
else
{
MessageBox.Show("Please mount the Takeout folder before proceeding!", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning);
System.Windows.MessageBox.Show("Please mount the Takeout folder before proceeding!", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning);
}
}
......@@ -70,7 +81,6 @@ namespace Personal_Insight
IntroPage_2 page2 = new IntroPage_2();
NavigationService.Navigate(page2);
}
}
private void btnClick_openFile(object sender, RoutedEventArgs e)
......@@ -92,12 +102,12 @@ namespace Personal_Insight
}
else
{
MessageBox.Show("The selected folder is not a '/Takeout' folder", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning);
System.Windows.MessageBox.Show("The selected folder is not a '/Takeout' folder", "Warning!", MessageBoxButton.OK, MessageBoxImage.Warning);
}
}
else if( res == CommonFileDialogResult.None)
{
MessageBox.Show("Error opening dialog. Contact developer for a solution.", "Error: 0x01", MessageBoxButton.OK, MessageBoxImage.Error);
System.Windows.MessageBox.Show("Error opening dialog. Contact developer for a solution.", "Error: 0x01", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
......
......@@ -13,7 +13,8 @@
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="{DynamicResource MaterialDesignFont}">
FontFamily="{DynamicResource MaterialDesignFont}"
Loaded="Window_ContentRendered">
<Page.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.75,0">
<GradientStop Color="{DynamicResource Color2}" Offset="0"/>
......@@ -45,7 +46,7 @@
<TextBlock TextWrapping="Wrap" FontFamily="Microsoft YaHei UI Light" FontSize="20" Foreground="#DDE2E2E2" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,50" TextAlignment="Center" Grid.Row="1">
Whenever you are ready click the button begin the scan. Please be patient as it will take a while, feel free to grab a cup of coffee or watch a Friends episode.
</TextBlock>
<Button Content="Begin Takeout Scan" Height="Auto" Margin="0" Background="#FFD44B4B" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P4BtnClick_next" Grid.Column="1" Padding="25" Grid.Row="2"/>
<Button x:Name="next_btn" Content="Begin Takeout Scan" Height="Auto" Margin="0" Background="#FFD44B4B" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Click="P4BtnClick_next" Grid.Column="1" Padding="25" Grid.Row="2"/>
</StackPanel>
</Grid>
......
......@@ -6,6 +6,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
......@@ -35,6 +36,11 @@ namespace Personal_Insight.Pages
this.googleProductList = googleProductList;
}
private void Window_ContentRendered(object sender, EventArgs e)
{
next_btn.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
}
private void P4BtnClick_back(object sender, RoutedEventArgs e)
{
if (NavigationService.CanGoBack)
......@@ -46,7 +52,6 @@ namespace Personal_Insight.Pages
IntroPage_3 page3 = new IntroPage_3();
NavigationService.Navigate(page3);
}
}
private void P4BtnClick_next(object sender, RoutedEventArgs e)
......
......@@ -13,7 +13,8 @@
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="{DynamicResource MaterialDesignFont}">
FontFamily="{DynamicResource MaterialDesignFont}"
Loaded="Window_ContentRendered">
<Page.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.75,0">
......@@ -51,7 +52,7 @@
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button x:Name="btn_back" Content="BACK" Height="50" Margin="0" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Padding="0" Width="200" Click="BtnClick_back" IsEnabled="False"/>
<Button x:Name="btn_next" Content="NEXT" Height="50" Margin="0" Width="200" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Grid.Column="1" Padding="0" Click="BtnClick_next" IsEnabled="False"/>
<Button x:Name="next_btn" Content="NEXT" Height="50" Margin="0" Width="200" Background="#FF2D7874" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="22" FontFamily="Segoe UI" Grid.Column="1" Padding="0" Click="BtnClick_next" IsEnabled="False"/>
</Grid>
</Grid>
......
......@@ -10,6 +10,7 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
......@@ -34,7 +35,7 @@ namespace Personal_Insight.Pages
ConsoleLogText = "Starting takeout scan...\n\n";
btn_back.IsEnabled = false;
btn_next.IsEnabled = false;
next_btn.IsEnabled = false;
BackgroundWorker worker = new BackgroundWorker();
worker.WorkerReportsProgress = true;
......@@ -44,6 +45,11 @@ namespace Personal_Insight.Pages
worker.RunWorkerAsync();
}
private void Window_ContentRendered(object sender, EventArgs e)
{
}
private String _consoleLogText;
public String ConsoleLogText
......@@ -70,7 +76,6 @@ namespace Personal_Insight.Pages
IntroPage_4 page4 = new IntroPage_4();
NavigationService.Navigate(page4);
}
}
private void BtnClick_next(object sender, RoutedEventArgs e)
......@@ -78,20 +83,13 @@ namespace Personal_Insight.Pages
if (NavigationService.CanGoForward)
{
NavigationService.GoForward();
}
else
{
Dashboard page5 = new Dashboard(googleProductList);
NavigationService.Navigate(page5);
}
/*DashboardWindow dashboardWindow = new DashboardWindow();
dashboardWindow.Show();
Window parentWindow = Window.GetWindow(this);
parentWindow.Close();*/
}
private void worker_DoWork(object sender, DoWorkEventArgs e)
......@@ -137,7 +135,8 @@ namespace Personal_Insight.Pages
progressBar.Background = Brushes.Green;
enterLog("Scan complete. Click 'Next' to continue.\n");
btn_back.IsEnabled = true;
btn_next.IsEnabled = true;
next_btn.IsEnabled = true;
next_btn.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
}
}
......@@ -150,12 +149,12 @@ namespace Personal_Insight.Pages
{
if (log.Equals("\n"))
{
ConsoleLogText = ConsoleLogText + log + Environment.NewLine;
ConsoleLogText = log + Environment.NewLine + ConsoleLogText;
}
else
{
//ConsoleLogText = "[" + DateTime.Now.ToString("HH:mm:ss tt") + "] " + log + Environment.NewLine + ConsoleLogText;
ConsoleLogText = ConsoleLogText + "[" + DateTime.Now.ToString("HH:mm:ss tt") + "] " + log + Environment.NewLine;
ConsoleLogText = "[" + DateTime.Now.ToString("HH:mm:ss tt") + "] " + log + Environment.NewLine + ConsoleLogText;
//ConsoleLogText = ConsoleLogText + "[" + DateTime.Now.ToString("HH:mm:ss tt") + "] " + log + Environment.NewLine;
}
}
......
This diff is collapsed.
......@@ -8,13 +8,34 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Production|Any CPU = Production|Any CPU
Production|x64 = Production|x64
Production|x86 = Production|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Debug|x64.ActiveCfg = Debug|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Debug|x64.Build.0 = Debug|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Debug|x86.ActiveCfg = Debug|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Debug|x86.Build.0 = Debug|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Production|Any CPU.ActiveCfg = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Production|Any CPU.Build.0 = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Production|x64.ActiveCfg = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Production|x64.Build.0 = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Production|x86.ActiveCfg = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Production|x86.Build.0 = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Release|Any CPU.Build.0 = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Release|x64.ActiveCfg = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Release|x64.Build.0 = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Release|x86.ActiveCfg = Release|Any CPU
{289AAFBF-5C75-4E0D-BCA3-3C5764A7E0FC}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
......@@ -17,9 +17,19 @@
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
FontFamily="{DynamicResource MaterialDesignFont}" Background="#FF303030"
FontFamily="{DynamicResource MaterialDesignFont}"
>
<Frame Source="/Personal Insight;component/Pages/IntroPage_1.xaml" NavigationUIVisibility ="Hidden"/>
<Window.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.75,0">
<GradientStop Color="{DynamicResource Color2}" Offset="0"/>
<GradientStop Color="{DynamicResource Color1}" Offset="1" FrameworkElement.FlowDirection="LeftToRight"/>
</LinearGradientBrush>
</Window.Background>
<Frame Source="/Personal Insight;component/Pages/IntroPage_1.xaml" NavigationUIVisibility ="Hidden" Navigating="MainFrame_OnNavigating" Name = "MainFrame">
<Frame.RenderTransform>
<TranslateTransform x:Name="renderTransform"/>
</Frame.RenderTransform>
</Frame>
</Window>
......@@ -9,6 +9,7 @@ using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
......@@ -24,5 +25,33 @@ namespace Personal_Insight
{
InitializeComponent();
}
private void MainFrame_OnNavigating(object sender, NavigatingCancelEventArgs e)
{
try
{
/*var ta = new ThicknessAnimation();
ta.Duration = TimeSpan.FromSeconds(0.5);
ta.DecelerationRatio = 0.7;
ta.To = new Thickness(0, 0, 0, 0);
if (e.NavigationMode == NavigationMode.New || e.NavigationMode == NavigationMode.Forward)
{
ta.From = new Thickness(1000, 0, 0, 0);
}
else if (e.NavigationMode == NavigationMode.Back)
{
ta.From = new Thickness(0, 0, 1000, 0);
}*/
//(e.Content as Page).BeginAnimation(MarginProperty, ta);
}
catch (Exception _e)
{
Console.WriteLine(_e.Message);
}
}
}
}
......@@ -2,7 +2,7 @@
<packages>
<package id="ControlzEx" version="3.0.2.4" targetFramework="net472" />
<package id="CsvHelper" version="12.1.2" targetFramework="net472" />
<package id="DDay.iCal" version="1.0.2.575" targetFramework="net472" />
<package id="DDay.iCal" version="2.0.0" targetFramework="net472" />
<package id="Galactic.Calendar" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.Calendar.iCalendar" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.Configuration" version="1.3.0.499" targetFramework="net472" />
......@@ -12,21 +12,21 @@
<package id="Hali4831.MixERP.Net.VCards" version="1.0.1" targetFramework="net472" />
<package id="Ical.Net" version="4.1.11" targetFramework="net472" />
<package id="MahApps.Metro" version="1.6.5" targetFramework="net472" />
<package id="MaterialDesignColors" version="1.1.2" targetFramework="net472" />
<package id="MaterialDesignColors" version="1.1.3" targetFramework="net472" />
<package id="MaterialDesignThemes" version="2.5.1" targetFramework="net472" />
<package id="Microsoft.NETCore.Platforms" version="1.1.0" targetFramework="net472" />
<package id="Microsoft.NETCore.Platforms" version="2.2.1" targetFramework="net472" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net472" />
<package id="Microsoft.WindowsAPICodePack-Core" version="1.1.0.0" targetFramework="net472" />
<package id="Microsoft.WindowsAPICodePack-Core" version="1.1.0.2" targetFramework="net472" />
<package id="Microsoft.WindowsAPICodePack-Shell" version="1.1.0.0" targetFramework="net472" />
<package id="NETStandard.Library" version="1.6.1" targetFramework="net472" />
<package id="NETStandard.Library" version="2.0.3" targetFramework="net472" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net472" />
<package id="NodaTime" version="2.0.2" targetFramework="net472" />
<package id="NodaTime" version="2.4.6" targetFramework="net472" />
<package id="System.AppContext" version="4.3.0" targetFramework="net472" />
<package id="System.Collections" version="4.3.0" targetFramework="net472" />
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net472" />
<package id="System.Console" version="4.3.0" targetFramework="net472" />
<package id="System.Console" version="4.3.1" targetFramework="net472" />
<package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net472" />
<package id="System.Diagnostics.DiagnosticSource" version="4.3.0" targetFramework="net472" />
<package id="System.Diagnostics.DiagnosticSource" version="4.5.1" targetFramework="net472" />
<package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net472" />
<package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="net472" />
<package id="System.Globalization" version="4.3.0" targetFramework="net472" />
......@@ -38,33 +38,33 @@
<package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net472" />
<package id="System.Linq" version="4.3.0" targetFramework="net472" />
<package id="System.Linq.Expressions" version="4.3.0" targetFramework="net472" />
<package id="System.Net.Http" version="4.3.0" targetFramework="net472" />
<package id="System.Net.Primitives" version="4.3.0" targetFramework="net472" />
<package id="System.Net.Http" version="4.3.4" targetFramework="net472" />
<package id="System.Net.Primitives" version="4.3.1" targetFramework="net472" />
<package id="System.Net.Sockets" version="4.3.0" targetFramework="net472" />
<package id="System.ObjectModel" version="4.3.0" targetFramework="net472" />
<package id="System.Reflection" version="4.3.0" targetFramework="net472" />
<package id="System.Reflection.Extensions" version="4.3.0" targetFramework="net472" />
<package id="System.Reflection.Primitives" version="4.3.0" targetFramework="net472" />
<package id="System.Reflection.TypeExtensions" version="4.1.0" targetFramework="net472" />
<package id="System.Reflection.TypeExtensions" version="4.5.1" targetFramework="net472" />
<package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime.Extensions" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime" version="4.3.1" targetFramework="net472" />
<package id="System.Runtime.Extensions" version="4.3.1" targetFramework="net472" />
<package id="System.Runtime.Handles" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net472" />
<package id="System.Runtime.Serialization.Primitives" version="4.3.0" targetFramework="net472" />
<package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net472" />
<package id="System.Security.Cryptography.Algorithms" version="4.3.1" targetFramework="net472" />
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net472" />
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net472" />
<package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net472" />
<package id="System.Security.Cryptography.X509Certificates" version="4.3.2" targetFramework="net472" />
<package id="System.Text.Encoding" version="4.3.0" targetFramework="net472" />
<package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net472" />
<package id="System.Text.RegularExpressions" version="4.3.0" targetFramework="net472" />
<package id="System.Text.RegularExpressions" version="4.3.1" targetFramework="net472" />
<package id="System.Threading" version="4.3.0" targetFramework="net472" />
<package id="System.Threading.Tasks" version="4.3.0" targetFramework="net472" />
<package id="System.Threading.Timer" version="4.3.0" targetFramework="net472" />
<package id="System.ValueTuple" version="4.4.0" targetFramework="net472" />
<package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="net472" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
<package id="System.Xml.ReaderWriter" version="4.3.1" targetFramework="net472" />
<package id="System.Xml.XDocument" version="4.3.0" targetFramework="net472" />
</packages>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment