private void btnFind_Click(object sender, EventArgs e) { craft c = new craft(); c.number = Convert.ToInt16(txtID.Text.ToString()); c.findInInventory(c.number, main); this.Close(); }
private void btnAdd_Click(object sender, EventArgs e) { craft c = new craft(); c.number = Convert.ToInt16(txtID.Text.ToString()); c.cost = Convert.ToDouble(txtCost.Text.ToString()); c.price = Convert.ToDouble(txtPrice.Text.ToString()); c.location = txtLocation.Text.ToString(); c.dateCreated = txtDate.Text.ToString(); c.condition = txtCondition.Text.ToString(); c.addToInventory(main); this.Close(); }