Esempio n. 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            addform form_add = new addform(table, date);

            form_add.Show();
            form_add.ValuesAdded += new ValuesAddedHandler(ShowTable);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            addform form_add = new addform("electro", "date_elect");

            form_add.Show();
            form_add.ValuesAdded += new ValuesAddedHandler(ShowTable);
            //if (form_add.ValuesAdded) ;

            /*DB DataBase1 = new DB();
             * string datetmp = " '" + form_add.datestr + "' ";
             * string valuetmp = " '" + form_add.valuecount.ToString() + "' ";
             * dataGridView1.DataSource = DataBase1.getConnect("INSERT INTO electro(date_elect,curr_value ,price) VALUES(to_date(" + datetmp + ",'DD.MM.YYYY')," + valuetmp + ",0);", "table1");
             * dataGridView1.DataSource = DataBase1.getConnect("select * from electro", "table1");*/
        }