private void addAssestButton_Click(object sender, EventArgs e) { // Set the add type string addType = "Assests"; // Create a new instance of the AddItem class AddItem addItemForm = new AddItem(addType); // Show the AddItem form addItemForm.ShowDialog(); DrawAssestsDataGridView(); }
private void addYearlyButton_Click(object sender, EventArgs e) { // Set the add type addType = "Yearly"; // Create a new instance of the AddItem class AddItem addItemForm = new AddItem(addType); // Show the AddItem form addItemForm.ShowDialog(); Draw(); }