private void AddGroupApply_Click(object sender, RoutedEventArgs e) { string name = newGroupName.Text; Permission permission = new Permission(name, new ObservableCollection <string>()); networkViewModel.AddPermission(permission); AddGroupCancel_Click(sender, e); }