aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/TestApp/Properties/AssemblyInfo.cs
blob: d2b37f2f37416c77cabc42c02116ba0198b9296c (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TestApp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TestApp")]
[assembly: AssemblyCopyright("Copyright ©  2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components.  If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>.  For example, if you are using US english
//in your source files, set the <UICulture> to en-US.  Then uncomment
//the NeutralResourceLanguage attribute below.  Update the "en-US" in
//the line below to match the UICulture setting in the project file.

//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]


[assembly: ThemeInfo(
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
                                     //(used if a resource is not found in the page,
                                     // or application resource dictionaries)
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
                                              //(used if a resource is not found in the page,
                                              // app, or any theme specific resource dictionaries)
)]


// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
lass="c1">/// Represents an external bridge USB client. /// </summary> /// <remarks> /// This isn't really an external bridge client, but merely a transporter for communicating with a Tango machine embedded device. /// </remarks> /// <seealso cref="Tango.Transport.Transporters.BasicTransporter" /> /// <seealso cref="Tango.Integration.ExternalBridge.IExternalBridgeClient" /> public class ExternalBridgeUsbClient : MachineOperator, IExternalBridgeClient { private String _serialNumber; /// <summary> /// Gets the machine serial number. /// </summary> public String SerialNumber { get { return _serialNumber; } set { _serialNumber = value; RaisePropertyChangedAuto(); } } private String _comPort; /// <summary> /// Gets or sets the serial COM port. /// </summary> public String ComPort { get { return _comPort; } set { _comPort = value; RaisePropertyChangedAuto(); } } private UsbSerialBaudRates _baudRate; /// <summary> /// Gets or sets the baud rate. /// </summary> public UsbSerialBaudRates BaudRate { get { return _baudRate; } set { _baudRate = value; RaisePropertyChangedAuto(); } } private String _Device; /// <summary> /// Gets or sets the USB device name. /// </summary> public String Device { get { return _Device; } set { _Device = value; RaisePropertyChangedAuto(); } } /// <summary> /// Gets or sets a value indicating whether transport compression is required by the remote machine. /// </summary> public bool CompressionEnabled { get; set; } /// <summary> /// Connects the transport component. /// </summary> /// <returns></returns> public override async Task Connect() { if (Status != MachineStatuses.Upgrading) { await Disconnect(); Adapter = new UsbTransportAdapter(ComPort) { BaudRate = BaudRate }; } await base.Connect(); } /// <summary> /// Gets a value indicating whether this client requires authentication. /// </summary> public bool RequiresAuthentication => false; /// <summary> /// Initializes a new instance of the <see cref="ExternalBridgeUsbClient"/> class. /// </summary> /// <param name="comPort">The COM port.</param> /// <param name="device">The device.</param> public ExternalBridgeUsbClient(String comPort, String device,UsbSerialBaudRates baudRate = UsbSerialBaudRates.BR_115200) { ComponentName = $"External Bridge USB Client {_component_counter++}"; ComPort = comPort; Device = device; BaudRate = baudRate; UseKeepAlive = false; EnableDiagnostics = true; } /// <summary> /// Returns a <see cref="System.String" /> that represents this instance. /// </summary> /// <returns> /// A <see cref="System.String" /> that represents this instance. /// </returns> public override string ToString() { return Device; } /// <summary> /// Gets the database machine associated with this client. /// </summary> public Machine Machine { get; private set; } /// <summary> /// Sets the database machine. /// </summary> /// <param name="machine">The machine.</param> public void SetMachine(Machine machine) { Machine = machine; } } }