Android.Mvvm.Tests.MainActivity.OnCreate C# (CSharp) Method

OnCreate() protected method

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
return void
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);
            var textView = FindViewById<TextView>(Resource.Id.lblTestProgress);

            try
            {
                TextWriter writer = new TextWriterTextView(textView);
                textView.SetTextColor(new TextUI(writer).Execute(new string[0]) ? Color.Green : Color.Red);
            }
            catch (Exception ex)
            {
                textView.SetTextColor(Color.Red);
                WriteProgressMessage(ex.ToString());
            }
        }