public void CloseInventory() { //This is the reset method. Everything needs to be reset as if the program has restarted. inventory_database = new List <List <string> >(); database_source_file = ""; FORM1.toolStripStatusLabel1.Text = ""; FORM1.toolStripStatusLabel2.Text = ""; checkcancel = false; sort_mode = "number"; changes_to_data = false; FORM1.listbox_tracker = new List <int>(); FORM1.track_selected_index = 0; FORM1.Text = FORM1.program_title; sort_mode = "number"; changes_to_data = false; FORM1.ClearFilters(); FORM1.DisableControls(); FORM1.dataOUTPUT.Rows.Clear(); FORM1.changes_to_data = false; }