Пример #1
0
 public MainPage()
 {
     this.InitializeComponent();
     SfPopupLayoutRenderer.Init();
     SfListViewRenderer.Init();
     LoadApplication(new ListViewXamarin.App());
 }
Пример #2
0
        /// <summary>
        /// Initializes the singleton application object. This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            UnhandledException += (x, y) => { AppHolder.App_UnhandledException(y.Message, y.Exception); };

            EnteredBackground += App_EnteredBackground;
            LeavingBackground += App_LeavingBackground;

            InitializeComponent();

            #region Init Libs
            assembliesToInclude.Add(typeof(dotMorten.Xamarin.Forms.AutoSuggestBox).GetTypeInfo().Assembly);
            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(LocalConstants.SyncFusion_LICENSEKEY);
            assembliesToInclude.Add(typeof(SfBusyIndicatorRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(SfListViewRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(SfBorderRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(SfButtonRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(SfPopupLayoutRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(SfNavigationDrawerRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(SfPopupLayoutRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(Rg.Plugins.Popup.Popup).GetTypeInfo().Assembly);
            SfListViewRenderer.Init();
            SfPopupLayoutRenderer.Init();

            ShadowRunHelperViewer.Platform.Xam.Init.Do();
            ShadowRunHelperViewer.Platform.UWP.Init.Do();

            Rg.Plugins.Popup.Popup.Init();
            #endregion Init Libs
        }
Пример #3
0
        public MainPage()
        {
            this.InitializeComponent();
            SfPopupLayoutRenderer.Init();

            LoadApplication(new CalorieCounter.App());
        }
Пример #4
0
 public MainPage()
 {
     this.InitializeComponent();
     SfListViewRenderer.Init();
     SfPopupLayoutRenderer.Init();
     LoadApplication(new SampleBrowser.SfDatePicker.App());
 }
Пример #5
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            XamEffects.iOS.Effects.Init();
            SfPopupLayoutRenderer.Init();
            SfButtonRenderer.Init();
            SfTextInputLayoutRenderer.Init();
            new SfBusyIndicatorRenderer();
            Syncfusion.SfDataGrid.XForms.iOS.SfDataGridRenderer.Init();
            ResourceHelper temp = new ResourceHelper();

            SfPopupLayoutRenderer.Init();
            SfListViewRenderer.Init();
            Rg.Plugins.Popup.Popup.Init();
            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
            SfListViewRenderer.Init();
            SfRadialMenuRenderer.Init();
            ImageCircleRenderer.Init();
            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
            Xamarin.FormsGoogleMaps.Init(Variables.mapsAPIKEY);
            SfPopupLayoutRenderer.Init();
            Syncfusion.XForms.iOS.Cards.SfCardViewRenderer.Init();
            new Syncfusion.SfNavigationDrawer.XForms.iOS.SfNavigationDrawerRenderer();
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     SfPopupLayoutRenderer.Init();
     return(base.FinishedLaunching(app, options));
 }
Пример #7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            FirebaseApp.InitializeApp(this);
            CrossCurrentActivity.Current.Init(Application);
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            if (Intent.Extras != null)
            {
                foreach (var key in Intent.Extras.KeySet())
                {
                    var value = Intent.Extras.GetString(key);
                    Console.WriteLine(TAG, "Key: {0} Value: {1}", key, value);
                }
            }
            /*Log.Debug(TAG, "google app id: " + GetString(Resource.String.google_app_id));*/
            IsPlayServicesAvailable();

            //CreateNotificationChannel();
            //Firebase.FirebaseApp.InitializeApp(this);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App());

            FirebasePushNotificationManager.ProcessIntent(this, Intent);
            //SMSBroadcastReceiver receiver = new SMSBroadcastReceiver();
            Intent intent = new Intent(this, typeof(SMSBroadcastReceiver));

            StartService(intent);
        }
Пример #8
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            FirebaseApp.InitializeApp(this);
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            FlurryAgent.Init(Application.Context, "YPZRG9C7CMKFN78RD2BW");
            FlurryAgent.OnStartSession(Application.Context);
            FlurryAgent.SetLogEnabled(true);
            FlurryAgent.SetLogEvents(true);

            base.OnCreate(savedInstanceState);
            if (Intent.Extras != null)
            {
                foreach (var key in Intent.Extras.KeySet())
                {
                    var value = Intent.Extras.GetString(key);
                    Console.WriteLine(TAG, "Key: {0} Value: {1}", key, value);
                }
            }
            /*Log.Debug(TAG, "google app id: " + GetString(Resource.String.google_app_id));*/
            IsPlayServicesAvailable();

            CreateNotificationChannel();
            Firebase.FirebaseApp.InitializeApp(this);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App());
        }
Пример #9
0
        public MainPage()
        {
            this.InitializeComponent();
            SfPopupLayoutRenderer.Init();

            LoadApplication(new Shop_Local.App(new UwpInitializer()));
        }
Пример #10
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MTU0ODY4QDMxMzcyZTMzMmUzMEU4QWhNRUEwN05VM2cwaTFzV1RSWk1oemxOYklnbTA4SHpsc3hHTFZiNW89");
            Google.MobileAds.MobileAds.Configure("ca-app-pub-9800707284712065~3426477994");
            global::Xamarin.Forms.Forms.Init();
            SfCardLayoutRenderer.Init();
            SfChartRenderer.Init();
            SfSwitchRenderer.Init();
            SfTextInputLayoutRenderer.Init();
            SfImageEditorRenderer.Init();
            SfKanbanRenderer.Init();
            SfDigitalGaugeRenderer.Init();
            SfNavigationDrawerRenderer.Init();
            SfPopupLayoutRenderer.Init();
            SfLinearProgressBarRenderer.Init();
            SfNumericUpDownRenderer.Init();
            SfExpanderRenderer.Init();
            SfRatingRenderer.Init();
            SfCheckBoxRenderer.Init();
            SfListViewRenderer.Init();
            SfBadgeViewRenderer.Init();
            SfBusyIndicatorRenderer.Init();
            SfComboBoxRenderer.Init();
            SfCalendarRenderer.Init();
            SfButtonRenderer.Init();
            SfCardViewRenderer.Init();
            SfBorderRenderer.Init();


            LoadApplication(new App(new iOSInitializer()));

            return(base.FinishedLaunching(app, options));
        }
Пример #11
0
 public MainPage()
 {
     this.InitializeComponent();
     SfPopupLayoutRenderer.Init();
     Syncfusion.SfDataGrid.XForms.UWP.SfDataGridRenderer.Init();
     Syncfusion.ListView.XForms.UWP.SfListViewRenderer.Init();
     LoadApplication(new SampleBrowser.SfPopupLayout.App());
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the MainPage class.
 /// </summary>
 public MainPage()
 {
     this.InitializeComponent();
     SfPopupLayoutRenderer.Init();
     SfDataGridRenderer.Init();
     SfListViewRenderer.Init();
     this.LoadApplication(new SfPopupLayout.App());
 }
Пример #13
0
 protected override void OnCreate(Bundle bundle)
 {
     ToolbarResource = Resource.Layout.Toolbar;
     base.OnCreate(bundle);
     global::Xamarin.Forms.Forms.Init(this, bundle);
     SfPopupLayoutRenderer.Init();
     SampleBrowser.Core.Droid.CoreSampleBrowser.Init(Resources, this);
     LoadApplication(new App());
 }
Пример #14
0
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     SfAccordionRenderer.Init();
     SfBusyIndicatorRenderer.Init();
     SfPopupLayoutRenderer.Init();
     LoadApplication(new App(new iOSInitializer()));
     return(base.FinishedLaunching(app, options));
 }
Пример #15
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App());
        }
