private void addProductButton_Click(object sender, EventArgs e) { Product product = CreateProduct(); JsonSave.serializeProduct(product); this.Close(); }
private void UpdateProducts() { products = JsonSave.deserializeProducts <List <Product> >(); workProducts = new List <Product>(products); }