private void InsertUserButton_Click(object sender, EventArgs e) { this.Hide(); UserDataInputForm udif = new UserDataInputForm(this); udif.Show(); }
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(); } }
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(); } }