Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            DrawXSettingsManager.InitLocalSettings();
        }
Exemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // relies on override to point its canvas at our OnPaintSample
            // see ViewDidLayoutSubviews for triggering EditCredentials
            DrawXSettingsManager.InitLocalSettings();

            if (DrawXSettingsManager.HasCredentials())
            {
                // assume we can login and be able to draw
                // TODO handle initial failure to login despite saved credentials
                SetupDrawer();
            }
        }