public Employees() { InitializeComponent(); regCheck = new RegexChecker(); serviceObj = new ElectricCarService.ElectricCarClient(); fillEmpTable(); }
public Customers() { InitializeComponent(); regCheck = new RegexChecker(); serviceObj = new ElectricCarService.ElectricCarClient(); // have to fetch it in advance for adding discoGroups = serviceObj.getAllDiscountGroups().ToList(); custDiscoGroup.ItemsSource = discoGroups; custDiscoGroup.SelectedIndex = 0; fillCustTable(); }