예제 #1
0
        private void button7_Click(object sender, EventArgs e)
        {
            Genere af = new Genere();

            af.Owner = this;
            af.Show();
        }
예제 #2
0
        private void AddBtn_Click(object sender, EventArgs e)
        {
            Genere six = this.Owner as Genere;

            if (six != null)
            {
                DataRow nRow = six.radiostationDataSet0.Tables[0].NewRow();
                int     rc   = six.dataGridView1.RowCount + 1;
                nRow[0] = tbgenere.Text;
                nRow[1] = tbname1.Text;
                nRow[2] = tbdescript.Text;
                six.radiostationDataSet0.Tables[0].Rows.Add(nRow);
                six.generesTableAdapter.Update(six.radiostationDataSet0.generes);
                six.radiostationDataSet0.Tables[0].AcceptChanges();
                six.dataGridView1.Refresh();
                tbgenere.Text   = "";
                tbname1.Text    = "";
                tbdescript.Text = "";
            }
        }