예제 #1
0
        private void SumEvent(object sender, EventArgs eventArgs)
        {
            HideKeyboard(this);
            View view = (View)sender;

            try
            {
                _sum.Text = LoymaxKotlinIntence.KotlinMethodSum(
                    int.Parse(_a.Text),
                    int.Parse(_b.Text)
                    ).ToString();
                HideKeyboard(this);
            }
            catch (Exception ex)
            {
                Snackbar.Make(view, ex.Message, Snackbar.LengthLong).SetAction("Action", (View.IOnClickListener)null).Show();
            }
        }
예제 #2
0
        private void TextFromKotlinEvent(object sender, EventArgs eventArgs)
        {
            View view = (View)sender;

            HideKeyboard(this);
            string kotlinString = string.Empty;

            try
            {
                kotlinString = LoymaxKotlinIntence.KotlinMethod();
            }
            catch (Exception ex)
            {
                Snackbar.Make(view, ex.Message, Snackbar.LengthLong).SetAction("Action", (View.IOnClickListener)null).Show();
            }

            Snackbar.Make(view, kotlinString, Snackbar.LengthLong).SetAction("Action", (View.IOnClickListener)null).Show();
            HideKeyboard(this);
        }