Merge pull request #113 from mRemoteNG/develop

exception fixes
This commit is contained in:
Sean Kaim
2016-05-29 22:07:01 -04:00

View File

@@ -37,7 +37,7 @@ namespace mRemoteNG.UI.Forms
private bool _showFullPathInTitle;
private ConnectionInfo _selectedConnection = null;
private SystemMenu _systemMenu;
public MiscTools.Fullscreen _fullscreen;
private MiscTools.Fullscreen _fullscreen;
@@ -45,6 +45,7 @@ namespace mRemoteNG.UI.Forms
{
_showFullPathInTitle = Settings.Default.ShowCompleteConsPathInTitle;
InitializeComponent();
_fullscreen = new MiscTools.Fullscreen(this);
}
static frmMain()
@@ -626,8 +627,8 @@ namespace mRemoteNG.UI.Forms
private void ConnectionPanelMenuItem_Click(object sender, EventArgs e)
{
((BaseWindow) ((Control)sender).Tag).Show(pnlDock);
((BaseWindow) ((Control)sender).Tag).Focus();
((BaseWindow) ((ToolStripMenuItem)sender).Tag).Show(pnlDock);
((BaseWindow) ((ToolStripMenuItem)sender).Tag).Focus();
}
private void mMenViewConnections_Click(object sender, EventArgs e)
@@ -955,9 +956,10 @@ namespace mRemoteNG.UI.Forms
{
if (e.Button == MouseButtons.Left)
{
if (((Control)sender).Tag is ConnectionInfo)
var tag = ((ToolStripMenuItem)sender).Tag as ConnectionInfo;
if (tag != null)
{
Runtime.OpenConnection((ConnectionInfo)((Control)sender).Tag);
Runtime.OpenConnection(tag);
}
}
}