public void RefreshDG() { Admin Show = new Admin(); dgvAllContract.DataSource = Show.ContractDGV(); dgvAllContract.DataMember = "Contracts"; dgOngoing.DataSource = Show.GetOngoingContractDGV(); dgOngoing.DataMember = "OngoingContracts"; dgCompleted.DataSource = Show.GetCompletedContractDGV(); dgCompleted.DataMember = "CompletedContracts"; dgExtended.DataSource = Show.GetExtendedContractDGV(); dgExtended.DataMember = "ExtendedContracts"; dgSearchContract.DataSource = Show.GetSearchContractDGV(); dgSearchContract.DataMember = "SearchContracts"; dgEditContract.DataSource = Show.GetEditContractDGV(); dgEditContract.DataMember = "EditContracts"; }