예제 #1
0
        private void IntoLibRec_Load(object sender, System.EventArgs e)
        {
            IList listUser = UserData.GetAllUsers();

            foreach (object o in listUser)
            {
                _User u = (_User)o;
                comboBox1.Items.Add(u.Name);
            }

            comboBox1.SelectedIndex = 0;

            IList PumpNames = IntoLibData.GetIntoLibPumpNames();

            foreach (object o1 in PumpNames)
            {
                comboBox2.Items.Add(o1.ToString());
            }
            comboBox2.SelectedIndex = 0;


            IList PumpClass = PumpTypeData.getPumpTypeName();

            foreach (object o2 in PumpClass)
            {
                comboBox3.Items.Add(o2.ToString());
            }
            comboBox3.SelectedIndex = 0;
        }
예제 #2
0
        private void LoadPumpNames()
        {
            IList pumpNameList = IntoLibData.GetIntoLibPumpNames();

            foreach (Object o in pumpNameList)
            {
                cmbPumpName.Items.Add(o.ToString());
            }
        }
예제 #3
0
        private void OutLib_Load(object sender, System.EventArgs e)
        {
            IList userList = UserData.GetAllUsers();

            foreach (object o in userList)
            {
                _User u = (_User)o;
                comboBox1.Items.Add(u.Name);
            }

            comboBox1.SelectedIndex = 0;

            IList DrawTypes = DrawTypeData.LoadFileType();

            foreach (object a in DrawTypes)
            {
                FileType ft = (FileType)a;
                comboBox2.Items.Add(ft.Type);
            }

            comboBox2.SelectedIndex = 0;

            IList PumpNames = IntoLibData.GetIntoLibPumpNames();

            foreach (object pn in PumpNames)
            {
                comboBox3.Items.Add(pn.ToString());
            }

            comboBox3.SelectedIndex = 0;

            IList TypeNames = PumpTypeData.getPumpTypeName();

            foreach (object tn in TypeNames)
            {
                comboBox4.Items.Add(tn.ToString());
            }

            comboBox4.SelectedIndex = 0;
        }