private void frmZhuGuanTi_Load(object sender, EventArgs e) { if (txtZhuGuanTi.Text.Length == 0) { answerSheet.tsbSave.Enabled = false; } else { answerSheet.tsbSave.Enabled = true; } publicClass.DisableRightClickMenu(txtZhuGuanTi); publicClass.DisableCopying(txtZhuGuanTi); }
private void frmTyping_Load(object sender, EventArgs e) { GetTopicTime(); topicFace = answerSheet.txtTyping.Text.ToList(); if (txtTyping.Text.Length == 0) { answerSheet.tsbSave.Enabled = false; } else { answerSheet.tsbSave.Enabled = true; } publicClass.DisableRightClickMenu(txtTyping); publicClass.DisableCopying(txtTyping); }