mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
this is for cases where you would like to have INotifyCollectionChanged and INotifyPropertyChanged implemented, but dont need the level of detail that those types provide.
21 lines
678 B
C#
21 lines
678 B
C#
using System;
|
|
|
|
namespace mRemoteNG.Credential
|
|
{
|
|
public class CredentialChangedEventArgs : EventArgs
|
|
{
|
|
public ICredentialRecord CredentialRecord { get; }
|
|
public ICredentialRepository Repository { get; }
|
|
|
|
public CredentialChangedEventArgs(ICredentialRecord credentialRecord, ICredentialRepository repository)
|
|
{
|
|
if (credentialRecord == null)
|
|
throw new ArgumentNullException(nameof(credentialRecord));
|
|
if (repository == null)
|
|
throw new ArgumentNullException(nameof(repository));
|
|
|
|
CredentialRecord = credentialRecord;
|
|
Repository = repository;
|
|
}
|
|
}
|
|
} |