private void recordsToolStripMenuItem_Click(object sender, EventArgs e) { if (Login.loginAdmin == 1) { DataRecords records = new DataRecords(); records.Visible = true; } else { MessageBox.Show("Sorry,this portion is only for admin."); } //DataRecords dr = new DataRecords(); //dr.Show(); }
private void testButton_Click(object sender, EventArgs e) { DataRecords record = new DataRecords(); record.Visible = true; }