public override void Start() { base.Start(); DeviceInfo = _deviceInfoPlugin.GetDeviceInfo(); Status = _deviceInfoPlugin.NetworkStatus; }
public BaseViewModel(IFNewsService service, IMvxDeviceInfo deviceInfoPlugin) { Service = service; _deviceInfoPlugin = deviceInfoPlugin; DeviceInfo = _deviceInfoPlugin.GetDeviceInfo(); Settings.DeviceInfo = DeviceInfo; Status = _deviceInfoPlugin.NetworkStatus; }
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; }
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); }