private void btnAddRoleGroup_Click(object sender, RoutedEventArgs e) { frmRoleGroup view = new frmRoleGroup(0); view.GroupSaved += View_GroupSaved; view.ShowDialog(); }
private void btnEditRoleGroup_Click(object sender, RoutedEventArgs e) { var selected = cmbRole.SelectedItem as RoleOrRoleGroupDTO; if (selected != null) { frmRoleGroup view = new frmRoleGroup(selected.ID); view.GroupSaved += View_GroupSaved; view.ShowDialog(); } }