aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.UsersAndRoles/Views/UserView.xaml
blob: 0858d7e08da7b8cf02006368ee94caf546a3e83e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<UserControl x:Class="Tango.MachineStudio.UsersAndRoles.Views.UserView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             xmlns:pass="clr-namespace:Tango.SharedUI.Helpers;assembly=Tango.SharedUI"
             xmlns:local="clr-namespace:Tango.MachineStudio.UsersAndRoles.Views"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=entities:User, IsDesignTimeCreatable=False}">
    
    
    
    <Grid>
        <controls:TableGrid>
            <TextBlock Text="EMAIL"></TextBlock>
            <TextBox Text="{Binding Email}"></TextBox>
            <TextBlock Text="PASSWORD"></TextBlock>
            <PasswordBox MaxLength="30" pass:PasswordHelper.Attach="True" pass:PasswordHelper.Password="{Binding PasswordGateWay,Mode=TwoWay}"></PasswordBox>
        </controls:TableGrid>
    </Grid>
</UserControl>
t .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.Integration.Operation;
using Tango.PMR.Integration;
using Tango.Transport;
using Tango.Transport.Adapters;
using Tango.Transport.Transporters;

namespace Tango.Integration.ExternalBridge
{
    public interface IExternalBridgeService
    {
        /// <summary>
        /// Gets the collection of logged-in receivers.
        /// </summary>
        List<ExternalBridgeReceiver> ActiveReceivers { get; }

        /// <summary>
        /// Occurs when a new client is waiting for authentication.
        /// </summary>
        event EventHandler<ExternalBridgeClientConnectedEventArgs> ConnectionRequest;

        /// <summary>
        /// Occurs when the current full control session has disconnected.
        /// </summary>
        event EventHandler FullControlSessionDisconnected;

        /// <summary>
        /// Occurs when the service has received a new color profile request.
        /// </summary>
        event EventHandler<ColorProfileRequestEventArgs> ColorProfileRequest;

        /// <summary>
        /// Gets or sets the machine operator.
        /// </summary>
        IMachineOperator MachineOperator { get; set; }

        /// <summary>
        /// Gets or sets the machine.
        /// </summary>
        Machine Machine { get; set; }

        /// <summary>
        /// Gets or sets the SignalR configuration.
        /// </summary>
        ExternalBridgeSignalRConfiguration SignalRConfiguration { get; set; }

        /// <summary>
        /// Gets the current full control session receiver.
        /// </summary>
        ExternalBridgeReceiver FullControlSessionReceiver { get; }

        /// <summary>
        /// Gets or sets the TCP transport adapter write mode when creating a TCP receiver.
        /// </summary>
        TcpTransportAdapterWriteMode TcpTransportAdapterWriteMode { get; set; }

        /// <summary>
        /// Gets a value indicating whether this instance is started.
        /// </summary>
        bool IsStarted { get; }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="IExternalBridgeService"/> is enabled.
        /// </summary>
        bool Enabled { get; set; }

        /// <summary>
        /// Gets a value indicating whether there are any connected sessions.
        /// </summary>
        bool HasSessions { get; }

        /// <summary>
        /// Starts this instance.
        /// </summary>
        void Start();

        /// <summary>
        /// Stops this instance.
        /// </summary>
        void Stop();

        /// <summary>
        /// Disconnects the current remote client session.
        /// </summary>
        void DisconnectFullControlSession();

        /// <summary>
        /// Registers the request handler.
        /// </summary>
        /// <param name="handler">The handler.</param>
        void RegisterRequestHandler(IExternalBridgeRequestHandler handler);

        /// <summary>
        /// Unregisters the request handler.
        /// </summary>
        /// <param name="handler">The handler.</param>
        void UnregisterRequestHandler(IExternalBridgeRequestHandler handler);
    }
}