private void manageTestsToolStripMenuItem_Click(object sender, EventArgs e) { if (!StaticServerProvider.IsLogin) { if (!InitLogin()) { return; } } if (TestRoles(TestorUserRole.Administrator, TestorUserRole.Teacher, TestorUserRole.Laboratorian)) { ManageTestsForm manageForm = new ManageTestsForm(); manageForm.ShowDialog(); StaticServerProvider.NullClients(); } }
private void testingStatisticsToolStripMenuItem_Click(object sender, EventArgs e) { if (!StaticServerProvider.IsLogin) { if (!InitLogin()) { return; } } if (TestRoles(TestorUserRole.Administrator, TestorUserRole.Teacher, TestorUserRole.Laboratorian)) { StatisticsForm statistics = new StatisticsForm(true); statistics.FormBorderStyle = FormBorderStyle.Sizable; statistics.WindowState = FormWindowState.Maximized; statistics.ShowInTaskbar = true; statistics.Show(); StaticServerProvider.NullClients(); } }