Пример #16
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App(new AndroidInitializer()));
        }
Пример #17
0
        /// <summary>
        /// Called when the activity is starting
        /// </summary>
        /// <param name="bundle">Bundle type parameter named as bundle</param>
        protected override void OnCreate(Bundle bundle)
        {
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabbar;
            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Forms.Init(this, bundle);
            SfPopupLayoutRenderer.Init();
            this.LoadApplication(new App());
        }
Пример #18
0
        /// <summary>
        /// This method is invoked when the application has loaded and is ready to run. In this  method you should instantiate the window, load the UI into it and then make the window visible. You have 17 seconds to return from this method, or iOS will terminate your application.
        /// </summary>
        /// <param name="app">Encapsulates the main processing loop for a mono Touch application type parameter app</param>
        /// <param name="options">Dictionary that provides mapping from keys to values parameter options</param>
        /// <returns>returns base.FinishedLaunching</returns>
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height);
            SfPopupLayoutRenderer.Init();
            SfDataGridRenderer.Init();
            SfListViewRenderer.Init();
            this.LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Пример #19
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            SampleBrowser.Core.iOS.CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height);
            SfPopupLayoutRenderer.Init();
            Syncfusion.SfDataGrid.XForms.iOS.SfDataGridRenderer.Init();
            Syncfusion.ListView.XForms.iOS.SfListViewRenderer.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Пример #20
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.SetFlags("Brush_Experimental");
            Forms.Init();
            SfChartRenderer.Init();
            SfDataGridRenderer.Init();
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App(UIScreen.MainScreen.TraitCollection.GetColorTheme()));

            return(base.FinishedLaunching(app, options));
        }
