コード例 #1
0
        private void btProductAdd_Click(object sender, EventArgs e)
        {
            ModifyProductForm addProductForm = new ModifyProductForm(this);

            resetIndex();
            this.Hide();
            addProductForm.Show();
        }
コード例 #2
0
 private void btProductModify_Click(object sender, EventArgs e)
 {
     if (IndexProduct != -1)
     {
         ModifyProductForm modifyProductForm = new ModifyProductForm(this, productChosen);
         resetIndex();
         this.Hide();
         modifyProductForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("You must make a selection");
     }
 }