private void LoadDataBase(ViewSelector viewSelector) { DataViewer dataViewer = new DataViewer(); ShipmentDataGridView.DataSource = dataViewer.ShowData(viewSelector); HideIdAndRenameColumns(viewSelector); }
private void LoadDataBase() { viewSelector = new ViewSelector("Date", "Organization", "City", "Country", "Manager", "Amount", "Total"); DataViewer dataViewer = new DataViewer(); ShipmentDataGridView.DataSource = dataViewer.ShowData(viewSelector); HideIdAndRenameColumns(viewSelector); viewSelector = new ViewSelector("", "", "", "", "", "", ""); }