public static void DisplayContents(string table) { if (Valid.ValidUsers(table)) { using (ReadRepository readTable = new ReadRepository()) { readTable.GetEverythingText(table); } } else { MessageBox.Show("Enter valid table!"); } }
public static void PassString(string passed) { if (Valid.ValidUsers(passed)) { using (CreateRepository cr = new CreateRepository()) { cr.InsertField("Roles", passed); } MessageBox.Show("Succesful op"); } else { MessageBox.Show("Enter valid user!!"); } }