blob: 5436fc65e4fdadc661cf012a5151ee19f2d58122 (
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
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 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("Tango.Scripting.Formatting")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Tango.Scripting.Formatting")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[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)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("8d8f06ed-7f75-4933-b0c5-829b0ff654d0")]
// 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")]
class="nc">MachineLoginViewVM : DialogViewVM
{
/// <summary>
/// Gets or sets the machine password.
/// </summary>
public String Password { get; set; }
/// <summary>
/// Gets or sets the intent.
/// </summary>
public ExternalBridgeLoginIntent Intent { get; set; }
/// <summary>
/// Gets or sets the login command.
/// </summary>
public RelayCommand<String> LoginCommand { get; set; }
/// <summary>
/// Gets or sets the cancel command.
/// </summary>
public RelayCommand CancelCommand { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MachineLoginViewVM"/> class.
/// </summary>
public MachineLoginViewVM()
{
Intent = ExternalBridgeLoginIntent.FullControl;
LoginCommand = new RelayCommand<string>(Login);
CancelCommand = new RelayCommand(Cancel);
}
/// <summary>
/// Invoked when user presses the login button.
/// </summary>
/// <param name="password">The password.</param>
private void Login(string password)
{
Password = password;
Accept();
}
}
}
|