private void textbook_button_Click(object sender, EventArgs e) { Textbook temp = new Textbook(textbook_textbox_name.Text, (int)textbook_num_year.Value, (int)textbook_num_count.Value, (int)textbook_num_grade.Value, textbook_textbox_subject.Text); storage.Add_textbook(temp); textbook_view.DataSource = storage.textbook_list; textbook_view.Enabled = true; Refresh(4); }
public void Add_textbook(Textbook temp) { textbook_list.Add(temp); }