Exemplo n.º 1
0
        public override void OnCreate()
        {
            try
            {
                RegisterDependencyService();
                RegisterGlobalIoc();
                IocViewModel.RegisterViewModelSimpleIoc();
                IocView.RegisterViewSimpleIoc();
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine(exception);
            }

            base.OnCreate();
            this.RegisterActivityLifecycleCallbacks(this);
        }
Exemplo n.º 2
0
        // This is the main entry point of the application.
        static void Main(string[] args)
        {
            try
            {
                RegisterDependencyService();
                RegisterGlobalIoc();
                IocViewModel.RegisterViewModelSimpleIoc();
                IocView.RegisterViewSimpleIoc();
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine(exception);
            }

            // if you want to use a different Application Delegate class from "AppDelegate"
            // you can specify it here.
            UIApplication.Main(args, null, "AppDelegate");
        }