mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Merge branch 'RemoveMagicLib' of https://github.com/mRemoteNG/mRemoteNG into RemoveMagicLib
This commit is contained in:
@@ -15,6 +15,7 @@ using mRemoteNG.Container;
|
||||
using mRemoteNG.Themes;
|
||||
using mRemoteNG.Tools;
|
||||
using mRemoteNG.UI.Forms;
|
||||
using mRemoteNG.UI.Forms.Input;
|
||||
using mRemoteNG.UI.TaskDialog;
|
||||
using WeifenLuo.WinFormsUI.Docking;
|
||||
using ConnectionTab = mRemoteNG.UI.Tabs.ConnectionTab;
|
||||
@@ -782,18 +783,26 @@ namespace mRemoteNG.UI.Window
|
||||
}
|
||||
|
||||
private void RenameTab()
|
||||
{/*
|
||||
{
|
||||
try
|
||||
{
|
||||
var newTitle = TabController.SelectedTab.Title;
|
||||
if (new InputBox().ShowAsDialog(Language.strNewTitle, Language.strNewTitle + ":", ref newTitle) == DialogResult.OK &&
|
||||
!string.IsNullOrEmpty(newTitle))
|
||||
TabController.SelectedTab.Title = newTitle.Replace("&", "&&");
|
||||
var interfaceControl = GetInterfaceControl();
|
||||
if (interfaceControl == null) return;
|
||||
var newTitle = ((ConnectionTab)interfaceControl.Parent).TabText;
|
||||
using (FrmInputBox frmInputBox = new FrmInputBox(Language.strNewTitle, Language.strNewTitle, ref newTitle))
|
||||
{
|
||||
DialogResult dr = frmInputBox.ShowDialog();
|
||||
if (dr == DialogResult.OK)
|
||||
{
|
||||
if(!string.IsNullOrEmpty(frmInputBox.returnValue))
|
||||
((ConnectionTab)interfaceControl.Parent).TabText = frmInputBox.returnValue.Replace("&", "&&");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Runtime.MessageCollector.AddExceptionMessage("RenameTab (UI.Window.ConnectionWindow) failed", ex);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateScreenshot()
|
||||
|
||||
Reference in New Issue
Block a user