private void buttonCutOffSubCheck_Click(object sender, EventArgs e) { JoinSubCheckForm form = new JoinSubCheckForm(subCheck, SubCheckFormView.Delete); if (form.ShowDialog() == DialogResult.OK) { UpdateInformation(false); } }
private void buttonJoinSubCheck_Click(object sender, EventArgs e) { JoinSubCheckForm form = new JoinSubCheckForm(subCheck, SubCheckFormView.Add); if (form.GetAvailableSubChecks().Count == 0) { MessageBox.Show("There are no subchecks available", (string)new TermsProvider()["SystemName"], MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { if (form.ShowDialog() == DialogResult.OK) { UpdateInformation(false); } } }