private void addRight_Click(object sender, EventArgs e) { AddRight rightForm = new AddRight(false, -1); rightForm.ShowDialog(); showValues(); }
private void editRight_Click(object sender, EventArgs e) { if (RightlistBox.SelectedIndex >= 0) { string rightid = RightlistBox.SelectedItem.ToString(); AddRight right = new AddRight(true, RightlistBox.SelectedIndex); right.ShowDialog(); showValues(); } else { MessageBox.Show("Select a Right", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void editRight_Click(object sender, EventArgs e) { if (RightlistBox.SelectedIndex >= 0) { string rightid = RightlistBox.SelectedItem.ToString(); AddRight right = new AddRight(true, RightlistBox.SelectedIndex); right.ShowDialog(); showValues(); } else { MessageBox.Show("Select a Right", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void addRight_Click(object sender, EventArgs e) { AddRight rightForm = new AddRight(false,-1); rightForm.ShowDialog(); showValues(); }