Esempio n. 1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            //var container = TinyIoCContainer.Current;
            //container.Register<IPropertyMangager, PropertyMangager>().AsSingleton();
            SetUpIOC.SetupContainer();

            return(true);
        }
        /// <summary>
        /// OnCreate
        /// </summary>
        /// <param name="bundle"></param>
        protected async override void OnCreate(Bundle bundle)
        {
            SetUpIOC.SetupContainer();
            if (!CrossConnectivity.Current.IsConnected)
            {
                Mvx.RegisterSingleton(new PropertyRepository(new SQLiteInfoMonodroid()));
            }

            base.OnCreate(bundle);

            propertyManager = Mvx.GetSingleton <IPropertyMangager>();
            //propertyManager = new PropertyMangager();
            SetContentView(Resource.Layout.PropertyViewMain);

            propertylisttingsView = FindViewById <ListView>(Resource.Id.PropertylisttingsView);
            propertylisttingsView.SetItemChecked(0, true);
            propertylisttingsView.ItemClick += ListtingsView_ItemClick;
        }