Beispiel #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            if (textBoxName.Text == "" || textBoxDetNum.Text == "")
            {
                MessageBox.Show("Введите номер и наименование детали");
                return;
            }
            BaseTechnology tech = ftuc.MakeBaseTechnology(textBoxName.Text, textBoxDetNum.Text);

            tech.SaveToDB();
        }
Beispiel #2
0
        private void buttonMake_Click(object sender, EventArgs e)
        {
            name = textBoxName.Text;
            num  = textBoxDetNum.Text;
            if (name == "" || num == "")
            {
                MessageBox.Show("Введите номер и наименование детали");
                return;
            }
            List <Operation> listOfOperations = GetListOfOperations();
            BaseTechnology   tech             = new BaseTechnology(name, num, listOfOperations);

            tech.SaveToDB();
        }