private void buttonReport_Click(object sender, EventArgs e) { if (radioButtonReportSell.Checked) { stockOut.StockOutStatus = radioButtonReportSell.Text; } else if (radioButtonReportDamge.Checked) { stockOut.StockOutStatus = radioButtonReportDamge.Text; } else if (radioButtonReportLost.Checked) { stockOut.StockOutStatus = radioButtonReportLost.Text; } stockOut.StartDate = dateTimePickerReportFrom.Value; stockOut.EndDate = dateTimePickerReportTo.Value; dataGridViewReport.DataSource = _stockOutManager.GetRiport(stockOut); }