private void FormCompanyDetail_Load(object sender, EventArgs e) { { contextMenuStrip = new ContextMenuStrip(); contextMenuStrip.Opening += new CancelEventHandler(contextMenuStrip_Opening); listBoxServicesOffered.ContextMenuStrip = ContextMenuStrip; } { XmlServicesLoader sloader = new XmlServicesLoader(FileServicePath, _ae); List <Gewerk> _addlist = sloader.Run(); foreach (Gewerk ca in _addlist) { comboBoxServicesOffered.Items.Add(ca); } AvaError.ShowReportOnlyError(Dc, "Something is wrong", _ae); } { AvaError.ShowReportOnlyError(Dc, "Something is wrong", _ae); } RefreshListboxservice(); RefreshListboxContact(); SetForm(); }
private void FormCompanyDbMain_Load(object sender, EventArgs e) { //loading file { XmlCompanyDbLoader cdLoader = new XmlCompanyDbLoader(FilePath, _ae); _allPersonList = new List <Person>(); _cpyList = cdLoader.Run(); foreach (Company c in _cpyList) { _allPersonList.AddRange(c.ContactPersons); } AvaError.ShowReportOnlyError(Dc, "Something is wrong", _ae); RefreshListbox(); } { { XmlServicesLoader sloader = new XmlServicesLoader(FileServicePath, _ae); List <Gewerk> _addlist = sloader.Run(); foreach (Gewerk ca in _addlist) { comboBox1.Items.Add(ca); } AvaError.ShowReportOnlyError(Dc, "Something is wrong", _ae); } } }
private void FormGewerk_Load(object sender, EventArgs e) { XmlServicesLoader sloader = new XmlServicesLoader(FileServicePath, _ae); List <Gewerk> _addlist = sloader.Run(); foreach (Gewerk ca in _addlist) { listBoxServicesRequired.Items.Add(ca); } AvaError.ShowReportOnlyError(Dc, "Something is wrong", _ae); }