public MediaDataSet.TabMediaDataTable GetByCriteria(string _title, string _director, Int32 _year) { _mediaDataSet.TabMedia.Clear(); _mediaDataSet.EnforceConstraints = false; try { _mediaTabTableAdapter.FillByCriteria(_mediaDataSet.TabMedia, _title, _director, _year); return(_mediaDataSet.TabMedia); } catch (Exception ex) { Console.WriteLine("Fill By Criteria did not work: \n" + _title + "\n " + _director + "\n " + _year); throw ex; } }