public override void Start()
        {
            base.Start();

            DeviceInfo = _deviceInfoPlugin.GetDeviceInfo();
            Status     = _deviceInfoPlugin.NetworkStatus;
        }
コード例 #2
0
		public BaseViewModel(IFNewsService service, IMvxDeviceInfo deviceInfoPlugin)
		{
			Service = service;

			_deviceInfoPlugin = deviceInfoPlugin;
			DeviceInfo = _deviceInfoPlugin.GetDeviceInfo();
			Settings.DeviceInfo = DeviceInfo;
			Status = _deviceInfoPlugin.NetworkStatus;
		}
コード例 #3
0
        public BaseViewModel(IFNewsService service, IMvxDeviceInfo deviceInfoPlugin)
        {
            Service = service;

            _deviceInfoPlugin   = deviceInfoPlugin;
            DeviceInfo          = _deviceInfoPlugin.GetDeviceInfo();
            Settings.DeviceInfo = DeviceInfo;
            Status = _deviceInfoPlugin.NetworkStatus;
        }
コード例 #4
0
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var ignored = base.OnCreateView(inflater, container, savedInstanceState);
			this.EnsureBindingContextIsSet(savedInstanceState);
			View _view = this.BindingInflate(Resource.Layout.MenuView, null);

			_deviceInfoPlugin = Mvx.Resolve<IMvxDeviceInfo>();
			_deviceInfo = _deviceInfoPlugin.GetDeviceInfo ();

			View mv = _view.FindViewById (Resource.Id.menu_view_layout_main);
			TreeListView treeView = (TreeListView)_view.FindViewById (Resource.Id.menu_categories_listview);
			return _view;
		}
コード例 #5
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var ignored = base.OnCreateView(inflater, container, savedInstanceState);

            this.EnsureBindingContextIsSet(savedInstanceState);
            View _view = this.BindingInflate(Resource.Layout.MenuView, null);

            _deviceInfoPlugin = Mvx.Resolve <IMvxDeviceInfo>();
            _deviceInfo       = _deviceInfoPlugin.GetDeviceInfo();

            View         mv       = _view.FindViewById(Resource.Id.menu_view_layout_main);
            TreeListView treeView = (TreeListView)_view.FindViewById(Resource.Id.menu_categories_listview);

            return(_view);
        }