static StartingDataHelper()
 {
     var connMgr = ConnectionManager.GetConnection(new SqliteConfig_Android());
     companyRepo = new CompanyRepository(connMgr);
     contactRepo = new ContactRepository(connMgr);
     eventRepo = new EventRepository(connMgr);
 }
        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();
        }