本文整理汇总了C#中IVsOutputWindowPane.Activate方法的典型用法代码示例。如果您正苦于以下问题:C# IVsOutputWindowPane.Activate方法的具体用法?C# IVsOutputWindowPane.Activate怎么用?C# IVsOutputWindowPane.Activate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IVsOutputWindowPane
的用法示例。
在下文中一共展示了IVsOutputWindowPane.Activate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
/// <summary>
/// Make sure the output pane is loaded.
/// </summary>
public void Load()
{
if (outputPane == null)
{
outputPane = VSUtilities.ServiceProvider().GetOutputPane(new Guid(GuidList.Strings.guidDot42OutputPane), "dot42", true, false);
outputPane.Activate();
}
}
示例2: btnProgram_Click
private void btnProgram_Click(object sender, EventArgs e)
{
var info = GetProcessInfo();
AVRDudeProcessWrapper programmer = new AVRDudeProcessWrapper(info);
outputPane = CreateOrGetOutputWindowPane();
outputPane.Activate();
programmer.MessageReceived += Programmer_MessageReceived;
programmer.Program(txtProgramPath.Text);
}
示例3: Load
/// <summary>
/// Make sure the output pane is loaded.
/// </summary>
public void Load()
{
if (outputPane == null)
{
Guid guid = _guid;
if (_guid == default(Guid))
{
outputPane = VSUtilities.ServiceProvider().GetOutputPane(new Guid(GuidList.Strings.guidDot42OutputPane), _title, true, false);
outputPane.Activate();
}
else
{
outputPane = VSUtilities.ServiceProvider().GetOutputPane(_guid, _title, true, false);
}
}
}
示例4: Message
//--//
private void Message(IVsOutputWindowPane pane, String msg)
{
if(pane == null)
return;
if(msg==null)
msg = "[no message string provided to MessageCentre.Message()" + new StackTrace().ToString();
try
{
lock (pane)
{
pane.Activate();
pane.OutputStringThreadSafe(msg + "\r\n");
}
}
catch( InvalidComObjectException )
{
}
}