Пример #21
0
        public MainPage()
        {
            this.InitializeComponent();

            SfPopupLayoutRenderer.Init();

            SfListViewRenderer.Init();

            SfDataGridRenderer.Init();

            LoadApplication(new SyncfusionXamarinApp1.App());
        }
Пример #22
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     TabLayoutResource = Resource.Layout.Tabbar;
     ToolbarResource   = Resource.Layout.Toolbar;
     Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MjUyMTIzQDMxMzgyZTMxMmUzMGtUTWlKbVhxbllJam01RTdKTUxUc0ZLNDRaQ1JWbm1vR21pbC9oTlpQYkU9");
     base.OnCreate(savedInstanceState);
     Xamarin.FormsMaps.Init(this, savedInstanceState);
     Xamarin.Essentials.Platform.Init(this, savedInstanceState);
     global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
     SfPopupLayoutRenderer.Init();
     LoadApplication(new App());
 }
Пример #23
0
        public MainPage()
        {
            this.InitializeComponent();

            SfPopupLayoutRenderer.Init();

            SfPullToRefreshRenderer.Init();

            SfDataGridRenderer.Init();

            LoadApplication(new ResilITApp.App());
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App());
            ImageHelper.context = this;
        }
Пример #25
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            SfLinearProgressBarRenderer.Init();
            SfCardViewRenderer.Init();
            SfPopupLayoutRenderer.Init();
            SfButtonRenderer.Init();
            SfChartRenderer.Init();
            SfListViewRenderer.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            Instance = this;
            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            SfPopupLayoutRenderer.Init();
            LoadApplication(new App());
            Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);
        }
Пример #27
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     MobileAds.SharedInstance.Start(null);
     SfBusyIndicatorRenderer.Init();
     SfPopupLayoutRenderer.Init();
     SfComboBoxRenderer.Init();
     SfDataFormRenderer.Init();
     SfButtonRenderer.Init();
     SfListViewRenderer.Init();
     RegisterForRemoteNotifications();
     LoadApplication(new App());
     return(base.FinishedLaunching(app, options));
 }
Пример #28
0
        public MainPage()
        {
            this.InitializeComponent();

            SfPopupLayoutRenderer.Init();

            SfListViewRenderer.Init();

            SfPullToRefreshRenderer.Init();

            SfDataGridRenderer.Init();

            //LoadApplication(new Monowallet.FormsApp());
        }
Пример #29
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.SetTheme(Resource.Style.MainTheme);

            base.OnCreate(savedInstanceState);

            xe.Platform.Init(this, savedInstanceState);
            Forms.SetFlags("Brush_Experimental");
            Forms.Init(this, savedInstanceState);
            SfPopupLayoutRenderer.Init();
            var app = new App(GetAppTheme());

            LoadApplication(app);
        }
Пример #30
0
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            SfEffectsViewRenderer.Init();
            this.LoadApplication(new App());
            SfButtonRenderer.Init();
            SfCheckBoxRenderer.Init();
            SfDatePickerRenderer.Init();
            SfBorderRenderer.Init();
            SfGradientViewRenderer.Init();
            SfListViewRenderer.Init();
            SfRatingRenderer.Init();
            SfRotatorRenderer.Init();
            SfComboBoxRenderer.Init();
            SfRadioButtonRenderer.Init();
            SfPopupLayoutRenderer.Init();
            SfExpanderRenderer.Init();
            SfCardViewRenderer.Init();
            SfBadgeViewRenderer.Init();
            SfSegmentedControlRenderer.Init();
            Core.Init();
            SfMapsRenderer.Init();
            SfTabViewRenderer.Init();
            SfCalendarRenderer.Init();
            SfLinearProgressBarRenderer.Init();
            SfChartRenderer.Init();
            SfGaugeRenderer.Init();

            ////UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView;
            ////if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:")))
            ////{
            ////    statusBar.BackgroundColor = Color.FromHex("#e83f94").ToUIColor();
            ////    statusBar.TintColor = UIColor.White;
            ////}

            var result = base.FinishedLaunching(app, options);

            var safeAreInset = UIApplication.SharedApplication.KeyWindow.SafeAreaInsets;

            if (safeAreInset.Top > 0)
            {
                AppSettings.Instance.IsSafeAreaEnabled = true;
                AppSettings.Instance.SafeAreaHeight    = safeAreInset.Top;
            }

            return(result);
        }