• 十六周


    观众界面:

    namespace 观众界面
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {
    textBox1.Enabled = false;
    button1.Enabled = false;
    }

    private void textBox1_TextChanged(object sender, EventArgs e)
    {
    if (textBox1.Text == "")
    {
    button2.Enabled = false;
    }
    }

    private void label2_Click(object sender, EventArgs e)
    {

    textBox2.Text = "比赛结果为:" + textBox1.Text + ":" + textBox1.Text + "胜利" + textBox1.Text + "失败";

    }

    private void button3_Click(object sender, EventArgs e)
    {
    textBox1.Text = "";
    textBox2.Text = "";
    button2.Enabled = false;
    }

    private void textBox2_TextChanged(object sender, EventArgs e)
    {
    if (textBox1.Text != "")
    {
    button2.Enabled = true;
    }
    else
    {
    button2.Enabled = false;
    }
    }

    private void textBox2_TextChanged(object sender, EventArgs e)
    {

    }

    private void button3_Click(object sender, EventArgs e)
    {
    this.Close();
    index q = new index();
    q.Show();
    }
    }

    总结:代码掌握不行,知识欠缺很多。需多努力!

  • 相关阅读:
    Day 9 作业题(完成)
    Day 9 函数的初识1
    Day 8 集合与文件的操作
    Day 7 深copy和浅Copy
    Day6 ,周期末考试试题
    Day 6 编码的进阶
    Day5 作业(完成)
    Day 5 字典的操作
    Day4 作业
    Day 4 list 列表的使用方法
  • 原文地址:https://www.cnblogs.com/wllwll/p/6219928.html
Copyright © 2020-2023  润新知