Пример #1
0
        private void addRight_Click(object sender, EventArgs e)
        {
            AddRight rightForm = new AddRight(false, -1);

            rightForm.ShowDialog();
            showValues();
        }
Пример #2
0
 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);
     }
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
 private void addRight_Click(object sender, EventArgs e)
 {
     AddRight rightForm = new AddRight(false,-1);
     rightForm.ShowDialog();
     showValues();
 }