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