private void buttonQR_Click(object sender, EventArgs e) { QR qr = new QR(); qr.Show(); this.Hide(); }
private void buttonQR_Click(object sender, EventArgs e) { if (Teacher.TaskIs) { Task task = new Task(); task.Show(); this.Hide(); } else { QR qr = new QR(); qr.Show(); this.Hide(); } }