Exemplo n.º 1
0
        // 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);
            });
        }
Exemplo n.º 2
0
        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());
            });
        }
Exemplo n.º 3
0
        // 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);
            });
        }
Exemplo n.º 4
0
 // 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);
     });
 }
Exemplo n.º 5
0
 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());
     });
 }
Exemplo n.º 6
0
 // 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);
     });
 }