public CostCenter ConvertCostCenterResponse(CostCenterResponse costCenterResponse, string office) { return(new CostCenter { Office = office, Code = costCenterResponse.Code, Name = costCenterResponse.Name, Website = costCenterResponse.Website, }); }
public CostCenterResponse GetCostCenterData() { var costCenterResponse = new CostCenterResponse { Code = "09998", Name = "Test Cost Center", Website = "test.nl" }; return(costCenterResponse); }
public XmlCostCenter ConvertCostCenter(CostCenterResponse ccr) { var costCenter = new XmlCostCenter { Code = ccr.Code, Name = ccr.Name, Website = ccr.Website }; return(costCenter); }
public List <CostCenterResponse> GetCostCenterData() { var costCenterResponse = new CostCenterResponse { Code = "09998", Name = "Test Cost Center", Website = "test.nl" }; return(new List <CostCenterResponse> { costCenterResponse }); }
private void toevoegen_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(codeBox.Text) || !string.IsNullOrWhiteSpace(nameBox.Text)) { this.CostCenter = new CostCenterResponse { Code = codeBox.Text, Name = nameBox.Text, Website = websiteBox.Text }; this.DialogResult = DialogResult.OK; this.Close(); } else { System.Windows.Forms.MessageBox.Show(@"Vul alle verplichte velden in"); } }