first commit
This commit is contained in:
35
EmoneyInteceptor/Fiddler/Models/FiddlerTabPage.cs
Normal file
35
EmoneyInteceptor/Fiddler/Models/FiddlerTabPage.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user