public LingExc(LingTaskQueue lingTaskQueue, bool redel) { InitializeComponent(); this.redel = redel; if (redel == false) { textBox1.Text = "修改操作"; label4.BackColor = Color.LawnGreen; label3.Text = "你正在做什么?\n你正在试图修改某一项,注意这并不保证安全,请评估后使用本功能。"; } else { textBox1.Text = "删除操作"; label4.BackColor = Color.Red; } this.lingTaskQueue = lingTaskQueue; controlDataGridView = new ControlDataGridView(this.skinDataGridView1); }