IToolForm and IToolPanel to mark tool forms and panels.
This commit is contained in:
7
VAR.Toolbox/UI/IToolForm.cs
Normal file
7
VAR.Toolbox/UI/IToolForm.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public interface IToolForm
|
||||
{
|
||||
string ToolName { get; }
|
||||
}
|
||||
}
|
||||
6
VAR.Toolbox/UI/IToolPanel.cs
Normal file
6
VAR.Toolbox/UI/IToolPanel.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public interface IToolPanel
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,10 @@ using VAR.Toolbox.Code;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmCoder : Form
|
||||
public partial class FrmCoder : Form, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "Coder"; } }
|
||||
|
||||
public FrmCoder()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -7,8 +7,10 @@ using System.Windows.Forms;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmIPScan : Form
|
||||
public partial class FrmIPScan : Form, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "IPScan"; } }
|
||||
|
||||
public FrmIPScan()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -6,8 +6,10 @@ using System.Windows.Forms;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmNetworkInfo : Form
|
||||
public partial class FrmNetworkInfo : Form, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "NetworkInfo"; } }
|
||||
|
||||
public FrmNetworkInfo()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -6,8 +6,10 @@ using VAR.Toolbox.Code;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmProxyCmd : Form, IOutputHandler
|
||||
public partial class FrmProxyCmd : Form, IOutputHandler, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "ProxyCmd"; } }
|
||||
|
||||
#region Declarations
|
||||
|
||||
private object _executionLock = new object();
|
||||
@@ -6,8 +6,10 @@ using VAR.Toolbox.Code;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmScreenshooter : Form
|
||||
public partial class FrmScreenshooter : Form, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "Screenshooter"; } }
|
||||
|
||||
private bool _repetitiveScreenshots = false;
|
||||
private Timer timTicker;
|
||||
private Bitmap bmpScreen = null;
|
||||
@@ -6,8 +6,10 @@ using System.Windows.Forms;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmTunnelTCP : Form
|
||||
public partial class FrmTunnelTCP : Form, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "TunnelTCP"; } }
|
||||
|
||||
private bool _running = false;
|
||||
|
||||
private class ConnectedClient
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace VAR.Toolbox
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
partial class FrmWebcam
|
||||
{
|
||||
@@ -4,10 +4,12 @@ using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using VAR.Toolbox.Code;
|
||||
|
||||
namespace VAR.Toolbox
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class FrmWebcam : Form
|
||||
public partial class FrmWebcam : Form, IToolForm
|
||||
{
|
||||
public string ToolName { get { return "Webcam"; } }
|
||||
|
||||
private Webcam webcam = null;
|
||||
|
||||
public FrmWebcam()
|
||||
@@ -4,7 +4,7 @@ using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class PnlCover : UserControl
|
||||
public partial class PnlCover : UserControl, IToolPanel
|
||||
{
|
||||
public PnlCover()
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using VAR.Toolbox.Code.Windows;
|
||||
|
||||
namespace VAR.Toolbox.UI
|
||||
{
|
||||
public partial class PnlSuspension : UserControl
|
||||
public partial class PnlSuspension : UserControl, IToolPanel
|
||||
{
|
||||
private Random rnd = new Random();
|
||||
|
||||
@@ -128,55 +128,56 @@
|
||||
<Compile Include="Controls\CtrOutput.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmCoder.cs">
|
||||
<Compile Include="UI\IToolPanel.cs" />
|
||||
<Compile Include="UI\Tools\FrmCoder.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmCoder.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmCoder.Designer.cs">
|
||||
<DependentUpon>FrmCoder.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmCover.cs">
|
||||
<Compile Include="UI\Tools\FrmCover.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmIPScan.cs">
|
||||
<Compile Include="UI\Tools\FrmIPScan.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmIPScan.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmIPScan.Designer.cs">
|
||||
<DependentUpon>FrmIPScan.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmNetworkInfo.cs">
|
||||
<Compile Include="UI\Tools\FrmNetworkInfo.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmNetworkInfo.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmNetworkInfo.Designer.cs">
|
||||
<DependentUpon>FrmNetworkInfo.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmProxyCmd.cs">
|
||||
<Compile Include="UI\Tools\FrmProxyCmd.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmProxyCmd.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmProxyCmd.Designer.cs">
|
||||
<DependentUpon>FrmProxyCmd.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmProxyCmdConfig.cs">
|
||||
<Compile Include="UI\Tools\FrmProxyCmdConfig.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmProxyCmdConfig.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmProxyCmdConfig.Designer.cs">
|
||||
<DependentUpon>FrmProxyCmdConfig.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmScreenshooter.cs">
|
||||
<Compile Include="UI\Tools\FrmScreenshooter.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmScreenshooter.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmScreenshooter.Designer.cs">
|
||||
<DependentUpon>FrmScreenshooter.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmTestWebService.cs">
|
||||
<Compile Include="UI\Tools\FrmTestWebService.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmTestWebService.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmTestWebService.Designer.cs">
|
||||
<DependentUpon>FrmTestWebService.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmTunnelTCP.cs">
|
||||
<Compile Include="UI\Tools\FrmTunnelTCP.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmTunnelTCP.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmTunnelTCP.Designer.cs">
|
||||
<DependentUpon>FrmTunnelTCP.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmToolbox.cs">
|
||||
@@ -187,23 +188,24 @@
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="UI\FrmWebcam.cs">
|
||||
<Compile Include="UI\Tools\FrmWebcam.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\FrmWebcam.Designer.cs">
|
||||
<Compile Include="UI\Tools\FrmWebcam.Designer.cs">
|
||||
<DependentUpon>FrmWebcam.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\IFormWithIcon.cs" />
|
||||
<Compile Include="UI\PnlCover.cs">
|
||||
<Compile Include="UI\IToolForm.cs" />
|
||||
<Compile Include="UI\Tools\PnlCover.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\PnlCover.Designer.cs">
|
||||
<Compile Include="UI\Tools\PnlCover.Designer.cs">
|
||||
<DependentUpon>PnlCover.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UI\PnlSuspension.cs">
|
||||
<Compile Include="UI\Tools\PnlSuspension.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="UI\PnlSuspension.Designer.cs">
|
||||
<Compile Include="UI\Tools\PnlSuspension.Designer.cs">
|
||||
<DependentUpon>PnlSuspension.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user