Exemplo n.º 1
0
 private void metroButtonSaveClass_Click(object sender, EventArgs e)
 {
     DataSet1TableAdapters.ClassesTableAdapter classesTableAdapter = new DataSet1TableAdapters.ClassesTableAdapter();
     classesTableAdapter.AddClass(metroTextBoxClassName.Text, UserID);
     Close();
 }
 private void MetroButton1_Click(object sender, EventArgs e)
 {
     DataSet1TableAdapters.ClassesTableAdapter ada = new DataSet1TableAdapters.ClassesTableAdapter();
     ada.AddClass(metroTextBox1.Text, UserID);
     Close();
 }