예제 #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.about);
            SetTitle(Resource.String.app_name);

            SetVersion();
            SetContributors();

            FindViewById(Resource.Id.suggest).Click += delegate
            {
                try
                {
                    Util.GotoUrl(Context, Resource.String.SuggestionsURL);
                }
                catch (ActivityNotFoundException)
                {
                    Toast.MakeText(Context, Resource.String.no_url_handler, ToastLength.Long).Show();
                }
            };
            FindViewById(Resource.Id.rate).Click += delegate
            {
                try
                {
                    Util.GotoMarket(Context);
                }
                catch (ActivityNotFoundException)
                {
                    Toast.MakeText(Context, Resource.String.no_url_handler, ToastLength.Long).Show();
                }
            };
            FindViewById(Resource.Id.translate).Click += delegate
            {
                try
                {
                    Util.GotoUrl(Context, Resource.String.TranslationURL);
                }
                catch (ActivityNotFoundException)
                {
                    Toast.MakeText(Context, Resource.String.no_url_handler, ToastLength.Long).Show();
                }
            }; FindViewById(Resource.Id.donate).Click += delegate
            {
                Util.GotoDonateUrl(Context);
            };
        }