private void Apply(int mode) { if (mode == 0) { ClearingCountingsList = DataBaseClient.ReadClearingCountings(FromDate, ToDate, SelectedStatus.id, SelectedBroker.id); } else { ClearingCountingsList = DataBaseClient.ReadClearingCountings(FromDate, ToDate, SelectedStatus.id, SelectedBroker.id, SelectedSupplier.companyId); } }