Пример #1
0
        private void Save_Clck(object sender, EventArgs e)
        {
            PillDB         database = new PillDB();
            PillIdentifier pill     = new PillIdentifier(imprint_value.Text, resultColor_value.Text, resultShape_value.Text,
                                                         resultDrugName_value.Text, resultStrength_value.Text, "Testing.png");


            database.UpdatePet(pill);
        }
Пример #2
0
        private void add_button_Click(object sender, EventArgs e)
        {
            string pillImprint  = pillImprint_value.Text;
            string pillColor    = color_value.Text;
            string pillShape    = shape_value.Text;
            string pillName     = drugName_value.Text;
            string pillStrength = strength_value.Text;
            PillDB database     = new PillDB();

            PillIdentifier pill = new PillIdentifier(pillImprint, pillColor, pillShape, pillName, pillStrength, "Intento1.png");

            database.InsertPill(pill);
        }