protected void Unnamed_Click(object sender, EventArgs e)
        {
            Project lastProjectNum = new Project();
            int newProjectNumber = 0;
            foreach (string s in lastProjectNum.LastProjectNumber())
            {
                newProjectNumber = Convert.ToInt32(s) + 1;
            }

            DateTime date = Convert.ToDateTime(default_datetimepicker.Text);

            Project newProject = new Project(newProjectNumber,Convert.ToInt32(Application["ClientVehicleNum"]), 1, 2, date, date, txtContactNumber.Text, ProjectDDL.Text, "", 0, txtName.Text, txtSurname.Text, Convert.ToInt32(Application["ProjectRequest"]), true);

            Application.Contents.Remove("newProject");

            Application["newProject"] = newProject;
            //AddProjectProducts addProjectProducts = new AddProjectProducts(newProject);
            //addProjectProducts.Show();

            #region Google-Insert
            UserCredential credential;

            using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read))
            {
                string credPath = System.Environment.GetFolderPath(
                    System.Environment.SpecialFolder.Personal);
                credPath = Path.Combine(credPath, ".credentials");

                credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
                    GoogleClientSecrets.Load(stream).Secrets,
                    Scopes,
                    "user",
                    CancellationToken.None,
                    new FileDataStore(credPath, true)).Result;
            }
            var service = new CalendarService(new BaseClientService.Initializer()
            {
                HttpClientInitializer = credential,
                ApplicationName = ApplicationName,
            });

            Event newEvent = new Event()
            {
                Summary = txtName.Text + "'s " + txtModelNumber.Text,
                Location = "Lonehill Boulevard, Lonehill, Fourways, 2067 Johannesburg, Gauteng",
                Description = "A " + ProjectDDL.Text + "on "+ txtName.Text + " " + txtSurname.Text +" car.",
                Start = new EventDateTime()
                {
                    DateTime = date,
                    TimeZone = "Africa/Johannesburg"
                },
                End = new EventDateTime()
                {
                    DateTime = date.AddHours(2),
                    TimeZone = "Africa/Johannesburg"
                },
                Recurrence = new String[] { "RRULE:FREQ=DAILY;COUNT=1" }
                //Attendees = new EventAttendee[] {
                //    new EventAttendee() { Email = "*****@*****.**" },
                //    new EventAttendee() { Email = "*****@*****.**" },
                //},
                //Reminders = new Event.RemindersData()
                //{
                //    UseDefault = false,
                //    Overrides = new EventReminder[] {
                //    new EventReminder() { Method = "email", Minutes = 24 * 60 },
                //    new EventReminder() { Method = "sms", Minutes = 10 },
                //    }
                //}
            };
            //String calendarId = "primary";
            EventsResource.InsertRequest request = service.Events.Insert(newEvent, "*****@*****.**");
            Event createdEvent = request.Execute();
            #endregion
            Response.Redirect("./Project_Products");
        }