Files
EmoneyFiddlerPlugins/EmoneyInteceptor/Fiddler/Models/FiddlerTabPage.cs
2026-01-07 11:33:05 +08:00

36 lines
1.0 KiB
C#

using System;
using Fiddler;
namespace EmoneyInteceptor.Fiddler.Models
{
public class FiddlerTabPage
{
/// <summary>
/// 获取 Fiddler Tab 标签页的 Title。
/// </summary>
public string TabTitle { get; }
/// <summary>
/// 获取或设置 Fiddler Tab 标签页的 Icon。
/// </summary>
public SessionIcons TabIcon { get; set; } = SessionIcons.Silverlight;
/// <summary>
/// 获取 Fiddler Tab 标签页内的 UserControl。
/// </summary>
public System.Windows.Forms.UserControl WinFormUserControl { get; }
public FiddlerTabPage(string tabTitle, System.Windows.Forms.UserControl winFormUserControl)
{
if (string.IsNullOrWhiteSpace(tabTitle))
{
throw new ArgumentNullException(nameof(tabTitle));
}
TabTitle = tabTitle;
WinFormUserControl = winFormUserControl ?? throw new ArgumentNullException(nameof(winFormUserControl));
}
}
}