private void SaveBtn_Click(object sender, EventArgs e)
        {
            ConnectionManager connMgr = ConnectionManager.GetConnection(new SqliteConfig_Android());
            ContactRepository contactRepo = new ContactRepository(connMgr);
            CompanyRepository companyRepo = new CompanyRepository(connMgr);

            Contact c = new Contact();
            c.FirstName = FindViewById<EditText>(Resource.Id.firstNameEditText).Text;
            c.LastName = FindViewById<EditText>(Resource.Id.firstNameEditText).Text;
            c.JobTitle = FindViewById<EditText>(Resource.Id.titleEditText).Text;
            c.Phone = FindViewById<EditText>(Resource.Id.phoneEditText).Text;
            c.Email = FindViewById<EditText>(Resource.Id.emailEditText).Text;
            c.Notes = FindViewById<EditText>(Resource.Id.notesEditText).Text;
            c.Image = Resource.Drawable.CameraShy;

            Company co = new Company();
            co.Name = FindViewById<EditText>(Resource.Id.companyEditText).Text;
            co.Website = co.Name + ".com";
            companyRepo.SaveCompany(co);

            c.CompanyId = co.Id;
            contactRepo.SaveContact(c);

            Finish();
        }
        public static void CreateData()
        {
            contactRepo.DeleteAllContacts();
            companyRepo.DeleteAllCompanies();
            eventRepo.DeleteAllEvents();

            Contact contact1 = new Contact();
            contact1.FirstName = "Jane";
            contact1.LastName = "Smith";
            contact1.JobTitle = "Mobile App Developer";
            contact1.Phone = "701-555-1212";
            contact1.Image = Resource.Drawable.Dog1; //TODO: Need to allow picture to be uploaded in the app, but hard-coded for now
            contact1.Email = "*****@*****.**";
            contact1.Notes = "Does android and iOS development.";
            contactRepo.SaveContact(contact1);

            Company company1 = new Company();
            company1.Name = "Microsoft";
            company1.Website = "www.microsoft.com";
            companyRepo.SaveCompany(company1);

            Event event1 = new Event();
            event1.Date = new DateTime(2015, 6, 1);
            event1.Name = "Ignite Conference";
            event1.City = "Chicago";
            event1.State = "Illinois";
            eventRepo.SaveEvent(event1);

            contact1.CompanyId = company1.Id;
            contact1.EventId = event1.Id;
            contactRepo.SaveContact(contact1);

            Contact contact2 = new Contact();
            contact2.FirstName = "John";
            contact2.LastName = "Doe";
            contact2.JobTitle = "Web Developer";
            contact2.Phone = "218-281-5555";
            contact2.Image = Resource.Drawable.Dog2; //TODO: Need to allow picture to be uploaded in the app, but hard-coded for now
            contact2.Email = "*****@*****.**";
            contact2.Notes = "Loves ASP .Net.";
            contactRepo.SaveContact(contact2);

            Company company2 = new Company();
            company2.Name = "Great Plains";
            company2.Website = "www.greatplains.com";
            companyRepo.SaveCompany(company2);

            Event event2 = new Event();
            event2.Date = new DateTime(2015, 5, 2);
            event2.Name = "THAT Conference";
            event2.City = "Wisconsin Dells";
            event2.State = "Wisconsin";
            eventRepo.SaveEvent(event2);

            contact2.CompanyId = company2.Id;
            contact2.EventId = event2.Id;
            contactRepo.SaveContact(contact2);
        }