Пример #1
0
        public void actionGo(View v)          //(object sender, EventArgs e)
        {
            TextView txtInput  = FindViewById <TextView>(Resource.Id.txtInput);
            TextView txtOutput = FindViewById <TextView>(Resource.Id.txtOutput);

            txtInput.ClearFocus();
            txtOutput.Text = (CSharpTransform.transform(txtInput.Text.ToString()));
            //TEST:
            for (var j = 0; j < 100; j++)
            {
                var start = DateTime.Now;
                for (var i = 0; i < 10000; i++)
                {
                    String output = CSharpTransform.transform("sirap");
                }
                var stop          = DateTime.Now;
                var executionTime = stop - start;
                Console.WriteLine(executionTime.TotalMilliseconds);
            }
        }
 partial void actionGo(MonoTouch.Foundation.NSObject sender)
 {
     txtInput.ResignFirstResponder();
     txtOutput.Text = CSharpTransform.transform(txtInput.Text);
 }