aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeClientConnectedEventArgs.cs
blob: e976898efda5f41654f049d306e4d1a35c1a2ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PMR.Integration;

namespace Tango.Integration.ExternalBridge
{
    public class ExternalBridgeClientConnectedEventArgs : EventArgs
    {
        private Action _confirmAction;
        private Action<String> _declineAction;

        public ExternalBridgeLoginRequest Request { get; set; }

        public String Address { get; set; }

        public ApplicationInformation ApplicationInformation { get; set; }

        public ExternalBridgeClientConnectedEventArgs(Action confirmAction, Action<String> declineAction)
        {
            _confirmAction = confirmAction;
            _declineAction = declineAction;
            ApplicationInformation = new ApplicationInformation();
        }

        public void Confirm()
        {
            _confirmAction?.Invoke();
        }

        public void Decline(String reason)
        {
            _declineAction?.Invoke(reason);
        }
    }
}
DataSeries.cs" /> <Compile Include="WpfGraphController.cs" /> <Compile Include="WpfGraphSurface.cs"> <SubType>Code</SubType> </Compile> </ItemGroup> <ItemGroup> <Compile Include="Properties\AssemblyInfo.cs"> <SubType>Code</SubType> </Compile> <Compile Include="Properties\Resources.Designer.cs"> <AutoGen>True</AutoGen> <DesignTime>True</DesignTime> <DependentUpon>Resources.resx</DependentUpon> </Compile> <Compile Include="Properties\Settings.Designer.cs"> <AutoGen>True</AutoGen> <DependentUpon>Settings.settings</DependentUpon> <DesignTimeSharedInput>True</DesignTimeSharedInput> </Compile> <EmbeddedResource Include="Properties\Resources.resx"> <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> </EmbeddedResource> <None Include="Properties\Settings.settings"> <Generator>SettingsSingleFileGenerator</Generator> <LastGenOutput>Settings.Designer.cs</LastGenOutput> </None> </ItemGroup> <ItemGroup> <ProjectReference Include="..\RealTimeGraphX\RealTimeGraphX.csproj"> <Project>{61f001e1-6e17-4ca6-8f3a-8a11d7166815}</Project> <Name>RealTimeGraphX</Name> </ProjectReference> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project>