/// <summary> /// button dla dodania przedmiota /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonAdd_Click(object sender, EventArgs e) { Sybjects.AddSybjects(sqlConnection, dataGridViewTables, textBoxAdd.Text); }
/// <summary> /// button dla zmiany imienu przedmiota /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonModify_Click(object sender, EventArgs e) { Sybjects.UpdateSybjects(sqlConnection, dataGridViewTables, textBoxOldName.Text, textBoxNewName.Text); }
/// <summary> /// wyszukiwanie i wyswietlanie przedmiotu o podaneh nazwie /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void textBoxFindByName_TextChanged_1(object sender, EventArgs e) { Sybjects.FindByName(sqlConnection, dataGridViewTables, textBoxFindByName.Text); }
/// <summary> /// button dla usuwania przedmiota /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonDelete_Click(object sender, EventArgs e) { Sybjects.DeleteSybjects(sqlConnection, dataGridViewTables, textBoxDelete.Text); }