示例#1
0
文件: Form1.cs 项目: Evgeshast/Task1
        private void okButton_Click(object sender, EventArgs e)
        {
            var         name        = this.textBox1.Text;
            StringClass stringClass = new StringClass();

            MessageBox.Show(stringClass.GetWelcomeString(name));
        }
示例#2
0
        private void Btn_Click(object sender, System.EventArgs e)
        {
            TextView    tw          = FindViewById <TextView>(Resource.Id.textView1);
            EditText    editText    = FindViewById <EditText>(Resource.Id.editText1);
            StringClass stringClass = new StringClass();

            tw.Text = stringClass.GetWelcomeString(editText.Text);
        }