コード例 #1
0
 public GetDirectionsPopUp()
 {
     InitializeComponent();
     db = new RealmDataBase(true);
     autoComplete.DataSource     = db.GetVenues();
     autoComplete.SuggestionMode = Syncfusion.SfAutoComplete.XForms.SuggestionMode.Contains;
     model          = new MapsNewViewModel();
     vm             = new TKCustomMapViewModel();
     BindingContext = new TKCustomMapBindingsViewModel();
     main.Children.Add(model.GetCustomMap());
 }
コード例 #2
0
ファイル: MapPageCS.cs プロジェクト: Brianspha/RUTimetable
        public MapPageCS()
        {
            model         = new MapsNewViewModel();
            ChangeHandler = new SemesterChangeHandler();
            viewModel     = new FloatingActionButtonViewModel();
            viewModel.AddMapToAbsouluteLayOut(model.GetCustomMap());
            Content = viewModel.GetLayOut();
            Device.StartTimer(TimeSpan.FromSeconds(1), () =>
            {
                Device.BeginInvokeOnMainThread(() => RefreshUI());
                return(true);
            });

            ToolbarItems.Add(new ToolbarItem("Semester 1", null, new Action(() => Semester1()), ToolbarItemOrder.Secondary, 0));
            ToolbarItems.Add(new ToolbarItem("Semester 2", null, new Action(() => Semester2()), ToolbarItemOrder.Secondary, 0));
            ToolbarItems.Add(new ToolbarItem("Settings", null, new Action(() => Settings()), ToolbarItemOrder.Secondary, 0));
        }