private void NewItem(object sender, EventArgs e)
 {
     var newConfiguration = new ConfigurationForm(currentUser);
     var result = newConfiguration.ShowDialog();
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         RefreshItems(sender, e);
     }
 }
Esempio n. 2
0
        private void NewItem(object sender, EventArgs e)
        {
            var newConfiguration = new ConfigurationForm(currentUser);
            var result           = newConfiguration.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                RefreshItems(sender, e);
            }
        }
 private void UpdateItem(object sender, EventArgs e)
 {
     var role = dataGridView.SelectedRows[0].DataBoundItem as Configuration;
     if (role != null)
     {
         var newConfiguration = new ConfigurationForm(role.Id, currentUser);
         var result = newConfiguration.ShowDialog();
         if (result == System.Windows.Forms.DialogResult.OK)
         {
             RefreshItems(sender, e);
         }
     }
 }
Esempio n. 4
0
        private void UpdateItem(object sender, EventArgs e)
        {
            var role = dataGridView.SelectedRows[0].DataBoundItem as Configuration;

            if (role != null)
            {
                var newConfiguration = new ConfigurationForm(role.Id, currentUser);
                var result           = newConfiguration.ShowDialog();
                if (result == System.Windows.Forms.DialogResult.OK)
                {
                    RefreshItems(sender, e);
                }
            }
        }