mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
defined new event args classes
This commit is contained in:
21
mRemoteV1/Credential/CredentialChangedEventArgs.cs
Normal file
21
mRemoteV1/Credential/CredentialChangedEventArgs.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace mRemoteNG.Credential
|
||||
{
|
||||
public class CredentialChangedEventArgs
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
17
mRemoteV1/Credential/CredentialRepositoryChangedArgs.cs
Normal file
17
mRemoteV1/Credential/CredentialRepositoryChangedArgs.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace mRemoteNG.Credential
|
||||
{
|
||||
public class CredentialRepositoryChangedArgs
|
||||
{
|
||||
public ICredentialRepository Repository { get; }
|
||||
|
||||
public CredentialRepositoryChangedArgs(ICredentialRepository repository)
|
||||
{
|
||||
if (repository == null)
|
||||
throw new ArgumentNullException(nameof(repository));
|
||||
|
||||
Repository = repository;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -209,8 +209,10 @@
|
||||
<Compile Include="Connection\IHasParent.cs" />
|
||||
<Compile Include="Connection\Protocol\ProtocolFactory.cs" />
|
||||
<Compile Include="Connection\Protocol\VNC\VNCEnum.cs" />
|
||||
<Compile Include="Credential\CredentialChangedEventArgs.cs" />
|
||||
<Compile Include="Credential\CredentialDeletionMsgBoxConfirmer.cs" />
|
||||
<Compile Include="Credential\CredentialDomainUserComparer.cs" />
|
||||
<Compile Include="Credential\CredentialRepositoryChangedArgs.cs" />
|
||||
<Compile Include="Credential\CredentialRepositoryList.cs" />
|
||||
<Compile Include="Credential\CredentialRecord.cs" />
|
||||
<Compile Include="Credential\CredentialRecordTypeConverter.cs" />
|
||||
|
||||
Reference in New Issue
Block a user