本文整理匯總了C#中Poderosa.Connection.ConnectionTag.FormatFrameText方法的典型用法代碼示例。如果您正苦於以下問題:C# ConnectionTag.FormatFrameText方法的具體用法?C# ConnectionTag.FormatFrameText怎麽用?C# ConnectionTag.FormatFrameText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Poderosa.Connection.ConnectionTag
的用法示例。
在下文中一共展示了ConnectionTag.FormatFrameText方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RefreshConnection
public void RefreshConnection(ConnectionTag tag)
{
if(tag.Button==null) return;
SetButtonText(tag.Button as TabBarButton, GEnv.Connections.IndexOf(tag), tag);
((TabBarButton)tag.Button).Image = GetTabIcon(tag);
_tabToolTip.SetToolTip(tag.Button, tag.FormatFrameText());
}
示例2: CreateNewButton
private Control CreateNewButton(ConnectionTag ct)
{
TabBarButton b = new TabBarButton();
ct.Button = b;
SetButtonText(b, Controls.Count-1, ct);
_tabToolTip.SetToolTip(b, ct.FormatFrameText());
//b.Image = _imageList.Images[(int)e.item.Type];
b.Tag = ct;
b.Font = _basicFont;
b.Width = GetNecessaryButtonWidth(b);
b.Visible = true;
b.TabStop = false;
b.Click += new EventHandler(this.OnButtonClick);
b.MouseDown += new MouseEventHandler(OnMouseDown);
b.MouseUp += new MouseEventHandler(OnMouseUp);
b.MouseMove += new MouseEventHandler(OnMouseMove);
return b;
}
示例3: AdjustTitle
public void AdjustTitle(ConnectionTag tag)
{
string title = "";
if(tag!=null) {
title = tag.FormatFrameText() + " - ";
}
if(GApp.MacroManager.MacroIsRunning) {
title += String.Format(GApp.Strings.GetString("Caption.GFrame.MacroIsRunning"), GApp.MacroManager.CurrentMacro.Title);
}
title += "Poderosa";
this.Text = title;
}