private void FillDataAdress() { Dictionary <string, List <string> > oneData = new Dictionary <string, List <string> >(); oneData.Add("oneTitle", new List <string>() { "E-mail", "Número de \nteléfono", "Dirección" }); oneData.Add("oneInfo", new List <string>() { distributor.FiscalAddressInfo.Email, distributor.FiscalAddressInfo.PhoneNumber, distributor.FiscalAddressInfo.Address }); Dictionary <string, List <string> > twoData = new Dictionary <string, List <string> >(); twoData.Add("twoTitle", new List <string>() { "E-mail", "Número de \nteléfono", "Dirección" }); twoData.Add("twoInfo", new List <string>() { distributor.ComercialAddressInfo.Email, distributor.ComercialAddressInfo.PhoneNumber, distributor.ComercialAddressInfo.Address }); OneTableView.Source = new InfoDirSource(oneData, "OneInfoDirTableCell"); TwoTableView.Source = new InfoDirSource(twoData, "TwoInfoDirTableCell"); OneTableView.ReloadData(); TableOneHeight.Constant = OneTableView.ContentSize.Height + 60; TwoTableView.ReloadData(); TableTwoHeight.Constant = TwoTableView.ContentSize.Height + 60; }
private void FillDataInfoUser() { Dictionary <string, List <string> > oneData = new Dictionary <string, List <string> >(); oneData.Add("oneTitle", new List <string>() { "Nombres(s)", "Apellido(s)", "E-mail" }); oneData.Add("oneInfo", new List <string>() { distributor.FirstName, distributor.LastName, distributor.Email }); Dictionary <string, List <string> > twoData = new Dictionary <string, List <string> >(); twoData.Add("twoTitle", new List <string>() { "Empresa", "CID" }); twoData.Add("twoInfo", new List <string>() { distributor.CompanyName, distributor.Cid }); OneTableView.Source = new InfoDirSource(oneData, "OneInfoDirTableCell"); TwoTableView.Source = new InfoDirSource(twoData, "TwoInfoDirTableCell"); OneTableView.ReloadData(); TableOneHeight.Constant = OneTableView.ContentSize.Height; TwoTableView.ReloadData(); TableTwoHeight.Constant = TwoTableView.ContentSize.Height + 10; }
void ReleaseDesignerOutlets() { if (OneTableView != null) { OneTableView.Dispose(); OneTableView = null; } if (TableOneHeight != null) { TableOneHeight.Dispose(); TableOneHeight = null; } if (TableTwoHeight != null) { TableTwoHeight.Dispose(); TableTwoHeight = null; } if (TitleOne != null) { TitleOne.Dispose(); TitleOne = null; } if (TwoLabel != null) { TwoLabel.Dispose(); TwoLabel = null; } if (TwoTableView != null) { TwoTableView.Dispose(); TwoTableView = null; } }