예제 #1
0
        public MeditocDirectoryView()
        {
            oModel = new MedicDirectoryModel(this);
#endif
            InitializeComponent();
            BindingContext = oModel;
            ((NavigationPage)Application.Current.MainPage).BarTextColor = Color.FromHex("#12B6CB");
            NavigationPage.SetBackButtonTitle(this, "");


            this.cpFeeds = DependencyService.Get <ICPFeeds>();

            relativePrincipal.Children.Add(
                txtEspecialidad,
                Constraint.RelativeToParent((parent) =>
            {
                return(parent.Width / 3.3);
            }));

            lstEspecialidades = new List <specialtyDTO>();

            lstEspecialidades = Task.Run(() => oModel.CargarDatos()).Result;

            iconSearch.Text = FontAwesomeIcons.Search;

            txtBuscarEspecialidad.Completed += txtEspecialidad_Enter;

            BindingContext = this;
        }
예제 #2
0
 public MeditocDirectoryView(Intent screenshareIntent)
 {
     ScreenshareIntent = screenshareIntent;
     oModel            = new MedicDirectoryModel(this, screenshareIntent);