Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }