mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Code cleanup
This commit is contained in:
@@ -9,36 +9,20 @@ namespace mRemoteNG.Connection
|
||||
{
|
||||
public partial class InterfaceControl
|
||||
{
|
||||
#region Private Variables
|
||||
private ProtocolBase _Protocol;
|
||||
private ConnectionInfo _Info;
|
||||
#endregion
|
||||
public ProtocolBase Protocol { get; set; }
|
||||
public ConnectionInfo Info { get; set; }
|
||||
|
||||
#region Public Properties
|
||||
public ProtocolBase Protocol
|
||||
{
|
||||
get { return this._Protocol; }
|
||||
set { this._Protocol = value; }
|
||||
}
|
||||
|
||||
public ConnectionInfo Info
|
||||
{
|
||||
get { return this._Info; }
|
||||
set { this._Info = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public InterfaceControl(Control Parent, ProtocolBase Protocol, ConnectionInfo Info)
|
||||
|
||||
public InterfaceControl(Control parent, ProtocolBase protocol, ConnectionInfo info)
|
||||
{
|
||||
try
|
||||
{
|
||||
this._Protocol = Protocol;
|
||||
this._Info = Info;
|
||||
this.Parent = Parent;
|
||||
this.Location = new Point(0, 0);
|
||||
this.Size = this.Parent.Size;
|
||||
this.Anchor = (System.Windows.Forms.AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top);
|
||||
Protocol = protocol;
|
||||
Info = info;
|
||||
Parent = parent;
|
||||
Location = new Point(0, 0);
|
||||
Size = Parent.Size;
|
||||
Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
|
||||
InitializeComponent();
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -46,6 +30,5 @@ namespace mRemoteNG.Connection
|
||||
Runtime.MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, "Couldn\'t create new InterfaceControl" + Environment.NewLine + ex.Message);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user