//konstruktor
        public Controller()
        {
            Time.CurrentWeek = Time.ActualWeekNumber();

            dal = new DataAccessLayer();
            fbEvents = new FacebookLogic(this);
            gCalc = new GeneralCalculations(this);
        }
        //konstruktor, intent används för at avgöra om personen vill logga in eller ut
        public LoginFrame(FacebookLogic fbEvents, string intent)
        {
            this.fbEvents = fbEvents;
            InitializeComponent();
            Uri link = null;
            if (intent == "login")
            {
                link = LoginUrl();
            }
            else if (intent == "logout")
            {
                link = GenerateLogoutUrl(fbEvents.Token);
                fbEvents.Token = "local";
                fbEvents.Name = "local";
            }

            browser.Navigate(link);
        }