예제 #1
0
        private void InsertBicycleButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            BicycleDataInputForm bdif = new BicycleDataInputForm(this);

            bdif.Show();
        }
예제 #2
0
 private void SubmitButton_Click(object sender, EventArgs e)
 {
     if (stringToDelete.Equals("deleteUser"))
     {
         string id = IdTextBox.Text;
         this.Hide();
         UserDataInputForm udif = new UserDataInputForm(this, id, myCaller);
         udif.Show();
     }
     else if (stringToDelete.Equals("deleteWorker"))
     {
         string id = IdTextBox.Text;
         this.Hide();
         WorkerDataInputForm wdif = new WorkerDataInputForm(this, id, myCaller);
         wdif.Show();
     }
     else if (stringToDelete.Equals("deleteBicycle"))
     {
         int id = Convert.ToInt32(IdTextBox.Text);
         this.Hide();
         BicycleDataInputForm bdif = new BicycleDataInputForm(this, id, myCaller);
         bdif.Show();
     }
 }
예제 #3
0
 private void SubmitButton_Click(object sender, EventArgs e)
 {
     if (dataToModify.Equals("modifyUser"))
     {
         string id = IDBox.Text;
         this.Hide();
         UserDataInputForm udif = new UserDataInputForm(this, id, myCaller);
         udif.Show();
     }
     if (dataToModify.Equals("modifyWorker"))
     {
         string id = IDBox.Text;
         this.Hide();
         WorkerDataInputForm wdif = new WorkerDataInputForm(this, id, myCaller);
         wdif.Show();
     }
     if (dataToModify.Equals("modifyBicycle"))
     {
         int id = Convert.ToInt32(IDBox.Text);
         this.Hide();
         BicycleDataInputForm bdif = new BicycleDataInputForm(this, id, myCaller);
         bdif.Show();
     }
 }