コード例 #1
0
        private void btPartAdd_Click(object sender, EventArgs e)
        {
            ModifyPartForm addPartForm = new ModifyPartForm(this);

            this.Hide();
            addPartForm.Show();
            resetIndex();
        }
コード例 #2
0
 private void btPartModify_Click(object sender, EventArgs e)
 {
     if (IndexPart >= 0)
     {
         ModifyPartForm modifyPartForm = new ModifyPartForm(this, partChosen);
         resetIndex();
         this.Hide();
         modifyPartForm.Show();
     }
     else
     {
         MessageBox.Show("You must make a selection.");
     }
 }