// Load static data from database to UI. private void loadWeldingDataLists() { var db = new DataProcess(); var gangtaoList = db.GangTaoList(); gangtaoList.ForEach((item) => { GangTaoTypeComboBox.Items.Add(item); }); var operatorList = db.OperatorList(); operatorList.ForEach((item) => { OperatorNameComboBox.Items.Add(item); }); var weldingItemList = db.WeldingItemList(); weldingItemList.ForEach((item) => { WeldingItemComboBox.Items.Add(item); }); }
private void LoadWeldingDataLists() { var db = new DataProcess(); var gangtaoList = db.GangTaoList(); GangTaoTypeComboBox.Items.Clear(); gangtaoList.ForEach((item) => { GangTaoTypeComboBox.Items.Add(item); }); var weldingItemList = db.WeldingItemList(); WeldingItemComboBox.Items.Clear(); weldingItemList.ForEach((item) => { WeldingItemComboBox.Items.Add(item); }); histories = db.HistoryList(); HistoriesListBox.Items.Clear(); histories.ForEach((item) => { HistoriesListBox.Items.Add(item.ShortDescription()); }); }
// Load static data from database to UI. private void loadWeldingDataLists() { #if DEBUG sendMessageInfoLabel.Visible = true; sendMessageButton.Visible = true; #else sendMessageInfoLabel.Visible = false; sendMessageButton.Visible = false; #endif var db = new DataProcess(); var gangtaoList = db.GangTaoList(); gangtaoList.ForEach((item) => { GangTaoTypeComboBox.Items.Add(item); }); var operatorList = db.OperatorList(); operatorList.ForEach((item) => { OperatorNameComboBox.Items.Add(item); }); var weldingItemList = db.WeldingItemList(); weldingItemList.ForEach((item) => { WeldingItemComboBox.Items.Add(item); }); }