private void but_add_Click(object sender, EventArgs e) { Database db = new Database(); Plate plate = new Plate(); plate.part_name_ = text_part.Text; plate.thick_ = combo_thick.Text; plate.mat_ = comboBox3.Text; db.add_plate(plate); Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("Add plate OK."); }
public void add_plate(Plate pl) { plates_.Add(pl); }