Beispiel #1
0
        protected virtual void PageLoaded()
        {
            ActionInLoad();
            if (Appbar != null) return;

            Appbar = GetService<IApplicationBarService>();
            Appbar.AddButton(AppResources.Check, "/Assets/AppBar/check.png", SaveClick);
            Appbar.AddButton(AppResources.Cancel, "/Assets/AppBar/cancel.png", CancelClick);
        }
Beispiel #2
0
        private void PageLoaded()
        {
            if (_isWasAddTour)   // при добавлении новго турнира прокручиваем список в конец
            {
                _isWasAddTour = false;
                CheckYet();
                OnScrollIntoView();
            }

            if (_isVisibleAppBar)
            {
                if (_appbarService != null) return;

                _appbarService = GetService<IApplicationBarService>();
                _appbarService.AddButton(AppResources.Add, PathAddButton, add_Click);
            }
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(IApplicationBarService appBar)
     : base(appBar)
 {
     AddSettingsCommand = new RelayCommand(AddSettingsButton);
     AddPlusCommand = new RelayCommand(AddPlusButton);
 }
Beispiel #4
0
        /// <summary>
        /// Initializes a new instance of the LineDetailsViewModel class.
        /// </summary>
        public LineDetailsViewModel(IDataBaseService dbService, INavigationService navigationService, IApplicationBarService appBarServ)
        {
            if (ViewModelBase.IsInDesignModeStatic)
            {
                Line = new Line()
                {
                    LineId            = 1,
                    NumLigne          = "1",
                    LineType          = LineType.Tramway,
                    OneDirection      = "François Mitterand / Jamet",
                    OppositeDirection = "Beaujoire / Ranzay",
                    FontColor         = "FFFEFF",
                    BackColor         = "007944"
                };

                SelectedLastStop = new LastStop()
                {
                    Name = "François Mitterand / Jamet"
                };
            }

            _db = dbService;
            _navigationService = navigationService;

            this.StopSelectionChangedCommand = new RelayCommand <Stop>(e => SelectionChanged(e));
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(IApplicationBarService appBar)
     : base(appBar)
 {
     AddSettingsCommand = new RelayCommand(AddSettingsButton);
     AddPlusCommand     = new RelayCommand(AddPlusButton);
 }
Beispiel #6
0
 public MyModelBase(IApplicationBarService appBar)
 {
     ApplicationBar = appBar;
 }
Beispiel #7
0
 public MyModelBase(IApplicationBarService appBar)
 {
     ApplicationBar = appBar;
 }
        protected virtual void PageLoaded()
        {
            if (_appbarService != null) return;

            _appbarService = GetService<IApplicationBarService>();
            _appbarService.Hide();
            _appbarService.AddButton(AppResources.Add, AddButton, AddClick);
        }