Example #1
0
        private void btnVanCreate_Click(object sender, EventArgs e)
        {
            Van createdVan = new Van();

            createdVan.EditVanCapacity(Int32.Parse(textBox14.Text)); textBox14.Text = "";
            createdVan.EditVanId(Int32.Parse(textBox13.Text)); textBox13.Text       = "";
            createdVan.EditVanName(textBox16.Text); textBox16.Text = "";
            createdVan.EditVanAvailability(VanAvailableCheckBox.Checked);
            mysystem.showallvans().Add(createdVan);
            hideallgrouboxes();
        }
Example #2
0
 private void btnVanModify1_Click(object sender, EventArgs e)
 {
     if (searchedVan != null)
     {
         searchedVan.EditVanCapacity(Int32.Parse(textBox14.Text)); textBox14.Text = "";
         searchedVan.EditVanId(Int32.Parse(textBox13.Text)); textBox13.Text       = "";
         searchedVan.EditVanName(textBox16.Text); textBox16.Text = "";
     }
     else
     {
     }
     hideallgrouboxes();
 }