public MainWindow()
        {
            Application.Current.Resources.Add("taskrows", DataStructures.taskRows);

            InitializeComponent();

            //Sets initial GUI state
            HomeBorder.BorderBrush     = (SolidColorBrush) new BrushConverter().ConvertFrom("#FFFF4F5A");
            CalendarBorder.BorderBrush = (SolidColorBrush) new BrushConverter().ConvertFrom("#FF51545D");
            TaskListBorder.BorderBrush = (SolidColorBrush) new BrushConverter().ConvertFrom("#FF51545D");
            HomeGrid.Visibility        = Visibility.Visible;
            CalendarGrid.Visibility    = Visibility.Hidden;
            TaskListGrid.Visibility    = Visibility.Hidden;

            username = null;
            forename = null;
            surname  = null;

            DataHandling.GetUsers();


            System.Windows.Application.Current.Resources["BlurEffectRadius"] = (double)10;

            //Opens new Log In Window
            LogInWindow logIn = new LogInWindow();

            logIn.ShowDialog();

            foreach (String username in Properties.Settings.Default.UsernamesStringCollection)
            {
                Console.WriteLine(username);
            }

            foreach (String name in Properties.Settings.Default.UsersStringCollection)
            {
                Console.WriteLine(name);
            }

            mainWorkflowPlusAll = Properties.Settings.Default.MainWorkflow;
            mainWorkflowPlusAll.Add("All");

            refreshTimer.Interval = new TimeSpan(0, 0, 20);
            refreshTimer.Tick    += new EventHandler(RefreshTimerTick);
            refreshTimer.Start();

            InitialiseCalendar();
            LoadTasksIntoCalendar();
        }
        //Opens Log In Window
        private void LogInButtonClick(object sender, RoutedEventArgs e)
        {
            Window logIn = new LogInWindow();

            logIn.Show();
        }