public static void DisplayContents(string table) { if (Valid.ValidUsers(table)) { using (ReadRepository readTable = new ReadRepository()) { readTable.GetEverythingText(table); } } else { MessageBox.Show("Enter valid table!"); } }