Inserimento progetto
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
|
||||
# /
|
||||
/revision.h
|
||||
/*.aps
|
||||
/*.ncb
|
||||
/*.suo
|
||||
/*.user
|
||||
/*.sdf
|
||||
/*.opensdf
|
||||
/Debug32
|
||||
/Release32
|
||||
/Trial32
|
||||
/Debug64
|
||||
/Release64
|
||||
/ipch
|
||||
/bin
|
||||
/obj
|
||||
/.vs
|
||||
@@ -0,0 +1,340 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{60CE9527-95BC-433A-BE8F-640489315539}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>IPadLibrary</RootNamespace>
|
||||
<AssemblyName>IPadLibrary</AssemblyName>
|
||||
<IsWebBootstrapper>true</IsWebBootstrapper>
|
||||
<PublishUrl>http://localhost/IPadLibrary/</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationVersion>0.0.1.%2a</ApplicationVersion>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<StartupObject>
|
||||
</StartupObject>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\CameraMng\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>
|
||||
</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\CameraMng\bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>..\CameraMng\bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug WinXP|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\Debug WinXP\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug WinXP|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug WinXP\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release WinXP|AnyCPU'">
|
||||
<OutputPath>bin\Release WinXP\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release WinXP|x86'">
|
||||
<OutputPath>bin\x86\Release WinXP\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug WinXP|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug WinXP\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release WinXP|x64'">
|
||||
<OutputPath>bin\x64\Release WinXP\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FormsInterfaces\GeneralLibrary.cs" />
|
||||
<Compile Include="FormsInterfaces\NumericPad.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormsInterfaces\NumericPad.Designer.cs">
|
||||
<DependentUpon>NumericPad.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormsInterfaces\NumericPad.Methods.cs">
|
||||
<DependentUpon>NumericPad.cs</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormsInterfaces\KeyboradControl.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormsInterfaces\KeyboradControl.Designer.cs">
|
||||
<DependentUpon>KeyboradControl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormsInterfaces\KeyboradControl.Methods.cs">
|
||||
<DependentUpon>KeyboradControl.cs</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FormsInterfaces\NumericPad.resx">
|
||||
<DependentUpon>NumericPad.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormsInterfaces\KeyboradControl.resx">
|
||||
<SubType>Designer</SubType>
|
||||
<DependentUpon>KeyboradControl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Disco.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Fresa.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Righello.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Righello2.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\rulers_256.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Disco_diametro.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\MagnifyPlus.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Magnify.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\MagnifyMinus.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\MagnifyPlus_30.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Magnify_30.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\MagnifyMinus_30.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\SaveC.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Delete.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\New.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\OpenDoc.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\OK.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\PlusPlus.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Plus.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Plus_32.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Cacciavite.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Cacciavite_50.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\RotCCLeft.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Cacciavite_36.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\OK_56.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\OK_40.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\OK_51.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Arrow_R.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Arrow_Fine_Left.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Arrow_Fine_R.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Arrow_L.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Exit2.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Exit_48.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\exit1.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\FingerUp.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\LineAB.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Line_W.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Icons\Line_H.gif" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="Icons\Line_L.gif" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>http://localhost/IPadLibrary/|publish\</PublishUrlHistory>
|
||||
<InstallUrlHistory>
|
||||
</InstallUrlHistory>
|
||||
<SupportUrlHistory>
|
||||
</SupportUrlHistory>
|
||||
<UpdateUrlHistory>
|
||||
</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1 @@
|
||||
<Configurations active="Default"><Configuration name="Default"><Command val=""></Command><RunMode val="a host path through a shared folder"></RunMode><ShareFolders val=""></ShareFolders><RemoteDebugMonitor val="C:\Programmi\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86\msvsmon.exe"></RemoteDebugMonitor><MonitorName val="VMDebug"></MonitorName><VirtualMachine val=""></VirtualMachine><StartMode val="No"></StartMode><TerminationMode val="No operation"></TerminationMode><CopyFiles val=""></CopyFiles><PreCommandLine val=""></PreCommandLine><PostCommandLine val=""></PostCommandLine></Configuration></Configurations>
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpLibrary", "CSharpLibrary.csproj", "{60CE9527-95BC-433A-BE8F-640489315539}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Binary file not shown.
@@ -0,0 +1,70 @@
|
||||
/***************************************************/
|
||||
//
|
||||
//
|
||||
/***************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Collect all general porpouse routines used by forms.
|
||||
/// </summary>
|
||||
class GeneralLibrary {
|
||||
|
||||
/// <summary>
|
||||
/// Used to drawing the Form borders only.
|
||||
/// </summary>
|
||||
public static void DrawFormBorder(object sender, PaintEventArgs e) {
|
||||
|
||||
Graphics g = e.Graphics;
|
||||
Form f = (Form) sender;
|
||||
Size drawArea = new Size(f.ClientSize.Width, f.ClientSize.Height);
|
||||
// Drawing the cornice
|
||||
g.DrawRectangle(Pens.Black, 0, 0, drawArea.Width-1, drawArea.Height-1);
|
||||
g.DrawRectangle(Pens.White, 1, 1, drawArea.Width-3, drawArea.Height-3);
|
||||
g.DrawRectangle(Pens.LightGray, 2, 2, drawArea.Width-5, drawArea.Height-5);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static string float2string(float num) {
|
||||
|
||||
return String.Format("{0:0.00}", num).Replace(',','.');
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static float string2float(string text) {
|
||||
|
||||
return float.Parse( text, new NumberFormatInfo() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static PointF convertStr2Point(string xstr, string ystr) {
|
||||
|
||||
NumberFormatInfo nfi = new NumberFormatInfo(); // Number Format Info used for '.'
|
||||
float x, y;
|
||||
x = float.Parse( xstr, nfi );
|
||||
y = float.Parse( ystr, nfi );
|
||||
return ( new PointF(x, y) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static bool isNegative(float num) {
|
||||
|
||||
return ( num < 0.0f );
|
||||
}
|
||||
|
||||
|
||||
} // end class
|
||||
|
||||
} // end namespace
|
||||
@@ -0,0 +1,643 @@
|
||||
/***************************************************/
|
||||
// __ ______
|
||||
|
||||
//
|
||||
/***************************************************/
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
partial class KeyboradControl {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) {
|
||||
if ( disposing && (components != null) ) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.NUM0_Button = new System.Windows.Forms.Button();
|
||||
this.NUM1_Button = new System.Windows.Forms.Button();
|
||||
this.NUM2_Button = new System.Windows.Forms.Button();
|
||||
this.NUM3_Button = new System.Windows.Forms.Button();
|
||||
this.NUM5_Button = new System.Windows.Forms.Button();
|
||||
this.NUM4_Button = new System.Windows.Forms.Button();
|
||||
this.NUM6_Button = new System.Windows.Forms.Button();
|
||||
this.NUM7_Button = new System.Windows.Forms.Button();
|
||||
this.NUM8_Button = new System.Windows.Forms.Button();
|
||||
this.NUM9_Button = new System.Windows.Forms.Button();
|
||||
this.KEY1_Button = new System.Windows.Forms.Button();
|
||||
this.KEY2_Button = new System.Windows.Forms.Button();
|
||||
this.KEY3_Button = new System.Windows.Forms.Button();
|
||||
this.KEY4_Button = new System.Windows.Forms.Button();
|
||||
this.KEY5_Button = new System.Windows.Forms.Button();
|
||||
this.KEY6_Button = new System.Windows.Forms.Button();
|
||||
this.KEY7_Button = new System.Windows.Forms.Button();
|
||||
this.KEY8_Button = new System.Windows.Forms.Button();
|
||||
this.KEY9_Button = new System.Windows.Forms.Button();
|
||||
this.KEY10_Button = new System.Windows.Forms.Button();
|
||||
this.KEY11_Button = new System.Windows.Forms.Button();
|
||||
this.KEY12_Button = new System.Windows.Forms.Button();
|
||||
this.KEY13_Button = new System.Windows.Forms.Button();
|
||||
this.KEY14_Button = new System.Windows.Forms.Button();
|
||||
this.KEY15_Button = new System.Windows.Forms.Button();
|
||||
this.KEY16_Button = new System.Windows.Forms.Button();
|
||||
this.KEY17_Button = new System.Windows.Forms.Button();
|
||||
this.KEY18_Button = new System.Windows.Forms.Button();
|
||||
this.KEY19_Button = new System.Windows.Forms.Button();
|
||||
this.KEY20_Button = new System.Windows.Forms.Button();
|
||||
this.KEY21_Button = new System.Windows.Forms.Button();
|
||||
this.KEY22_Button = new System.Windows.Forms.Button();
|
||||
this.KEY23_Button = new System.Windows.Forms.Button();
|
||||
this.KEY24_Button = new System.Windows.Forms.Button();
|
||||
this.KEY25_Button = new System.Windows.Forms.Button();
|
||||
this.KEY26_Button = new System.Windows.Forms.Button();
|
||||
this.SHIFT_Button = new System.Windows.Forms.Button();
|
||||
this.BACKSPACE_Button = new System.Windows.Forms.Button();
|
||||
this.OK_Button = new System.Windows.Forms.Button();
|
||||
this.SPACE_Button = new System.Windows.Forms.Button();
|
||||
this.CANCEL_Button = new System.Windows.Forms.Button();
|
||||
this.Display = new System.Windows.Forms.MaskedTextBox();
|
||||
this.CLEAR_Button = new System.Windows.Forms.Button();
|
||||
this.SIMBOL_Button = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// NUM0_Button
|
||||
//
|
||||
this.NUM0_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM0_Button.Location = new System.Drawing.Point(560, 116);
|
||||
this.NUM0_Button.Name = "NUM0_Button";
|
||||
this.NUM0_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM0_Button.TabIndex = 9;
|
||||
this.NUM0_Button.Text = "0";
|
||||
this.NUM0_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM1_Button
|
||||
//
|
||||
this.NUM1_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM1_Button.Location = new System.Drawing.Point(11, 116);
|
||||
this.NUM1_Button.Name = "NUM1_Button";
|
||||
this.NUM1_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM1_Button.TabIndex = 0;
|
||||
this.NUM1_Button.Text = "1";
|
||||
this.NUM1_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM2_Button
|
||||
//
|
||||
this.NUM2_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM2_Button.Location = new System.Drawing.Point(72, 116);
|
||||
this.NUM2_Button.Name = "NUM2_Button";
|
||||
this.NUM2_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM2_Button.TabIndex = 1;
|
||||
this.NUM2_Button.Text = "2";
|
||||
this.NUM2_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM3_Button
|
||||
//
|
||||
this.NUM3_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM3_Button.Location = new System.Drawing.Point(133, 116);
|
||||
this.NUM3_Button.Name = "NUM3_Button";
|
||||
this.NUM3_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM3_Button.TabIndex = 2;
|
||||
this.NUM3_Button.Text = "3";
|
||||
this.NUM3_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM5_Button
|
||||
//
|
||||
this.NUM5_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM5_Button.Location = new System.Drawing.Point(255, 116);
|
||||
this.NUM5_Button.Name = "NUM5_Button";
|
||||
this.NUM5_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM5_Button.TabIndex = 4;
|
||||
this.NUM5_Button.Text = "5";
|
||||
this.NUM5_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM4_Button
|
||||
//
|
||||
this.NUM4_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM4_Button.Location = new System.Drawing.Point(194, 116);
|
||||
this.NUM4_Button.Name = "NUM4_Button";
|
||||
this.NUM4_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM4_Button.TabIndex = 3;
|
||||
this.NUM4_Button.Text = "4";
|
||||
this.NUM4_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM6_Button
|
||||
//
|
||||
this.NUM6_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM6_Button.Location = new System.Drawing.Point(316, 116);
|
||||
this.NUM6_Button.Name = "NUM6_Button";
|
||||
this.NUM6_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM6_Button.TabIndex = 5;
|
||||
this.NUM6_Button.Text = "6";
|
||||
this.NUM6_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM7_Button
|
||||
//
|
||||
this.NUM7_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM7_Button.Location = new System.Drawing.Point(377, 116);
|
||||
this.NUM7_Button.Name = "NUM7_Button";
|
||||
this.NUM7_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM7_Button.TabIndex = 6;
|
||||
this.NUM7_Button.Text = "7";
|
||||
this.NUM7_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM8_Button
|
||||
//
|
||||
this.NUM8_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM8_Button.Location = new System.Drawing.Point(438, 116);
|
||||
this.NUM8_Button.Name = "NUM8_Button";
|
||||
this.NUM8_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM8_Button.TabIndex = 7;
|
||||
this.NUM8_Button.Text = "8";
|
||||
this.NUM8_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM9_Button
|
||||
//
|
||||
this.NUM9_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM9_Button.Location = new System.Drawing.Point(499, 116);
|
||||
this.NUM9_Button.Name = "NUM9_Button";
|
||||
this.NUM9_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM9_Button.TabIndex = 8;
|
||||
this.NUM9_Button.Text = "9";
|
||||
this.NUM9_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY1_Button
|
||||
//
|
||||
this.KEY1_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY1_Button.Location = new System.Drawing.Point(499, 184);
|
||||
this.KEY1_Button.Name = "KEY1_Button";
|
||||
this.KEY1_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY1_Button.TabIndex = 18;
|
||||
this.KEY1_Button.Text = "o";
|
||||
this.KEY1_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY2_Button
|
||||
//
|
||||
this.KEY2_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY2_Button.Location = new System.Drawing.Point(560, 184);
|
||||
this.KEY2_Button.Name = "KEY2_Button";
|
||||
this.KEY2_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY2_Button.TabIndex = 19;
|
||||
this.KEY2_Button.Text = "p";
|
||||
this.KEY2_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY3_Button
|
||||
//
|
||||
this.KEY3_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY3_Button.Location = new System.Drawing.Point(438, 184);
|
||||
this.KEY3_Button.Name = "KEY3_Button";
|
||||
this.KEY3_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY3_Button.TabIndex = 17;
|
||||
this.KEY3_Button.Text = "i";
|
||||
this.KEY3_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY4_Button
|
||||
//
|
||||
this.KEY4_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY4_Button.Location = new System.Drawing.Point(377, 184);
|
||||
this.KEY4_Button.Name = "KEY4_Button";
|
||||
this.KEY4_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY4_Button.TabIndex = 16;
|
||||
this.KEY4_Button.Text = "u";
|
||||
this.KEY4_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY5_Button
|
||||
//
|
||||
this.KEY5_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY5_Button.Location = new System.Drawing.Point(316, 184);
|
||||
this.KEY5_Button.Name = "KEY5_Button";
|
||||
this.KEY5_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY5_Button.TabIndex = 15;
|
||||
this.KEY5_Button.Text = "y";
|
||||
this.KEY5_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY6_Button
|
||||
//
|
||||
this.KEY6_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY6_Button.Location = new System.Drawing.Point(194, 184);
|
||||
this.KEY6_Button.Name = "KEY6_Button";
|
||||
this.KEY6_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY6_Button.TabIndex = 13;
|
||||
this.KEY6_Button.Text = "r";
|
||||
this.KEY6_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY7_Button
|
||||
//
|
||||
this.KEY7_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY7_Button.Location = new System.Drawing.Point(255, 184);
|
||||
this.KEY7_Button.Name = "KEY7_Button";
|
||||
this.KEY7_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY7_Button.TabIndex = 14;
|
||||
this.KEY7_Button.Text = "t";
|
||||
this.KEY7_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY8_Button
|
||||
//
|
||||
this.KEY8_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY8_Button.Location = new System.Drawing.Point(133, 184);
|
||||
this.KEY8_Button.Name = "KEY8_Button";
|
||||
this.KEY8_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY8_Button.TabIndex = 12;
|
||||
this.KEY8_Button.Text = "e";
|
||||
this.KEY8_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY9_Button
|
||||
//
|
||||
this.KEY9_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY9_Button.Location = new System.Drawing.Point(72, 184);
|
||||
this.KEY9_Button.Name = "KEY9_Button";
|
||||
this.KEY9_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY9_Button.TabIndex = 11;
|
||||
this.KEY9_Button.Text = "w";
|
||||
this.KEY9_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY10_Button
|
||||
//
|
||||
this.KEY10_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY10_Button.Location = new System.Drawing.Point(11, 184);
|
||||
this.KEY10_Button.Name = "KEY10_Button";
|
||||
this.KEY10_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY10_Button.TabIndex = 10;
|
||||
this.KEY10_Button.Text = "q";
|
||||
this.KEY10_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY11_Button
|
||||
//
|
||||
this.KEY11_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY11_Button.Location = new System.Drawing.Point(26, 306);
|
||||
this.KEY11_Button.Name = "KEY11_Button";
|
||||
this.KEY11_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY11_Button.TabIndex = 30;
|
||||
this.KEY11_Button.Text = "z";
|
||||
this.KEY11_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY12_Button
|
||||
//
|
||||
this.KEY12_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY12_Button.Location = new System.Drawing.Point(468, 245);
|
||||
this.KEY12_Button.Name = "KEY12_Button";
|
||||
this.KEY12_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY12_Button.TabIndex = 28;
|
||||
this.KEY12_Button.Text = "k";
|
||||
this.KEY12_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY13_Button
|
||||
//
|
||||
this.KEY13_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY13_Button.Location = new System.Drawing.Point(529, 245);
|
||||
this.KEY13_Button.Name = "KEY13_Button";
|
||||
this.KEY13_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY13_Button.TabIndex = 29;
|
||||
this.KEY13_Button.Text = "l";
|
||||
this.KEY13_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY14_Button
|
||||
//
|
||||
this.KEY14_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY14_Button.Location = new System.Drawing.Point(407, 245);
|
||||
this.KEY14_Button.Name = "KEY14_Button";
|
||||
this.KEY14_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY14_Button.TabIndex = 27;
|
||||
this.KEY14_Button.Text = "j";
|
||||
this.KEY14_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY15_Button
|
||||
//
|
||||
this.KEY15_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY15_Button.Location = new System.Drawing.Point(346, 245);
|
||||
this.KEY15_Button.Name = "KEY15_Button";
|
||||
this.KEY15_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY15_Button.TabIndex = 26;
|
||||
this.KEY15_Button.Text = "h";
|
||||
this.KEY15_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY16_Button
|
||||
//
|
||||
this.KEY16_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY16_Button.Location = new System.Drawing.Point(285, 245);
|
||||
this.KEY16_Button.Name = "KEY16_Button";
|
||||
this.KEY16_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY16_Button.TabIndex = 25;
|
||||
this.KEY16_Button.Text = "g";
|
||||
this.KEY16_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY17_Button
|
||||
//
|
||||
this.KEY17_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY17_Button.Location = new System.Drawing.Point(163, 245);
|
||||
this.KEY17_Button.Name = "KEY17_Button";
|
||||
this.KEY17_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY17_Button.TabIndex = 23;
|
||||
this.KEY17_Button.Text = "d";
|
||||
this.KEY17_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY18_Button
|
||||
//
|
||||
this.KEY18_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY18_Button.Location = new System.Drawing.Point(224, 245);
|
||||
this.KEY18_Button.Name = "KEY18_Button";
|
||||
this.KEY18_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY18_Button.TabIndex = 24;
|
||||
this.KEY18_Button.Text = "f";
|
||||
this.KEY18_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY19_Button
|
||||
//
|
||||
this.KEY19_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY19_Button.Location = new System.Drawing.Point(102, 245);
|
||||
this.KEY19_Button.Name = "KEY19_Button";
|
||||
this.KEY19_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY19_Button.TabIndex = 22;
|
||||
this.KEY19_Button.Text = "s";
|
||||
this.KEY19_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY20_Button
|
||||
//
|
||||
this.KEY20_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY20_Button.Location = new System.Drawing.Point(41, 245);
|
||||
this.KEY20_Button.Name = "KEY20_Button";
|
||||
this.KEY20_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY20_Button.TabIndex = 21;
|
||||
this.KEY20_Button.Text = "a";
|
||||
this.KEY20_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY21_Button
|
||||
//
|
||||
this.KEY21_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY21_Button.Location = new System.Drawing.Point(392, 306);
|
||||
this.KEY21_Button.Name = "KEY21_Button";
|
||||
this.KEY21_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY21_Button.TabIndex = 36;
|
||||
this.KEY21_Button.Text = "m";
|
||||
this.KEY21_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY22_Button
|
||||
//
|
||||
this.KEY22_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY22_Button.Location = new System.Drawing.Point(331, 306);
|
||||
this.KEY22_Button.Name = "KEY22_Button";
|
||||
this.KEY22_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY22_Button.TabIndex = 35;
|
||||
this.KEY22_Button.Text = "n";
|
||||
this.KEY22_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY23_Button
|
||||
//
|
||||
this.KEY23_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY23_Button.Location = new System.Drawing.Point(209, 306);
|
||||
this.KEY23_Button.Name = "KEY23_Button";
|
||||
this.KEY23_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY23_Button.TabIndex = 33;
|
||||
this.KEY23_Button.Text = "v";
|
||||
this.KEY23_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY24_Button
|
||||
//
|
||||
this.KEY24_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY24_Button.Location = new System.Drawing.Point(270, 306);
|
||||
this.KEY24_Button.Name = "KEY24_Button";
|
||||
this.KEY24_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY24_Button.TabIndex = 34;
|
||||
this.KEY24_Button.Text = "b";
|
||||
this.KEY24_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY25_Button
|
||||
//
|
||||
this.KEY25_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY25_Button.Location = new System.Drawing.Point(148, 306);
|
||||
this.KEY25_Button.Name = "KEY25_Button";
|
||||
this.KEY25_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY25_Button.TabIndex = 32;
|
||||
this.KEY25_Button.Text = "c";
|
||||
this.KEY25_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// KEY26_Button
|
||||
//
|
||||
this.KEY26_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KEY26_Button.Location = new System.Drawing.Point(87, 306);
|
||||
this.KEY26_Button.Name = "KEY26_Button";
|
||||
this.KEY26_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.KEY26_Button.TabIndex = 31;
|
||||
this.KEY26_Button.Text = "x";
|
||||
this.KEY26_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// SHIFT_Button
|
||||
//
|
||||
this.SHIFT_Button.Font = new System.Drawing.Font("Symbol", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.SHIFT_Button.Location = new System.Drawing.Point(11, 374);
|
||||
this.SHIFT_Button.Name = "SHIFT_Button";
|
||||
this.SHIFT_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.SHIFT_Button.TabIndex = 20;
|
||||
this.SHIFT_Button.Text = "T";
|
||||
this.SHIFT_Button.UseVisualStyleBackColor = true;
|
||||
this.SHIFT_Button.Click += new System.EventHandler(this.SHIFT_Button_Click);
|
||||
//
|
||||
// BACKSPACE_Button
|
||||
//
|
||||
this.BACKSPACE_Button.Font = new System.Drawing.Font("Symbol", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.BACKSPACE_Button.Location = new System.Drawing.Point(514, 306);
|
||||
this.BACKSPACE_Button.Name = "BACKSPACE_Button";
|
||||
this.BACKSPACE_Button.Size = new System.Drawing.Size(93, 62);
|
||||
this.BACKSPACE_Button.TabIndex = 38;
|
||||
this.BACKSPACE_Button.Text = "<-";
|
||||
this.BACKSPACE_Button.UseVisualStyleBackColor = true;
|
||||
this.BACKSPACE_Button.Click += new System.EventHandler(this.BACKSPACE_Button_Click);
|
||||
//
|
||||
// OK_Button
|
||||
//
|
||||
this.OK_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.OK_Button.Image = global::IPadLibrary.Properties.Resources.OK;
|
||||
this.OK_Button.Location = new System.Drawing.Point(319, 404);
|
||||
this.OK_Button.Name = "OK_Button";
|
||||
this.OK_Button.Size = new System.Drawing.Size(123, 62);
|
||||
this.OK_Button.TabIndex = 39;
|
||||
this.OK_Button.UseVisualStyleBackColor = true;
|
||||
this.OK_Button.Click += new System.EventHandler(this.OK_Button_Click);
|
||||
//
|
||||
// SPACE_Button
|
||||
//
|
||||
this.SPACE_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.SPACE_Button.Location = new System.Drawing.Point(453, 306);
|
||||
this.SPACE_Button.Name = "SPACE_Button";
|
||||
this.SPACE_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.SPACE_Button.TabIndex = 37;
|
||||
this.SPACE_Button.Text = " ";
|
||||
this.SPACE_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// CANCEL_Button
|
||||
//
|
||||
this.CANCEL_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.CANCEL_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.CANCEL_Button.Image = global::IPadLibrary.Properties.Resources.Delete;
|
||||
this.CANCEL_Button.Location = new System.Drawing.Point(472, 404);
|
||||
this.CANCEL_Button.Name = "CANCEL_Button";
|
||||
this.CANCEL_Button.Size = new System.Drawing.Size(123, 62);
|
||||
this.CANCEL_Button.TabIndex = 40;
|
||||
this.CANCEL_Button.UseVisualStyleBackColor = true;
|
||||
this.CANCEL_Button.Click += new System.EventHandler(this.CANCEL_Button_Click);
|
||||
//
|
||||
// Display
|
||||
//
|
||||
this.Display.AsciiOnly = true;
|
||||
this.Display.BackColor = System.Drawing.Color.White;
|
||||
this.Display.CausesValidation = false;
|
||||
this.Display.Font = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Display.Location = new System.Drawing.Point(34, 36);
|
||||
this.Display.Name = "Display";
|
||||
this.Display.PromptChar = '*';
|
||||
this.Display.ReadOnly = true;
|
||||
this.Display.Size = new System.Drawing.Size(573, 51);
|
||||
this.Display.TabIndex = 41;
|
||||
this.Display.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
//
|
||||
// CLEAR_Button
|
||||
//
|
||||
this.CLEAR_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.CLEAR_Button.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
|
||||
this.CLEAR_Button.Location = new System.Drawing.Point(102, 374);
|
||||
this.CLEAR_Button.Name = "CLEAR_Button";
|
||||
this.CLEAR_Button.Size = new System.Drawing.Size(93, 62);
|
||||
this.CLEAR_Button.TabIndex = 42;
|
||||
this.CLEAR_Button.Text = "CE";
|
||||
this.CLEAR_Button.UseVisualStyleBackColor = true;
|
||||
this.CLEAR_Button.Click += new System.EventHandler(this.CLEAR_Button_Click);
|
||||
//
|
||||
// SIMBOL_Button
|
||||
//
|
||||
this.SIMBOL_Button.Font = new System.Drawing.Font("Symbol", 21.73585F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
|
||||
this.SIMBOL_Button.Location = new System.Drawing.Point(224, 375);
|
||||
this.SIMBOL_Button.Name = "SIMBOL_Button";
|
||||
this.SIMBOL_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.SIMBOL_Button.TabIndex = 43;
|
||||
this.SIMBOL_Button.Text = "&&";
|
||||
this.SIMBOL_Button.UseVisualStyleBackColor = true;
|
||||
this.SIMBOL_Button.Click += new System.EventHandler(this.SIMBOL_Button_Click);
|
||||
//
|
||||
// KeyboradControl
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.LightSlateGray;
|
||||
this.CancelButton = this.CANCEL_Button;
|
||||
this.ClientSize = new System.Drawing.Size(640, 480);
|
||||
this.Controls.Add(this.SIMBOL_Button);
|
||||
this.Controls.Add(this.CLEAR_Button);
|
||||
this.Controls.Add(this.Display);
|
||||
this.Controls.Add(this.CANCEL_Button);
|
||||
this.Controls.Add(this.BACKSPACE_Button);
|
||||
this.Controls.Add(this.OK_Button);
|
||||
this.Controls.Add(this.SPACE_Button);
|
||||
this.Controls.Add(this.KEY21_Button);
|
||||
this.Controls.Add(this.KEY22_Button);
|
||||
this.Controls.Add(this.KEY23_Button);
|
||||
this.Controls.Add(this.KEY24_Button);
|
||||
this.Controls.Add(this.KEY25_Button);
|
||||
this.Controls.Add(this.KEY26_Button);
|
||||
this.Controls.Add(this.KEY11_Button);
|
||||
this.Controls.Add(this.KEY12_Button);
|
||||
this.Controls.Add(this.KEY13_Button);
|
||||
this.Controls.Add(this.KEY14_Button);
|
||||
this.Controls.Add(this.KEY15_Button);
|
||||
this.Controls.Add(this.KEY16_Button);
|
||||
this.Controls.Add(this.KEY17_Button);
|
||||
this.Controls.Add(this.KEY18_Button);
|
||||
this.Controls.Add(this.KEY19_Button);
|
||||
this.Controls.Add(this.KEY20_Button);
|
||||
this.Controls.Add(this.SHIFT_Button);
|
||||
this.Controls.Add(this.KEY1_Button);
|
||||
this.Controls.Add(this.KEY2_Button);
|
||||
this.Controls.Add(this.KEY3_Button);
|
||||
this.Controls.Add(this.KEY4_Button);
|
||||
this.Controls.Add(this.KEY5_Button);
|
||||
this.Controls.Add(this.KEY6_Button);
|
||||
this.Controls.Add(this.KEY7_Button);
|
||||
this.Controls.Add(this.KEY8_Button);
|
||||
this.Controls.Add(this.KEY9_Button);
|
||||
this.Controls.Add(this.KEY10_Button);
|
||||
this.Controls.Add(this.NUM9_Button);
|
||||
this.Controls.Add(this.NUM0_Button);
|
||||
this.Controls.Add(this.NUM8_Button);
|
||||
this.Controls.Add(this.NUM7_Button);
|
||||
this.Controls.Add(this.NUM6_Button);
|
||||
this.Controls.Add(this.NUM4_Button);
|
||||
this.Controls.Add(this.NUM5_Button);
|
||||
this.Controls.Add(this.NUM3_Button);
|
||||
this.Controls.Add(this.NUM2_Button);
|
||||
this.Controls.Add(this.NUM1_Button);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.KeyPreview = true;
|
||||
this.Name = "KeyboradControl";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.KeyboradControl_Paint);
|
||||
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.KeyboradControl_KeyPress);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button NUM0_Button;
|
||||
private System.Windows.Forms.Button NUM1_Button;
|
||||
private System.Windows.Forms.Button NUM2_Button;
|
||||
private System.Windows.Forms.Button NUM3_Button;
|
||||
private System.Windows.Forms.Button NUM5_Button;
|
||||
private System.Windows.Forms.Button NUM4_Button;
|
||||
private System.Windows.Forms.Button NUM6_Button;
|
||||
private System.Windows.Forms.Button NUM7_Button;
|
||||
private System.Windows.Forms.Button NUM8_Button;
|
||||
private System.Windows.Forms.Button NUM9_Button;
|
||||
private System.Windows.Forms.Button KEY1_Button;
|
||||
private System.Windows.Forms.Button KEY2_Button;
|
||||
private System.Windows.Forms.Button KEY3_Button;
|
||||
private System.Windows.Forms.Button KEY4_Button;
|
||||
private System.Windows.Forms.Button KEY5_Button;
|
||||
private System.Windows.Forms.Button KEY6_Button;
|
||||
private System.Windows.Forms.Button KEY7_Button;
|
||||
private System.Windows.Forms.Button KEY8_Button;
|
||||
private System.Windows.Forms.Button KEY9_Button;
|
||||
private System.Windows.Forms.Button KEY10_Button;
|
||||
private System.Windows.Forms.Button KEY12_Button;
|
||||
private System.Windows.Forms.Button KEY13_Button;
|
||||
private System.Windows.Forms.Button KEY14_Button;
|
||||
private System.Windows.Forms.Button KEY15_Button;
|
||||
private System.Windows.Forms.Button KEY16_Button;
|
||||
private System.Windows.Forms.Button KEY17_Button;
|
||||
private System.Windows.Forms.Button KEY18_Button;
|
||||
private System.Windows.Forms.Button KEY19_Button;
|
||||
private System.Windows.Forms.Button KEY20_Button;
|
||||
private System.Windows.Forms.Button KEY21_Button;
|
||||
private System.Windows.Forms.Button KEY22_Button;
|
||||
private System.Windows.Forms.Button KEY23_Button;
|
||||
private System.Windows.Forms.Button KEY24_Button;
|
||||
private System.Windows.Forms.Button KEY25_Button;
|
||||
private System.Windows.Forms.Button KEY26_Button;
|
||||
private System.Windows.Forms.Button KEY11_Button;
|
||||
private System.Windows.Forms.Button SHIFT_Button;
|
||||
private System.Windows.Forms.Button BACKSPACE_Button;
|
||||
private System.Windows.Forms.Button SPACE_Button;
|
||||
private System.Windows.Forms.Button OK_Button;
|
||||
private System.Windows.Forms.Button CANCEL_Button;
|
||||
private System.Windows.Forms.MaskedTextBox Display;
|
||||
private System.Windows.Forms.Button CLEAR_Button;
|
||||
private System.Windows.Forms.Button SIMBOL_Button;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,204 @@
|
||||
/***************************************************/
|
||||
/***************************************************/
|
||||
|
||||
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Keyboard component, instantiate the Keyboard Form.
|
||||
/// </summary>
|
||||
partial class KeyboradControl {
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Constant & Static Variables
|
||||
/*******************************************************************************************/
|
||||
#region Constant & Static Variables
|
||||
|
||||
private const int MAX_DISPLAY_CHAR = 250; // Maximun number of char to text
|
||||
private const char SHIFT_CHAR = '\u00ad'; // The simbol ^
|
||||
private const char BACKSPACE_CHAR = '\u00ac'; // The simbol <--
|
||||
private const string SIMBOL_CHARS = "~'().,_\\-*"; // Symbol key sequence
|
||||
private const string NUMBER_CHARS = "0123456789"; // Number key sequence
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Public Variables Definition
|
||||
/*******************************************************************************************/
|
||||
#region Public Variables Definiton
|
||||
// ...
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Private Variables Definition
|
||||
/*******************************************************************************************/
|
||||
#region Private Variables Definition
|
||||
|
||||
private Control owner; ///< The owner of Form Dialog
|
||||
private Button[] buttonGroupNumbers; ///< Used to manage all group of Nubers buttons
|
||||
private Button[] buttonGroupKeys; ///< Used to manage all group of Keys buttons
|
||||
private bool shift_pressed; ///< Monitor the Shift-Key pression
|
||||
private bool simbol_pressed; ///< Monitor the Simbol-Key pression
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Public Methods Definition
|
||||
/*******************************************************************************************/
|
||||
#region Public Methods Definition
|
||||
|
||||
//------------------------------------ DIALOG SECTION -------------------------------------//
|
||||
|
||||
/// <summary>
|
||||
/// Show this dialog, in modal mode.
|
||||
/// </summary>
|
||||
/// <param name="owner">Any object that implement <c>IWin32Window</c> that is the fisrt level window owner of the modal dialog.</param>
|
||||
/// <returns>One value of <c>DialogResult</c>.</returns>
|
||||
public DialogResult ShowDialog(Control owner) {
|
||||
this.owner = owner;
|
||||
return base.ShowDialog(owner);
|
||||
}
|
||||
|
||||
//------------------------------------ GETS SECTION ---------------------------------------//
|
||||
|
||||
/// <summary>
|
||||
/// Get/Set the text typed.
|
||||
/// </summary>
|
||||
public override string Text {
|
||||
get {
|
||||
if ( Display != null )
|
||||
return Display.Text;
|
||||
else
|
||||
return "";
|
||||
}
|
||||
set {
|
||||
if ( Display != null ) {
|
||||
Display.Text = value.Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Private Methods Definition
|
||||
/*******************************************************************************************/
|
||||
#region Private Methods Definition
|
||||
|
||||
//------------------------------------- INIT SECTION --------------------------------------//
|
||||
|
||||
/// <summary>
|
||||
/// Initialize all component of this Form.
|
||||
/// </summary>
|
||||
private void InizializeLocalData() {
|
||||
|
||||
shift_pressed = false;
|
||||
simbol_pressed = false;
|
||||
SHIFT_Button.Text = SHIFT_CHAR.ToString(); // Set to correct ASCII char.
|
||||
BACKSPACE_Button.Text = BACKSPACE_CHAR.ToString(); // Set to correct ASCII char.
|
||||
|
||||
buttonGroupNumbers = new Button[] {
|
||||
NUM0_Button, NUM1_Button, NUM2_Button, NUM3_Button, NUM5_Button,
|
||||
NUM4_Button, NUM6_Button, NUM7_Button, NUM8_Button, NUM9_Button
|
||||
};
|
||||
setEventClick(buttonGroupNumbers);
|
||||
|
||||
buttonGroupKeys = new Button[] {
|
||||
KEY1_Button, KEY2_Button, KEY3_Button, KEY4_Button, KEY5_Button,
|
||||
KEY6_Button, KEY7_Button, KEY8_Button, KEY9_Button, KEY10_Button,
|
||||
KEY11_Button, KEY12_Button, KEY13_Button, KEY14_Button, KEY15_Button,
|
||||
KEY16_Button, KEY17_Button, KEY18_Button, KEY19_Button, KEY20_Button,
|
||||
KEY21_Button, KEY22_Button, KEY23_Button, KEY24_Button, KEY25_Button,
|
||||
KEY26_Button
|
||||
};
|
||||
setEventClick(buttonGroupKeys);
|
||||
setEventClick(SPACE_Button);
|
||||
this.Select(); // Default selceted button
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add <c>Key_Button_Click</c> Event to button.
|
||||
/// </summary>
|
||||
/// <param name="b">The <c>Button</c> the implement a click event.</param>
|
||||
private void setEventClick(Button b) {
|
||||
|
||||
b.Click += new System.EventHandler(KEY_Button_Click);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add <c>Key_Button_Click</c> Event to buttons group.
|
||||
/// </summary>
|
||||
/// <param name="group"></param>
|
||||
private void setEventClick(Button[] group) {
|
||||
|
||||
foreach ( Button b in group )
|
||||
b.Click += new System.EventHandler(KEY_Button_Click);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Change all keys char in UpperCase.
|
||||
/// </summary>
|
||||
private void toUpperChase() {
|
||||
|
||||
foreach ( Button b in buttonGroupKeys )
|
||||
b.Text = b.Text.ToUpper();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Change all keys char in LowerCase.
|
||||
/// </summary>
|
||||
private void toLowerChase() {
|
||||
|
||||
foreach ( Button b in buttonGroupKeys )
|
||||
b.Text = b.Text.ToLower();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Switch all Key numbers in symbol mode.
|
||||
/// </summary>
|
||||
private void switchToSymbol() {
|
||||
int idx = 0;
|
||||
foreach ( Button b in buttonGroupNumbers )
|
||||
b.Text = SIMBOL_CHARS[idx++].ToString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Switch all Key numbers in symbol mode.
|
||||
/// </summary>
|
||||
private void switchToNumber() {
|
||||
int idx = 0;
|
||||
foreach ( Button b in buttonGroupNumbers )
|
||||
b.Text = NUMBER_CHARS[idx++].ToString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
} // end class
|
||||
|
||||
} // end namespace
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
/***************************************************/
|
||||
// __ ______
|
||||
//
|
||||
/***************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
public partial class KeyboradControl : Form {
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Constructors and Initialization
|
||||
/*******************************************************************************************/
|
||||
#region Public Class Constructors
|
||||
|
||||
|
||||
public KeyboradControl() {
|
||||
|
||||
InitializeComponent(); // This is for the designer (not edit)
|
||||
InizializeLocalData(); // This is for local data private/public
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Form Events
|
||||
/*******************************************************************************************/
|
||||
#region Form Events
|
||||
|
||||
|
||||
private void SHIFT_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
shift_pressed = !shift_pressed;
|
||||
if ( shift_pressed ) {
|
||||
SHIFT_Button.FlatStyle = FlatStyle.Standard;
|
||||
SHIFT_Button.BackColor = ProfessionalColors.ButtonPressedHighlight;
|
||||
toUpperChase();
|
||||
}
|
||||
else {
|
||||
SHIFT_Button.FlatStyle = FlatStyle.System;
|
||||
SHIFT_Button.BackColor = Button.DefaultBackColor;
|
||||
toLowerChase();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void SIMBOL_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
simbol_pressed = !simbol_pressed;
|
||||
if (simbol_pressed) {
|
||||
SIMBOL_Button.FlatStyle = FlatStyle.Standard;
|
||||
SIMBOL_Button.BackColor = ProfessionalColors.ButtonPressedHighlight;
|
||||
switchToSymbol();
|
||||
}
|
||||
else {
|
||||
SIMBOL_Button.FlatStyle = FlatStyle.System;
|
||||
SIMBOL_Button.BackColor = Button.DefaultBackColor;
|
||||
switchToNumber();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void KEY_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
if (Display.Text.Length < MAX_DISPLAY_CHAR) { // If not reach the maximus text length
|
||||
Display.Text += ((Button)sender).Text; // Insert the char into text line
|
||||
Display.SelectionStart = Display.TextLength; // Allign the string on right
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void BACKSPACE_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
int len;
|
||||
if ((len = Display.Text.Length) > 0) { // If there is somethig to delete
|
||||
Display.Text = Display.Text.Remove(len - 1); // Remove last char (right side)
|
||||
Display.SelectionStart = Display.TextLength; // Allign the string on right
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void OK_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void CANCEL_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void CLEAR_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
Display.Text = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Used to drawing the Form borders only.
|
||||
/// </summary>
|
||||
private void KeyboradControl_Paint(object sender, PaintEventArgs e) {
|
||||
|
||||
GeneralLibrary.DrawFormBorder(sender, e);
|
||||
}
|
||||
|
||||
|
||||
private void KeyboradControl_KeyPress(object sender, KeyPressEventArgs e) {
|
||||
|
||||
char ch = e.KeyChar;
|
||||
int len = Display.Text.Length;
|
||||
// If there is somethig to delete
|
||||
if (len > 0 && ch == '\b' ) {
|
||||
Display.Text = Display.Text.Remove(len - 1); // Remove last char (right side)
|
||||
} else
|
||||
if (Display.Text.Length < MAX_DISPLAY_CHAR) {
|
||||
Display.Text += ch.ToString(); // Insert the char into text line
|
||||
}
|
||||
Display.SelectionStart = Display.TextLength; // Allign the string on right
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
} // end class
|
||||
|
||||
} // end namespace
|
||||
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
+301
@@ -0,0 +1,301 @@
|
||||
/***************************************************/
|
||||
// __ ______
|
||||
//
|
||||
/***************************************************/
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
partial class NumericPad {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing) {
|
||||
if ( disposing && (components != null) ) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.NUM0_Button = new System.Windows.Forms.Button();
|
||||
this.NUM1_Button = new System.Windows.Forms.Button();
|
||||
this.NUM2_Button = new System.Windows.Forms.Button();
|
||||
this.NUM3_Button = new System.Windows.Forms.Button();
|
||||
this.NUM5_Button = new System.Windows.Forms.Button();
|
||||
this.NUM4_Button = new System.Windows.Forms.Button();
|
||||
this.NUM6_Button = new System.Windows.Forms.Button();
|
||||
this.NUM7_Button = new System.Windows.Forms.Button();
|
||||
this.NUM8_Button = new System.Windows.Forms.Button();
|
||||
this.NUM9_Button = new System.Windows.Forms.Button();
|
||||
this.BACKSPACE_Button = new System.Windows.Forms.Button();
|
||||
this.OK_Button = new System.Windows.Forms.Button();
|
||||
this.DOT_Button = new System.Windows.Forms.Button();
|
||||
this.CANCEL_Button = new System.Windows.Forms.Button();
|
||||
this.Display = new System.Windows.Forms.MaskedTextBox();
|
||||
this.SIGN_Button = new System.Windows.Forms.Button();
|
||||
this.CE_Button = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// NUM0_Button
|
||||
//
|
||||
this.NUM0_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM0_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM0_Button.Location = new System.Drawing.Point(12, 323);
|
||||
this.NUM0_Button.Name = "NUM0_Button";
|
||||
this.NUM0_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM0_Button.TabIndex = 9;
|
||||
this.NUM0_Button.Text = "0";
|
||||
this.NUM0_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM1_Button
|
||||
//
|
||||
this.NUM1_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM1_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM1_Button.Location = new System.Drawing.Point(12, 262);
|
||||
this.NUM1_Button.Name = "NUM1_Button";
|
||||
this.NUM1_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM1_Button.TabIndex = 0;
|
||||
this.NUM1_Button.Text = "1";
|
||||
this.NUM1_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM2_Button
|
||||
//
|
||||
this.NUM2_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM2_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM2_Button.Location = new System.Drawing.Point(73, 262);
|
||||
this.NUM2_Button.Name = "NUM2_Button";
|
||||
this.NUM2_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM2_Button.TabIndex = 1;
|
||||
this.NUM2_Button.Text = "2";
|
||||
this.NUM2_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM3_Button
|
||||
//
|
||||
this.NUM3_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM3_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM3_Button.Location = new System.Drawing.Point(134, 262);
|
||||
this.NUM3_Button.Name = "NUM3_Button";
|
||||
this.NUM3_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM3_Button.TabIndex = 2;
|
||||
this.NUM3_Button.Text = "3";
|
||||
this.NUM3_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM5_Button
|
||||
//
|
||||
this.NUM5_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM5_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM5_Button.Location = new System.Drawing.Point(73, 201);
|
||||
this.NUM5_Button.Name = "NUM5_Button";
|
||||
this.NUM5_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM5_Button.TabIndex = 4;
|
||||
this.NUM5_Button.Text = "5";
|
||||
this.NUM5_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM4_Button
|
||||
//
|
||||
this.NUM4_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM4_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM4_Button.Location = new System.Drawing.Point(12, 201);
|
||||
this.NUM4_Button.Name = "NUM4_Button";
|
||||
this.NUM4_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM4_Button.TabIndex = 3;
|
||||
this.NUM4_Button.Text = "4";
|
||||
this.NUM4_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM6_Button
|
||||
//
|
||||
this.NUM6_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM6_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM6_Button.Location = new System.Drawing.Point(134, 201);
|
||||
this.NUM6_Button.Name = "NUM6_Button";
|
||||
this.NUM6_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM6_Button.TabIndex = 5;
|
||||
this.NUM6_Button.Text = "6";
|
||||
this.NUM6_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM7_Button
|
||||
//
|
||||
this.NUM7_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM7_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM7_Button.Location = new System.Drawing.Point(12, 140);
|
||||
this.NUM7_Button.Name = "NUM7_Button";
|
||||
this.NUM7_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM7_Button.TabIndex = 6;
|
||||
this.NUM7_Button.Text = "7";
|
||||
this.NUM7_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM8_Button
|
||||
//
|
||||
this.NUM8_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM8_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM8_Button.Location = new System.Drawing.Point(73, 140);
|
||||
this.NUM8_Button.Name = "NUM8_Button";
|
||||
this.NUM8_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM8_Button.TabIndex = 7;
|
||||
this.NUM8_Button.Text = "8";
|
||||
this.NUM8_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// NUM9_Button
|
||||
//
|
||||
this.NUM9_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUM9_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.NUM9_Button.Location = new System.Drawing.Point(134, 140);
|
||||
this.NUM9_Button.Name = "NUM9_Button";
|
||||
this.NUM9_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.NUM9_Button.TabIndex = 8;
|
||||
this.NUM9_Button.Text = "9";
|
||||
this.NUM9_Button.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// BACKSPACE_Button
|
||||
//
|
||||
this.BACKSPACE_Button.Font = new System.Drawing.Font("Symbol", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.BACKSPACE_Button.ForeColor = System.Drawing.Color.Red;
|
||||
this.BACKSPACE_Button.Location = new System.Drawing.Point(12, 72);
|
||||
this.BACKSPACE_Button.Name = "BACKSPACE_Button";
|
||||
this.BACKSPACE_Button.Size = new System.Drawing.Size(90, 62);
|
||||
this.BACKSPACE_Button.TabIndex = 38;
|
||||
this.BACKSPACE_Button.Text = "<-";
|
||||
this.BACKSPACE_Button.UseVisualStyleBackColor = true;
|
||||
this.BACKSPACE_Button.Click += new System.EventHandler(this.BACKSPACE_Button_Click);
|
||||
//
|
||||
// OK_Button
|
||||
//
|
||||
this.OK_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.OK_Button.Image = global::IPadLibrary.Properties.Resources.OK;
|
||||
this.OK_Button.Location = new System.Drawing.Point(12, 406);
|
||||
this.OK_Button.Name = "OK_Button";
|
||||
this.OK_Button.Size = new System.Drawing.Size(78, 62);
|
||||
this.OK_Button.TabIndex = 39;
|
||||
this.OK_Button.UseVisualStyleBackColor = true;
|
||||
this.OK_Button.Click += new System.EventHandler(this.OK_Button_Click);
|
||||
//
|
||||
// DOT_Button
|
||||
//
|
||||
this.DOT_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.DOT_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.DOT_Button.Location = new System.Drawing.Point(134, 323);
|
||||
this.DOT_Button.Name = "DOT_Button";
|
||||
this.DOT_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.DOT_Button.TabIndex = 37;
|
||||
this.DOT_Button.Text = ".";
|
||||
this.DOT_Button.UseVisualStyleBackColor = true;
|
||||
this.DOT_Button.Click += new System.EventHandler(this.DOT_Button_Click);
|
||||
//
|
||||
// CANCEL_Button
|
||||
//
|
||||
this.CANCEL_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.CANCEL_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.CANCEL_Button.Image = global::IPadLibrary.Properties.Resources.Delete;
|
||||
this.CANCEL_Button.Location = new System.Drawing.Point(118, 406);
|
||||
this.CANCEL_Button.Name = "CANCEL_Button";
|
||||
this.CANCEL_Button.Size = new System.Drawing.Size(78, 62);
|
||||
this.CANCEL_Button.TabIndex = 40;
|
||||
this.CANCEL_Button.UseVisualStyleBackColor = true;
|
||||
this.CANCEL_Button.Click += new System.EventHandler(this.CANCEL_Button_Click);
|
||||
//
|
||||
// Display
|
||||
//
|
||||
this.Display.AsciiOnly = true;
|
||||
this.Display.BackColor = System.Drawing.Color.White;
|
||||
this.Display.CausesValidation = false;
|
||||
this.Display.Font = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Display.Location = new System.Drawing.Point(12, 12);
|
||||
this.Display.Name = "Display";
|
||||
this.Display.ReadOnly = true;
|
||||
this.Display.Size = new System.Drawing.Size(184, 47);
|
||||
this.Display.TabIndex = 41;
|
||||
this.Display.Text = "0";
|
||||
this.Display.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||
//
|
||||
// SIGN_Button
|
||||
//
|
||||
this.SIGN_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.SIGN_Button.ForeColor = System.Drawing.Color.Blue;
|
||||
this.SIGN_Button.Location = new System.Drawing.Point(73, 323);
|
||||
this.SIGN_Button.Name = "SIGN_Button";
|
||||
this.SIGN_Button.Size = new System.Drawing.Size(62, 62);
|
||||
this.SIGN_Button.TabIndex = 42;
|
||||
this.SIGN_Button.Text = "+/-";
|
||||
this.SIGN_Button.UseVisualStyleBackColor = true;
|
||||
this.SIGN_Button.Click += new System.EventHandler(this.SIGN_Button_Click);
|
||||
//
|
||||
// CE_Button
|
||||
//
|
||||
this.CE_Button.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.CE_Button.ForeColor = System.Drawing.Color.Red;
|
||||
this.CE_Button.Location = new System.Drawing.Point(106, 72);
|
||||
this.CE_Button.Name = "CE_Button";
|
||||
this.CE_Button.Size = new System.Drawing.Size(90, 62);
|
||||
this.CE_Button.TabIndex = 43;
|
||||
this.CE_Button.Text = "C";
|
||||
this.CE_Button.UseVisualStyleBackColor = true;
|
||||
this.CE_Button.Click += new System.EventHandler(this.CE_Button_Click);
|
||||
//
|
||||
// NumericPad
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.LightSlateGray;
|
||||
this.ClientSize = new System.Drawing.Size(208, 480);
|
||||
this.Controls.Add(this.CE_Button);
|
||||
this.Controls.Add(this.SIGN_Button);
|
||||
this.Controls.Add(this.Display);
|
||||
this.Controls.Add(this.CANCEL_Button);
|
||||
this.Controls.Add(this.BACKSPACE_Button);
|
||||
this.Controls.Add(this.OK_Button);
|
||||
this.Controls.Add(this.DOT_Button);
|
||||
this.Controls.Add(this.NUM9_Button);
|
||||
this.Controls.Add(this.NUM0_Button);
|
||||
this.Controls.Add(this.NUM8_Button);
|
||||
this.Controls.Add(this.NUM7_Button);
|
||||
this.Controls.Add(this.NUM6_Button);
|
||||
this.Controls.Add(this.NUM4_Button);
|
||||
this.Controls.Add(this.NUM5_Button);
|
||||
this.Controls.Add(this.NUM3_Button);
|
||||
this.Controls.Add(this.NUM2_Button);
|
||||
this.Controls.Add(this.NUM1_Button);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "NumericPad";
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.NumericPad_Paint);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button NUM0_Button;
|
||||
private System.Windows.Forms.Button NUM1_Button;
|
||||
private System.Windows.Forms.Button NUM2_Button;
|
||||
private System.Windows.Forms.Button NUM3_Button;
|
||||
private System.Windows.Forms.Button NUM5_Button;
|
||||
private System.Windows.Forms.Button NUM4_Button;
|
||||
private System.Windows.Forms.Button NUM6_Button;
|
||||
private System.Windows.Forms.Button NUM7_Button;
|
||||
private System.Windows.Forms.Button NUM8_Button;
|
||||
private System.Windows.Forms.Button NUM9_Button;
|
||||
private System.Windows.Forms.Button BACKSPACE_Button;
|
||||
private System.Windows.Forms.Button DOT_Button;
|
||||
private System.Windows.Forms.Button OK_Button;
|
||||
private System.Windows.Forms.Button CANCEL_Button;
|
||||
private System.Windows.Forms.MaskedTextBox Display;
|
||||
private System.Windows.Forms.Button SIGN_Button;
|
||||
private System.Windows.Forms.Button CE_Button;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
/***************************************************/
|
||||
// __ ______
|
||||
//
|
||||
/***************************************************/
|
||||
|
||||
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Keypad component, instantiate the Keypad Form.
|
||||
/// </summary>
|
||||
partial class NumericPad {
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Constant & Static Variables
|
||||
/*******************************************************************************************/
|
||||
#region Constant & Static Variables
|
||||
|
||||
private const char BACKSPACE_CHAR = '\u00dc'; ///< The simbol <--
|
||||
private const int MAX_DISPLAY_NUMBERS = 9; ///< Maximun number of char to text
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Public Variables Definition
|
||||
/*******************************************************************************************/
|
||||
#region Public Variables Definiton
|
||||
// ...
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Private Variables Definition
|
||||
/*******************************************************************************************/
|
||||
#region Private Variables Definition
|
||||
|
||||
private Button[] buttonGroupNumbers; ///< Used to manage all group of Keys buttons
|
||||
private Control owner; ///< The owner of Form Dialog
|
||||
private bool dot; ///< Monitor the dot key pression
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Public Methods Definition
|
||||
/*******************************************************************************************/
|
||||
#region Public Methods Definition
|
||||
|
||||
//------------------------------------ DIALOG SECTION -------------------------------------//
|
||||
|
||||
/// <summary>
|
||||
/// Show this dialog, in modal mode.
|
||||
/// </summary>
|
||||
/// <param name="owner">Any object that implement <c>IWin32Window</c> that is the fisrt level window owner of the modal dialog.</param>
|
||||
/// <returns>One value of <c>DialogResult</c>.</returns>
|
||||
public DialogResult ShowDialog(Control owner) {
|
||||
this.owner = owner;
|
||||
return base.ShowDialog(owner);
|
||||
}
|
||||
|
||||
//------------------------------------ GETS SECTION ---------------------------------------//
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get/Set the text typed.
|
||||
/// </summary>
|
||||
public override string Text {
|
||||
get {
|
||||
if ( Display != null )
|
||||
return Display.Text;
|
||||
else
|
||||
return "";
|
||||
}
|
||||
set {
|
||||
if ( Display != null ) {
|
||||
Display.Text = value.Trim();
|
||||
dot = value.IndexOf('.') == -1 ? false : true ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get/Set the password char for input data.
|
||||
/// </summary>
|
||||
public char PasswordChar {
|
||||
get {
|
||||
return Display.PasswordChar;
|
||||
}
|
||||
set {
|
||||
Display.PasswordChar = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Private Methods Definition
|
||||
/*******************************************************************************************/
|
||||
#region Private Methods Definition
|
||||
|
||||
//------------------------------------- INIT SECTION --------------------------------------//
|
||||
|
||||
/// <summary>
|
||||
/// Initialize all component of this Form.
|
||||
/// </summary>
|
||||
private void InizializeLocalData() {
|
||||
|
||||
dot = false;
|
||||
BACKSPACE_Button.Text = BACKSPACE_CHAR.ToString();
|
||||
|
||||
buttonGroupNumbers = new Button[] {
|
||||
NUM0_Button, NUM1_Button, NUM2_Button, NUM3_Button, NUM4_Button,
|
||||
NUM5_Button, NUM6_Button, NUM7_Button, NUM8_Button, NUM9_Button
|
||||
};
|
||||
setEventClick(buttonGroupNumbers);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add <c>Key_Button_Click</c> Event to button.
|
||||
/// </summary>
|
||||
/// <param name="b">The <c>Button</c> the implement a click event.</param>
|
||||
private void setEventClick(Button b) {
|
||||
|
||||
b.Click += new System.EventHandler(KEY_Button_Click);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Add <c>Key_Button_Click</c> Event to buttons group.
|
||||
/// </summary>
|
||||
/// <param name="group"></param>
|
||||
private void setEventClick(Button[] group) {
|
||||
|
||||
foreach ( Button b in group )
|
||||
b.Click += new System.EventHandler(KEY_Button_Click);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
} // end class
|
||||
|
||||
} // end namespace
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
/***************************************************/
|
||||
// __ ______
|
||||
/***************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.Threading;
|
||||
|
||||
|
||||
namespace IPadLibrary.FormsInterfaces {
|
||||
|
||||
|
||||
public partial class NumericPad : Form {
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Constructors and Initialization
|
||||
/*******************************************************************************************/
|
||||
#region Public Class Constructors
|
||||
|
||||
|
||||
public NumericPad(string text) {
|
||||
|
||||
InitializeComponent(); // This is for the designer (not edit)
|
||||
InizializeLocalData(); // This is for local data private/public
|
||||
Display.Text = text.Trim();
|
||||
}
|
||||
|
||||
|
||||
public NumericPad() :
|
||||
this("0") {
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Form Events
|
||||
/*******************************************************************************************/
|
||||
#region Form Events
|
||||
|
||||
|
||||
private void KEY_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
if ( Display.Text.Length >= MAX_DISPLAY_NUMBERS )
|
||||
return;
|
||||
if ( Display.Text == "0" )
|
||||
Display.Text = ((Button) sender).Text;
|
||||
else if ( Display.Text == "-0" )
|
||||
Display.Text = "-" + ((Button) sender).Text;
|
||||
else
|
||||
Display.Text += ((Button) sender).Text;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void BACKSPACE_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
int len;
|
||||
|
||||
if ((len = Display.Text.Length) > 1) {
|
||||
if (Display.Text[Display.Text.Length - 1] == '.')
|
||||
dot = false;
|
||||
Display.Text = Display.Text.Remove(len - 1);
|
||||
}
|
||||
else {
|
||||
if (Display.PasswordChar != '*' )
|
||||
Display.Text = "0";
|
||||
else
|
||||
Display.Text = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void OK_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void CANCEL_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void CE_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
dot = false;
|
||||
if (Display.PasswordChar != '*')
|
||||
Display.Text = "0";
|
||||
else
|
||||
Display.Text = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void SIGN_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
if ( Display.Text[0] == '-' )
|
||||
Display.Text = Display.Text.Substring(1);
|
||||
else
|
||||
Display.Text = "-" + Display.Text;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void DOT_Button_Click(object sender, EventArgs e) {
|
||||
|
||||
if ( !dot )
|
||||
Display.Text += ".";
|
||||
dot = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Used to drawing the Form borders only.
|
||||
/// </summary>
|
||||
private void NumericPad_Paint(object sender, PaintEventArgs e) {
|
||||
|
||||
GeneralLibrary.DrawFormBorder(sender, e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void Close(int n) {
|
||||
|
||||
if ( n == 1 ) {
|
||||
int height = this.ClientSize.Height;
|
||||
int width = this.ClientSize.Width;
|
||||
|
||||
while ( this.ClientSize.Height > 10 ) {
|
||||
this.Height -= 3;
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
|
||||
while ( this.ClientSize.Width > 10 ) {
|
||||
this.Width -= 2;
|
||||
Thread.Sleep(1);
|
||||
}
|
||||
}
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
} // end class
|
||||
|
||||
} // end namespace
|
||||
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -0,0 +1,111 @@
|
||||
/***************************************************/
|
||||
// __ ______
|
||||
// / / /_ __/_
|
||||
// / //\/\ / //_ /\ /\/\
|
||||
// /_// \\ /_//__ /¯ \/ \\
|
||||
//
|
||||
// Written by Alberto Bettinelli
|
||||
// SIATEC srl
|
||||
// Via Sigismondi, 40 - 24018 Villa d'Almè (BG)
|
||||
// tel: +39.035.636029 fax: +39.035.638129
|
||||
// <http://www.imteam.it>
|
||||
//
|
||||
/***************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace IPadLibrary {
|
||||
|
||||
|
||||
class IOLibrary {
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Constant & Static Variables
|
||||
/*******************************************************************************************/
|
||||
#region Constant & Static Variables
|
||||
// ...
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Public Variables Definition
|
||||
/*******************************************************************************************/
|
||||
#region Public Variables Definiton
|
||||
// ...
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Private Variables Definition
|
||||
/*******************************************************************************************/
|
||||
#region Private Variables Definition
|
||||
|
||||
// FileStream istream;
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Public Methods Definition
|
||||
/*******************************************************************************************/
|
||||
#region Public Methods Definition
|
||||
|
||||
|
||||
//public void OpenTextFile(string pathname, FileAccess mode) {
|
||||
//}
|
||||
|
||||
|
||||
//public string readLine() {
|
||||
//}
|
||||
|
||||
//public string readLineWithoutComment() {
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//private string removeComment(string line, char ch) {
|
||||
|
||||
// int idx;
|
||||
// if ( (idx = line.IndexOf(ch)) > -1 )
|
||||
// line.Remove(idx);
|
||||
// return line.Trim();
|
||||
//}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/*******************************************************************************************/
|
||||
/* Private Methods Definition
|
||||
/*******************************************************************************************/
|
||||
#region Private Methods Definition
|
||||
|
||||
//------------------------------------- INIT SECTION --------------------------------------//
|
||||
|
||||
|
||||
//------------------------------- FILE CONFIGURATION SECTION ------------------------------//
|
||||
|
||||
|
||||
//----------------------------- TEXT & DRAWING UPDATES SECTION ----------------------------//
|
||||
|
||||
|
||||
//------------------------------------ DIALOG SECTION -------------------------------------//
|
||||
|
||||
|
||||
//------------------------------------- UNDO SECTION --------------------------------------//
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
} // end class
|
||||
|
||||
} // end namespace
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 988 B |
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("KeyLibrary")]
|
||||
[assembly: AssemblyDescription("Data input pad")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("EgalTech")]
|
||||
[assembly: AssemblyProduct("KeyLibrary")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015-2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("49061da8-711e-4a50-968b-935047f5bff9")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.2.5.1")]
|
||||
[assembly: AssemblyFileVersion("2.2.5.1")]
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace IPadLibrary.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IPadLibrary.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Delete {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Delete", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap OK {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("OK", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="Delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Icons\Delete.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="OK" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Icons\OK.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace IPadLibrary.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles />
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
</configSections>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
e95e89768799aa70174d795dd6cd51d4394677f14b86bcd305000d17f87ae1d9
|
||||
@@ -0,0 +1,22 @@
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\bin\x64\Debug\IPadLibrary.dll.config
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\bin\x64\Debug\IPadLibrary.dll
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\bin\x64\Debug\IPadLibrary.pdb
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\CSharpLibrary.csproj.AssemblyReference.cache
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.FormsInterfaces.NumericPad.resources
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.FormsInterfaces.KeyboradControl.resources
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.Properties.Resources.resources
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\CSharpLibrary.csproj.GenerateResource.cache
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\CSharpLibrary.csproj.CoreCompileInputs.cache
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.dll
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.pdb
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\bin\x64\Debug\IPadLibrary.dll.config
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\bin\x64\Debug\IPadLibrary.dll
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\bin\x64\Debug\IPadLibrary.pdb
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\CSharpLibrary.csproj.AssemblyReference.cache
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.FormsInterfaces.NumericPad.resources
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.FormsInterfaces.KeyboradControl.resources
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.Properties.Resources.resources
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\CSharpLibrary.csproj.GenerateResource.cache
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\CSharpLibrary.csproj.CoreCompileInputs.cache
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.dll
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Debug\IPadLibrary.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
5b824d8976a22f313749e4a5f6631879cf078f8beeb61d09a1d2090862091358
|
||||
@@ -0,0 +1,11 @@
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\bin\x64\Release\IPadLibrary.dll.config
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\bin\x64\Release\IPadLibrary.dll
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\bin\x64\Release\IPadLibrary.pdb
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\CSharpLibrary.csproj.AssemblyReference.cache
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\IPadLibrary.FormsInterfaces.NumericPad.resources
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\IPadLibrary.FormsInterfaces.KeyboradControl.resources
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\IPadLibrary.Properties.Resources.resources
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\CSharpLibrary.csproj.GenerateResource.cache
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\CSharpLibrary.csproj.CoreCompileInputs.cache
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\IPadLibrary.dll
|
||||
C:\EgtDev\CameraMng\CSharpLibrary\obj\x64\Release\IPadLibrary.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
44a681d4691549424ed3048bd675bbce4eec67449b2eebb1c688460fd4cdd17d
|
||||
@@ -0,0 +1,9 @@
|
||||
C:\EgtDevTest\CameraMng\CameraMng\bin\Debug\IPadLibrary.dll.config
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\CSharpLibrary.csproj.AssemblyReference.cache
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\IPadLibrary.FormsInterfaces.NumericPad.resources
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\IPadLibrary.FormsInterfaces.KeyboradControl.resources
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\IPadLibrary.Properties.Resources.resources
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\CSharpLibrary.csproj.GenerateResource.cache
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\CSharpLibrary.csproj.CoreCompileInputs.cache
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\IPadLibrary.dll
|
||||
C:\EgtDevTest\CameraMng\CSharpLibrary\obj\x86\Debug\IPadLibrary.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,84 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.31105.61
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CameraMng", "CameraMng\CameraMng.vbproj", "{5BBC23C8-48BC-47EC-B801-79F27347503C}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{60CE9527-95BC-433A-BE8F-640489315539} = {60CE9527-95BC-433A-BE8F-640489315539}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpLibrary", "CSharpLibrary\CSharpLibrary.csproj", "{60CE9527-95BC-433A-BE8F-640489315539}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug WinXP|Any CPU = Debug WinXP|Any CPU
|
||||
Debug WinXP|x64 = Debug WinXP|x64
|
||||
Debug WinXP|x86 = Debug WinXP|x86
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release WinXP|Any CPU = Release WinXP|Any CPU
|
||||
Release WinXP|x64 = Release WinXP|x64
|
||||
Release WinXP|x86 = Release WinXP|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug WinXP|Any CPU.ActiveCfg = Debug WinXP|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug WinXP|Any CPU.Build.0 = Debug WinXP|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug WinXP|x64.ActiveCfg = Debug WinXP|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug WinXP|x64.Build.0 = Debug WinXP|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug WinXP|x86.ActiveCfg = Debug WinXP|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug WinXP|x86.Build.0 = Debug WinXP|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug|x64.Build.0 = Debug|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Debug|x86.Build.0 = Debug|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release WinXP|Any CPU.ActiveCfg = Release WinXP|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release WinXP|Any CPU.Build.0 = Release WinXP|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release WinXP|x64.ActiveCfg = Release WinXP|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release WinXP|x64.Build.0 = Release WinXP|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release WinXP|x86.ActiveCfg = Release WinXP|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release WinXP|x86.Build.0 = Release WinXP|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release|x64.ActiveCfg = Release|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release|x64.Build.0 = Release|x64
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release|x86.ActiveCfg = Release|x86
|
||||
{5BBC23C8-48BC-47EC-B801-79F27347503C}.Release|x86.Build.0 = Release|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug WinXP|Any CPU.ActiveCfg = Debug WinXP|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug WinXP|Any CPU.Build.0 = Debug WinXP|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug WinXP|x64.ActiveCfg = Debug WinXP|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug WinXP|x64.Build.0 = Debug WinXP|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug WinXP|x86.ActiveCfg = Debug WinXP|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug WinXP|x86.Build.0 = Debug WinXP|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|x64.Build.0 = Debug|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Debug|x86.Build.0 = Debug|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release WinXP|Any CPU.ActiveCfg = Release WinXP|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release WinXP|Any CPU.Build.0 = Release WinXP|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release WinXP|x64.ActiveCfg = Release WinXP|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release WinXP|x64.Build.0 = Release WinXP|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release WinXP|x86.ActiveCfg = Release WinXP|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release WinXP|x86.Build.0 = Release WinXP|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|x64.ActiveCfg = Release|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|x64.Build.0 = Release|x64
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|x86.ActiveCfg = Release|x86
|
||||
{60CE9527-95BC-433A-BE8F-640489315539}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {197BD59C-648D-4924-8AD7-9596E774272D}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
Namespace My
|
||||
|
||||
' The following events are available for MyApplication:
|
||||
'
|
||||
' Startup: Raised when the application starts, before the startup form is created.
|
||||
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
|
||||
' UnhandledException: Raised if the application encounters an unhandled exception.
|
||||
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
|
||||
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
|
||||
Private Sub MyApplication_Startup(sender As Object, e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
|
||||
If e.CommandLine.Count > 0 Then
|
||||
If e.CommandLine(0) = "0" Then
|
||||
ModalitaNascosta = True
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub MyApplication_StartupNextInstance(sender As Object, e As Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs) Handles Me.StartupNextInstance
|
||||
|
||||
If e.CommandLine.Count > 1 Then
|
||||
MainModule.SpessLastra = Val(e.CommandLine(1))
|
||||
End If
|
||||
If e.CommandLine.Count > 2 Then
|
||||
MainModule.SogliaPercentuale = Val(e.CommandLine(2))
|
||||
End If
|
||||
|
||||
If e.CommandLine.Count > 3 Then
|
||||
FrmMain.SetSearchMode(CInt(Val(e.CommandLine(3))))
|
||||
Else
|
||||
|
||||
End If
|
||||
|
||||
If e.CommandLine.Count > 0 Then
|
||||
If e.CommandLine(0) = "0" Then
|
||||
ModalitaNascosta = True
|
||||
FrmMain.Hide()
|
||||
ElseIf e.CommandLine(0) = "1" Then
|
||||
ModalitaNascosta = False
|
||||
FrmMain.Visible = True
|
||||
ElseIf e.CommandLine(0) = "2" Then
|
||||
CorrezioneAutomatica = True
|
||||
RichiestaBordi = False
|
||||
FrmMain.RichiestaClick()
|
||||
ElseIf e.CommandLine(0) = "3" Then
|
||||
FrmMain.RichiestaStatoCamera()
|
||||
ElseIf e.CommandLine(0) = "4" Then
|
||||
FrmMain.ScattoBackGround()
|
||||
ElseIf e.CommandLine(0) = "5" Then
|
||||
RichiestaBordi = True
|
||||
FrmMain.RichiestaClick()
|
||||
ElseIf e.CommandLine(0) = "6" Then
|
||||
FrmMain.RipetiThreshold()
|
||||
End If
|
||||
End If
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
|
||||
|
||||
End Namespace
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : CameraController.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
|
||||
|
||||
Public Class CameraController
|
||||
|
||||
'// Camera model
|
||||
Protected model As CameraModel
|
||||
|
||||
'// Command processing
|
||||
Protected processor As New Processor
|
||||
|
||||
|
||||
'// Constractor
|
||||
Public Sub New()
|
||||
model = Nothing
|
||||
End Sub
|
||||
|
||||
'// Destructor
|
||||
Protected Overrides Sub Finalize()
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub setCameraModel(ByVal model As CameraModel)
|
||||
Me.model = model
|
||||
End Sub
|
||||
|
||||
|
||||
'// Start processor thread
|
||||
Public Sub run()
|
||||
|
||||
processor.start()
|
||||
|
||||
'The communication with the camera begins
|
||||
StoreAsync(New OpenSessionCommand(model))
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub actionPerformed(ByVal strEvent As String, ByVal inObject As IntPtr)
|
||||
If strEvent = "download" Then
|
||||
'StoreAsync(New DownloadCommand(model, inObject)) '
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub actionPerformed(ByVal strEvent As String)
|
||||
|
||||
If strEvent = "opensession" Then
|
||||
|
||||
'// Start communication with remote camera.
|
||||
StoreAsync(New OpenSessionCommand(model))
|
||||
|
||||
ElseIf strEvent = "takepicture" Then
|
||||
StoreAsync(New TakePictureCommand(model))
|
||||
|
||||
ElseIf strEvent = "close" Then
|
||||
model.notifyObservers(clse)
|
||||
processor.setCloseCommand(New CloseSessionCommand(model))
|
||||
processor.stopTh()
|
||||
processor.join()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub actionPerformed(ByVal strEvent As String, ByVal id As Integer, Optional ByVal data As Integer = 0)
|
||||
If strEvent = "get" Then
|
||||
StoreAsync(New GetPropertyCommand(model, id))
|
||||
|
||||
ElseIf strEvent = "set" Then
|
||||
StoreAsync(New SetPropertyCommand(model, id, data))
|
||||
|
||||
ElseIf strEvent = "getlist" Then
|
||||
StoreAsync(New GetPropertyDescCommand(model, id))
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
'// Receive a command
|
||||
Protected Sub StoreAsync(ByVal command As Command)
|
||||
If IsNothing(command) = False Then
|
||||
processor.enqueue(command)
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,329 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : CameraModel.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Class CameraModel
|
||||
Inherits Observable
|
||||
|
||||
|
||||
Protected camera As IntPtr
|
||||
|
||||
'// UIlock counter
|
||||
Protected lockCount As Integer
|
||||
|
||||
'// Model name
|
||||
Protected modelName As String
|
||||
Protected ownerName As String
|
||||
|
||||
'// Parameters
|
||||
Protected AEMode As Integer
|
||||
Protected Av As Integer
|
||||
Protected Tv As Integer
|
||||
Protected Iso As Integer
|
||||
Protected MeteringMode As Integer
|
||||
Protected ExposureCompensation As Integer
|
||||
Protected ImageQuality As Integer
|
||||
Protected availableShot As Integer
|
||||
|
||||
'// Available parameter lists
|
||||
Protected AEModeDesc As EdsPropertyDesc
|
||||
Protected AvDesc As EdsPropertyDesc
|
||||
Protected TvDesc As EdsPropertyDesc
|
||||
Protected IsoDesc As EdsPropertyDesc
|
||||
Protected MeteringModeDesc As EdsPropertyDesc
|
||||
Protected ExposureCompensationDesc As EdsPropertyDesc
|
||||
Protected ImageQualityDesc As EdsPropertyDesc
|
||||
Protected IDBodyCAmera As String = ""
|
||||
|
||||
|
||||
'// Constructor
|
||||
Public Sub New(ByVal camera As IntPtr)
|
||||
Me.lockCount = 0
|
||||
Me.camera = camera
|
||||
End Sub
|
||||
|
||||
'// Get a camera object
|
||||
Public Function getCameraObject() As IntPtr
|
||||
Return Me.camera
|
||||
End Function
|
||||
|
||||
|
||||
'// -----------------------------------------------------------------
|
||||
'// Stock parameters ---------------------------------------------
|
||||
|
||||
Private Sub setAEMode(ByVal value As Integer)
|
||||
AEMode = value
|
||||
End Sub
|
||||
|
||||
Private Sub setTv(ByVal value As Integer)
|
||||
Tv = value
|
||||
End Sub
|
||||
|
||||
Private Sub setAv(ByVal value As Integer)
|
||||
Av = value
|
||||
End Sub
|
||||
|
||||
Private Sub setIso(ByVal value As Integer)
|
||||
Iso = value
|
||||
End Sub
|
||||
|
||||
Private Sub setMeteringMode(ByVal value As Integer)
|
||||
MeteringMode = value
|
||||
End Sub
|
||||
|
||||
Private Sub setExposureCompensation(ByVal value As Integer)
|
||||
ExposureCompensation = value
|
||||
End Sub
|
||||
|
||||
Private Sub setBodyIDEx(ByVal value As String)
|
||||
IDBodyCAmera = value
|
||||
End Sub
|
||||
|
||||
Private Sub setModelName(ByVal modelName As String)
|
||||
modelName = modelName
|
||||
End Sub
|
||||
Private Sub setImageQuality(ByVal value As Integer)
|
||||
ImageQuality = value
|
||||
End Sub
|
||||
|
||||
'// -----------------------------------------------------------------
|
||||
'// Give parameters ---------------------------------------------
|
||||
|
||||
Private Function getAEMode() As Integer
|
||||
Return AEMode
|
||||
End Function
|
||||
|
||||
Private Function getTv() As Integer
|
||||
Return Tv
|
||||
End Function
|
||||
|
||||
Private Function getAv() As Integer
|
||||
Return Av
|
||||
End Function
|
||||
|
||||
Private Function getIso() As Integer
|
||||
Return Iso
|
||||
End Function
|
||||
|
||||
Private Function getMeteringMode() As Integer
|
||||
Return MeteringMode
|
||||
End Function
|
||||
|
||||
Private Function getExposureCompensation() As Integer
|
||||
Return ExposureCompensation
|
||||
End Function
|
||||
|
||||
Private Function getImageQuality() As Integer
|
||||
Return ImageQuality
|
||||
End Function
|
||||
Private Function getIDCamera() As String
|
||||
Return IDBodyCAmera
|
||||
End Function
|
||||
|
||||
'// -----------------------------------------------------------------
|
||||
'// Give available parameter lists ----------------------------------
|
||||
|
||||
Private Function getAEModeDesc() As EdsPropertyDesc
|
||||
Return AEModeDesc
|
||||
End Function
|
||||
|
||||
Private Function getAvDesc() As EdsPropertyDesc
|
||||
Return AvDesc
|
||||
End Function
|
||||
|
||||
Private Function getTvDesc() As EdsPropertyDesc
|
||||
Return TvDesc
|
||||
End Function
|
||||
|
||||
Private Function getIsoDesc() As EdsPropertyDesc
|
||||
Return IsoDesc
|
||||
End Function
|
||||
|
||||
Private Function getMeteringModeDesc() As EdsPropertyDesc
|
||||
Return MeteringModeDesc
|
||||
End Function
|
||||
|
||||
Private Function getExposureCompensationDesc() As EdsPropertyDesc
|
||||
Return ExposureCompensationDesc
|
||||
End Function
|
||||
|
||||
Private Function getImageQualityDesc() As EdsPropertyDesc
|
||||
Return ImageQualityDesc
|
||||
End Function
|
||||
|
||||
|
||||
'// -----------------------------------------------------------------
|
||||
'// Stock available parameter lists ---------------------------------
|
||||
|
||||
Private Sub setAEModeDesc(ByVal desc As EdsPropertyDesc)
|
||||
AEModeDesc = desc
|
||||
End Sub
|
||||
|
||||
Private Sub setAvDesc(ByVal desc As EdsPropertyDesc)
|
||||
AvDesc = desc
|
||||
End Sub
|
||||
|
||||
Private Sub setTvDesc(ByVal desc As EdsPropertyDesc)
|
||||
TvDesc = desc
|
||||
End Sub
|
||||
|
||||
Private Sub setIsoDesc(ByVal desc As EdsPropertyDesc)
|
||||
IsoDesc = desc
|
||||
End Sub
|
||||
|
||||
Private Sub setMeteringModeDesc(ByVal desc As EdsPropertyDesc)
|
||||
MeteringModeDesc = desc
|
||||
End Sub
|
||||
|
||||
Private Sub setExposureCompensationDesc(ByVal desc As EdsPropertyDesc)
|
||||
ExposureCompensationDesc = desc
|
||||
End Sub
|
||||
|
||||
Private Sub setImageQualityDesc(ByVal desc As EdsPropertyDesc)
|
||||
ImageQualityDesc = desc
|
||||
End Sub
|
||||
|
||||
|
||||
'// Set a property <UInt32>
|
||||
Public Sub setPropertyUInt32(ByVal propertyID As Integer, ByVal value As Integer)
|
||||
Select Case propertyID
|
||||
Case kEdsPropID_AEModeSelect
|
||||
setAEMode(value)
|
||||
Case kEdsPropID_Tv
|
||||
setTv(value)
|
||||
Case kEdsPropID_Av
|
||||
setAv(value)
|
||||
Case kEdsPropID_ISOSpeed
|
||||
setIso(value)
|
||||
Case kEdsPropID_MeteringMode
|
||||
setMeteringMode(value)
|
||||
Case kEdsPropID_ExposureCompensation
|
||||
setExposureCompensation(value)
|
||||
Case kEdsPropID_ImageQuality
|
||||
setImageQuality(value)
|
||||
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
|
||||
'// Get a property <UInt32>
|
||||
Public Function getPropertyUInt32(ByVal propertyID As Integer) As Integer
|
||||
Dim value As Integer = &HFFFFFFFF
|
||||
Select Case propertyID
|
||||
Case kEdsPropID_AEModeSelect
|
||||
value = getAEMode()
|
||||
Case kEdsPropID_Tv
|
||||
value = getTv()
|
||||
Case kEdsPropID_Av
|
||||
value = getAv()
|
||||
Case kEdsPropID_ISOSpeed
|
||||
value = getIso()
|
||||
Case kEdsPropID_MeteringMode
|
||||
value = getMeteringMode()
|
||||
Case kEdsPropID_ExposureCompensation
|
||||
value = getExposureCompensation()
|
||||
Case kEdsPropID_ImageQuality
|
||||
value = getImageQuality()
|
||||
End Select
|
||||
Return value
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
'// Get a property <String>
|
||||
Public Sub getPropertyString(ByVal propertyID As Integer, ByRef str As String)
|
||||
Select Case propertyID
|
||||
Case kEdsPropID_ProductName
|
||||
str = modelName
|
||||
Case kEdsPropID_OwnerName
|
||||
str = ownerName
|
||||
Case kEdsPropID_BodyIDEx
|
||||
str = IDBodyCAmera
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
|
||||
'// Set a property <String>
|
||||
Public Sub setPropertyString(ByVal propertyID As Integer, ByVal str As String)
|
||||
Select Case propertyID
|
||||
Case kEdsPropID_ProductName
|
||||
modelName = str
|
||||
Case kEdsPropID_OwnerName
|
||||
ownerName = str
|
||||
Case kEdsPropID_BodyIDEx
|
||||
setBodyIDEx(str)
|
||||
|
||||
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
|
||||
'// Set an available parameter list.
|
||||
Public Sub setPropertyDesc(ByVal propertyID As Integer, ByVal desc As EdsPropertyDesc)
|
||||
Select Case propertyID
|
||||
Case kEdsPropID_AEModeSelect
|
||||
setAEModeDesc(desc)
|
||||
Case kEdsPropID_Tv
|
||||
setTvDesc(desc)
|
||||
Case kEdsPropID_Av
|
||||
setAvDesc(desc)
|
||||
Case kEdsPropID_ISOSpeed
|
||||
setIsoDesc(desc)
|
||||
Case kEdsPropID_MeteringMode
|
||||
setMeteringModeDesc(desc)
|
||||
Case kEdsPropID_ExposureCompensation
|
||||
setExposureCompensationDesc(desc)
|
||||
Case kEdsPropID_ImageQuality
|
||||
setImageQualityDesc(desc)
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
'// Get an available parameter list.
|
||||
Public Function getPropertyDesc(ByVal propertyID As Integer) As EdsPropertyDesc
|
||||
Dim desc As EdsPropertyDesc = Nothing
|
||||
Select Case propertyID
|
||||
Case kEdsPropID_AEModeSelect
|
||||
desc = getAEModeDesc()
|
||||
Case kEdsPropID_Tv
|
||||
desc = getTvDesc()
|
||||
Case kEdsPropID_Av
|
||||
desc = getAvDesc()
|
||||
Case kEdsPropID_ISOSpeed
|
||||
desc = getIsoDesc()
|
||||
Case kEdsPropID_MeteringMode
|
||||
desc = getMeteringModeDesc()
|
||||
Case kEdsPropID_ExposureCompensation
|
||||
desc = getExposureCompensationDesc()
|
||||
Case kEdsPropID_ImageQuality
|
||||
desc = getImageQualityDesc()
|
||||
End Select
|
||||
Return desc
|
||||
End Function
|
||||
|
||||
'// Check camera accessing flag.
|
||||
'// Connected camera is not a legacy one, this method will be called.
|
||||
Public Overridable Function isLegacy() As Boolean
|
||||
Return False
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,37 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : CameraModelLegacy.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Public Class CameraModelLegacy
|
||||
Inherits CameraModel
|
||||
|
||||
'//Constructor
|
||||
Public Sub New(ByVal camera As IntPtr)
|
||||
MyBase.new(camera)
|
||||
End Sub
|
||||
|
||||
|
||||
Public Overrides Function isLegacy() As Boolean
|
||||
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,416 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{5BBC23C8-48BC-47EC-B801-79F27347503C}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject>My.MyApplication</StartupObject>
|
||||
<RootNamespace>
|
||||
</RootNamespace>
|
||||
<AssemblyName>CameraMng</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>WindowsForms</MyType>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DefineConstants>
|
||||
</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug WinXP|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug WinXP\</OutputPath>
|
||||
<DefineConstants>WinXp = 1</DefineConstants>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug WinXP|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug WinXP\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release WinXP|x86'">
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Release WinXP\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DefineConstants>WinXp = 1</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release WinXP|AnyCPU'">
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Release WinXP\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug WinXP|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\x64\Debug WinXP\</OutputPath>
|
||||
<DefineConstants>WinXp = 1</DefineConstants>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release WinXP|x64'">
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\x64\Release WinXP\</OutputPath>
|
||||
<DefineConstants>WinXp = 1</DefineConstants>
|
||||
<DocumentationFile>CameraMng.xml</DocumentationFile>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
|
||||
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Emgu.CV.World" Condition="'$(Configuration)' == 'Debug'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmgu\Emgu.CV.World.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV.UI" Condition="'$(Configuration)' == 'Debug'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmgu\Emgu.CV.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV.UI" Condition="'$(Configuration)' == 'Debug WinXP'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmguXP\Emgu.CV.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV.World" Condition="'$(Configuration)' == 'Release'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmgu\Emgu.CV.World.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV.UI" Condition="'$(Configuration)' == 'Release'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmgu\Emgu.CV.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV" Condition="'$(Configuration)' == 'Release WinXP'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmguXP\Emgu.CV.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.CV.UI" Condition="'$(Configuration)' == 'Release WinXP'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmguXP\Emgu.CV.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Emgu.Util" Condition="'$(Configuration)' == 'Release WinXP'">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>DepEmguXP\Emgu.Util.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="ApplicationEvents.vb" />
|
||||
<Compile Include="Camera\CameraController.vb" />
|
||||
<Compile Include="Camera\CameraModel.vb" />
|
||||
<Compile Include="Camera\CameraModelLegacy.vb" />
|
||||
<Compile Include="CfgForm.Designer.vb">
|
||||
<DependentUpon>CfgForm.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="CfgForm.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="clsCamera\clsCamera.vb" />
|
||||
<Compile Include="clsImageMng\BitmapBytesRGB24.vb" />
|
||||
<Compile Include="clsImageMng\clsImageMng.vb" />
|
||||
<Compile Include="clsImageMng\clsRicerca.vb" />
|
||||
<Compile Include="clsImageMng\clsVisione.vb" />
|
||||
<Compile Include="clsImageMng\FrmImgShow.Designer.vb">
|
||||
<DependentUpon>FrmImgShow.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="clsImageMng\FrmImgShow.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Command\CloseSessionCommand.vb" />
|
||||
<Compile Include="Command\Command.vb" />
|
||||
<Compile Include="Command\GetPropertyCommand.vb" />
|
||||
<Compile Include="Command\GetPropertyDescCommand.vb" />
|
||||
<Compile Include="Command\OpenSessionCommand.vb" />
|
||||
<Compile Include="Command\SaveSettingCommand.vb" />
|
||||
<Compile Include="Command\SetPropertyCommand.vb" />
|
||||
<Compile Include="Command\TakePictureCommand.vb" />
|
||||
<Compile Include="Common\EDSDK.vb" />
|
||||
<Compile Include="Common\EDSDKErrors.vb" />
|
||||
<Compile Include="Common\EDSDKTypes.vb" />
|
||||
<Compile Include="Common\EDSDKTypesXP.vb" />
|
||||
<Compile Include="Common\EDSDKXP.vb" />
|
||||
<Compile Include="ExifWorks.vb" />
|
||||
<Compile Include="FrmCfgGeo.Designer.vb">
|
||||
<DependentUpon>FrmCfgGeo.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmCfgGeo.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormSce.Designer.vb">
|
||||
<DependentUpon>FormSce.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormSce.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmStart.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmStart.Designer.vb">
|
||||
<DependentUpon>FrmStart.vb</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.designer.vb">
|
||||
<DependentUpon>FrmMain.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ImageCtrl\DrawingBoard.Designer.vb">
|
||||
<DependentUpon>DrawingBoard.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ImageCtrl\DrawingBoard.vb">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ImageCtrl\ImageControl.Designer.vb">
|
||||
<DependentUpon>ImageControl.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ImageCtrl\ImageControl.vb">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainModule.vb" />
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<Compile Include="Observer.vb" />
|
||||
<Compile Include="Processor.vb" />
|
||||
<Compile Include="property\Property.vb" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="CfgForm.resx">
|
||||
<DependentUpon>CfgForm.vb</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="clsImageMng\FrmImgShow.resx">
|
||||
<DependentUpon>FrmImgShow.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormSce.resx">
|
||||
<DependentUpon>FormSce.vb</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmCfgGeo.resx">
|
||||
<DependentUpon>FrmCfgGeo.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmStart.resx">
|
||||
<DependentUpon>FrmStart.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ImageCtrl\DrawingBoard.resx">
|
||||
<DependentUpon>DrawingBoard.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ImageCtrl\ImageControl.resx">
|
||||
<DependentUpon>ImageControl.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="My Project\app.manifest" />
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\25_tape.png" />
|
||||
<Content Include="Resources\Blocchetti.bmp" />
|
||||
<None Include="Resources\bordo.png" />
|
||||
<None Include="Resources\bordo2.png" />
|
||||
<Content Include="Resources\Calibrazione.bmp" />
|
||||
<Content Include="Resources\Cfg.jpg" />
|
||||
<Content Include="Resources\Correction.bmp" />
|
||||
<None Include="Resources\DefAree.bmp" />
|
||||
<Content Include="Resources\exit.jpg" />
|
||||
<Content Include="Resources\Spessore.bmp" />
|
||||
<None Include="Resources\ventosa2.png" />
|
||||
<Content Include="Resources\zoom_all_img.bmp" />
|
||||
<Content Include="Resources\zoom_all_img1.bmp" />
|
||||
<Content Include="Resources\zoom_in_img.bmp" />
|
||||
<Content Include="Resources\zoom_out_img.bmp" />
|
||||
<Content Include="Resources\zoom_window_img.bmp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CSharpLibrary\CSharpLibrary.csproj">
|
||||
<Project>{60CE9527-95BC-433A-BE8F-640489315539}</Project>
|
||||
<Name>CSharpLibrary</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>if /I "$(ConfigurationName)" == "Debug" copy "$(ProjectDir)DepEmgu\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Debug" copy "$(ProjectDir)DepEmgu\$(Platform)\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Debug" copy "$(ProjectDir)DepCanon\$(Platform)\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Debug WinXP" copy "$(ProjectDir)DepEmguXP\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Debug WinXP" copy "$(ProjectDir)DepEmguXP\$(Platform)\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Debug WinXP" copy "$(ProjectDir)DepCanonXP\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Release" copy "$(ProjectDir)DepEmgu\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Release" copy "$(ProjectDir)DepEmgu\$(Platform)\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Release" copy "$(ProjectDir)DepCanon\$(Platform)\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Release WinXP" copy "$(ProjectDir)DepEmguXP\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Release WinXP" copy "$(ProjectDir)DepEmguXP\$(Platform)\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
if /I "$(ConfigurationName)" == "Release WinXP" copy "$(ProjectDir)DepCanonXP\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
copy "$(ProjectDir)CommonDependencies\*.*" "$(ProjectDir)bin\$(ConfigurationName)"
|
||||
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ProjectFiles</ProjectView>
|
||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
||||
<InstallUrlHistory />
|
||||
<SupportUrlHistory />
|
||||
<UpdateUrlHistory />
|
||||
<BootstrapperUrlHistory />
|
||||
<ErrorReportUrlHistory />
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<RemoteDebugEnabled>false</RemoteDebugEnabled>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Generated
+193
@@ -0,0 +1,193 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class CaliProspCfg
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.tBoxP1X = New System.Windows.Forms.TextBox()
|
||||
Me.tBoxP1Y = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox1 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox2 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox3 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox4 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox5 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox6 = New System.Windows.Forms.TextBox()
|
||||
Me.lblP1 = New System.Windows.Forms.Label()
|
||||
Me.lblP2 = New System.Windows.Forms.Label()
|
||||
Me.lblP3 = New System.Windows.Forms.Label()
|
||||
Me.lblP4 = New System.Windows.Forms.Label()
|
||||
Me.lblX = New System.Windows.Forms.Label()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'tBoxP1X
|
||||
'
|
||||
Me.tBoxP1X.Location = New System.Drawing.Point(54, 54)
|
||||
Me.tBoxP1X.Name = "tBoxP1X"
|
||||
Me.tBoxP1X.Size = New System.Drawing.Size(64, 20)
|
||||
Me.tBoxP1X.TabIndex = 0
|
||||
'
|
||||
'tBoxP1Y
|
||||
'
|
||||
Me.tBoxP1Y.Location = New System.Drawing.Point(54, 77)
|
||||
Me.tBoxP1Y.Name = "tBoxP1Y"
|
||||
Me.tBoxP1Y.Size = New System.Drawing.Size(64, 20)
|
||||
Me.tBoxP1Y.TabIndex = 1
|
||||
'
|
||||
'TextBox1
|
||||
'
|
||||
Me.TextBox1.Location = New System.Drawing.Point(37, 299)
|
||||
Me.TextBox1.Name = "TextBox1"
|
||||
Me.TextBox1.Size = New System.Drawing.Size(64, 20)
|
||||
Me.TextBox1.TabIndex = 3
|
||||
'
|
||||
'TextBox2
|
||||
'
|
||||
Me.TextBox2.Location = New System.Drawing.Point(37, 273)
|
||||
Me.TextBox2.Name = "TextBox2"
|
||||
Me.TextBox2.Size = New System.Drawing.Size(64, 20)
|
||||
Me.TextBox2.TabIndex = 2
|
||||
'
|
||||
'TextBox3
|
||||
'
|
||||
Me.TextBox3.Location = New System.Drawing.Point(530, 299)
|
||||
Me.TextBox3.Name = "TextBox3"
|
||||
Me.TextBox3.Size = New System.Drawing.Size(64, 20)
|
||||
Me.TextBox3.TabIndex = 5
|
||||
'
|
||||
'TextBox4
|
||||
'
|
||||
Me.TextBox4.Location = New System.Drawing.Point(530, 320)
|
||||
Me.TextBox4.Name = "TextBox4"
|
||||
Me.TextBox4.Size = New System.Drawing.Size(64, 20)
|
||||
Me.TextBox4.TabIndex = 4
|
||||
'
|
||||
'TextBox5
|
||||
'
|
||||
Me.TextBox5.Location = New System.Drawing.Point(497, 77)
|
||||
Me.TextBox5.Name = "TextBox5"
|
||||
Me.TextBox5.Size = New System.Drawing.Size(64, 20)
|
||||
Me.TextBox5.TabIndex = 7
|
||||
'
|
||||
'TextBox6
|
||||
'
|
||||
Me.TextBox6.Location = New System.Drawing.Point(497, 54)
|
||||
Me.TextBox6.Name = "TextBox6"
|
||||
Me.TextBox6.Size = New System.Drawing.Size(64, 20)
|
||||
Me.TextBox6.TabIndex = 6
|
||||
'
|
||||
'lblP1
|
||||
'
|
||||
Me.lblP1.AutoSize = True
|
||||
Me.lblP1.Location = New System.Drawing.Point(78, 129)
|
||||
Me.lblP1.Name = "lblP1"
|
||||
Me.lblP1.Size = New System.Drawing.Size(40, 13)
|
||||
Me.lblP1.TabIndex = 8
|
||||
Me.lblP1.Text = "Point 1"
|
||||
'
|
||||
'lblP2
|
||||
'
|
||||
Me.lblP2.AutoSize = True
|
||||
Me.lblP2.Location = New System.Drawing.Point(78, 229)
|
||||
Me.lblP2.Name = "lblP2"
|
||||
Me.lblP2.Size = New System.Drawing.Size(40, 13)
|
||||
Me.lblP2.TabIndex = 9
|
||||
Me.lblP2.Text = "Point 2"
|
||||
'
|
||||
'lblP3
|
||||
'
|
||||
Me.lblP3.AutoSize = True
|
||||
Me.lblP3.Location = New System.Drawing.Point(545, 239)
|
||||
Me.lblP3.Name = "lblP3"
|
||||
Me.lblP3.Size = New System.Drawing.Size(40, 13)
|
||||
Me.lblP3.TabIndex = 10
|
||||
Me.lblP3.Text = "Point 3"
|
||||
'
|
||||
'lblP4
|
||||
'
|
||||
Me.lblP4.AutoSize = True
|
||||
Me.lblP4.Location = New System.Drawing.Point(545, 120)
|
||||
Me.lblP4.Name = "lblP4"
|
||||
Me.lblP4.Size = New System.Drawing.Size(40, 13)
|
||||
Me.lblP4.TabIndex = 11
|
||||
Me.lblP4.Text = "Point 4"
|
||||
'
|
||||
'lblX
|
||||
'
|
||||
Me.lblX.AutoSize = True
|
||||
Me.lblX.Location = New System.Drawing.Point(34, 61)
|
||||
Me.lblX.Name = "lblX"
|
||||
Me.lblX.Size = New System.Drawing.Size(14, 13)
|
||||
Me.lblX.TabIndex = 12
|
||||
Me.lblX.Text = "X"
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.AutoSize = True
|
||||
Me.Label1.Location = New System.Drawing.Point(34, 84)
|
||||
Me.Label1.Name = "Label1"
|
||||
Me.Label1.Size = New System.Drawing.Size(14, 13)
|
||||
Me.Label1.TabIndex = 13
|
||||
Me.Label1.Text = "Y"
|
||||
'
|
||||
'CaliProspCfg
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.BackgroundImage = Global.CameraMng.My.Resources.Resources.Prova
|
||||
Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center
|
||||
Me.ClientSize = New System.Drawing.Size(637, 378)
|
||||
Me.Controls.Add(Me.Label1)
|
||||
Me.Controls.Add(Me.lblX)
|
||||
Me.Controls.Add(Me.lblP4)
|
||||
Me.Controls.Add(Me.lblP3)
|
||||
Me.Controls.Add(Me.lblP2)
|
||||
Me.Controls.Add(Me.lblP1)
|
||||
Me.Controls.Add(Me.TextBox5)
|
||||
Me.Controls.Add(Me.TextBox6)
|
||||
Me.Controls.Add(Me.TextBox3)
|
||||
Me.Controls.Add(Me.TextBox4)
|
||||
Me.Controls.Add(Me.TextBox1)
|
||||
Me.Controls.Add(Me.TextBox2)
|
||||
Me.Controls.Add(Me.tBoxP1Y)
|
||||
Me.Controls.Add(Me.tBoxP1X)
|
||||
Me.DoubleBuffered = True
|
||||
Me.Name = "CaliProspCfg"
|
||||
Me.Text = "CaliProspCfg"
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents tBoxP1X As System.Windows.Forms.TextBox
|
||||
Friend WithEvents tBoxP1Y As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents lblP1 As System.Windows.Forms.Label
|
||||
Friend WithEvents lblP2 As System.Windows.Forms.Label
|
||||
Friend WithEvents lblP3 As System.Windows.Forms.Label
|
||||
Friend WithEvents lblP4 As System.Windows.Forms.Label
|
||||
Friend WithEvents lblX As System.Windows.Forms.Label
|
||||
Friend WithEvents Label1 As System.Windows.Forms.Label
|
||||
End Class
|
||||
@@ -0,0 +1,3 @@
|
||||
Public Class CaliProspCfg
|
||||
|
||||
End Class
|
||||
Generated
+300
@@ -0,0 +1,300 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class CfgForm
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.BtnOk = New System.Windows.Forms.Button()
|
||||
Me.PanelDeviceStatus = New System.Windows.Forms.GroupBox()
|
||||
Me.BtnResetID = New System.Windows.Forms.Button()
|
||||
Me.LbCameraID = New System.Windows.Forms.Label()
|
||||
Me.Label6 = New System.Windows.Forms.Label()
|
||||
Me.BtnSetID = New System.Windows.Forms.Button()
|
||||
Me.Label3 = New System.Windows.Forms.Label()
|
||||
Me.BtnDisConnect = New System.Windows.Forms.Button()
|
||||
Me.LbDeviceDescription = New System.Windows.Forms.Label()
|
||||
Me.LbDeviceStatus = New System.Windows.Forms.Label()
|
||||
Me.Label2 = New System.Windows.Forms.Label()
|
||||
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
|
||||
Me.LbTempDir = New System.Windows.Forms.Label()
|
||||
Me.Label7 = New System.Windows.Forms.Label()
|
||||
Me.LbImageDir = New System.Windows.Forms.Label()
|
||||
Me.Label5 = New System.Windows.Forms.Label()
|
||||
Me.LbFileCali = New System.Windows.Forms.Label()
|
||||
Me.Label1 = New System.Windows.Forms.Label()
|
||||
Me.LbCfgCameraID = New System.Windows.Forms.Label()
|
||||
Me.Label8 = New System.Windows.Forms.Label()
|
||||
Me.PanelDeviceStatus.SuspendLayout()
|
||||
Me.GroupBox1.SuspendLayout()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'BtnOk
|
||||
'
|
||||
Me.BtnOk.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.BtnOk.Location = New System.Drawing.Point(538, 260)
|
||||
Me.BtnOk.Name = "BtnOk"
|
||||
Me.BtnOk.Size = New System.Drawing.Size(60, 23)
|
||||
Me.BtnOk.TabIndex = 24
|
||||
Me.BtnOk.Text = "OK"
|
||||
Me.BtnOk.UseVisualStyleBackColor = True
|
||||
'
|
||||
'PanelDeviceStatus
|
||||
'
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.LbCfgCameraID)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.Label8)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.BtnResetID)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.LbCameraID)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.Label6)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.BtnSetID)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.Label3)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.BtnDisConnect)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.LbDeviceDescription)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.LbDeviceStatus)
|
||||
Me.PanelDeviceStatus.Controls.Add(Me.Label2)
|
||||
Me.PanelDeviceStatus.Location = New System.Drawing.Point(22, 26)
|
||||
Me.PanelDeviceStatus.Name = "PanelDeviceStatus"
|
||||
Me.PanelDeviceStatus.Size = New System.Drawing.Size(463, 141)
|
||||
Me.PanelDeviceStatus.TabIndex = 25
|
||||
Me.PanelDeviceStatus.TabStop = False
|
||||
Me.PanelDeviceStatus.Text = "Device Status"
|
||||
'
|
||||
'BtnResetID
|
||||
'
|
||||
Me.BtnResetID.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.BtnResetID.Location = New System.Drawing.Point(287, 79)
|
||||
Me.BtnResetID.Name = "BtnResetID"
|
||||
Me.BtnResetID.Size = New System.Drawing.Size(131, 21)
|
||||
Me.BtnResetID.TabIndex = 30
|
||||
Me.BtnResetID.Text = "Reset ID"
|
||||
Me.BtnResetID.UseVisualStyleBackColor = True
|
||||
'
|
||||
'LbCameraID
|
||||
'
|
||||
Me.LbCameraID.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbCameraID.Location = New System.Drawing.Point(111, 73)
|
||||
Me.LbCameraID.Name = "LbCameraID"
|
||||
Me.LbCameraID.Size = New System.Drawing.Size(129, 19)
|
||||
Me.LbCameraID.TabIndex = 29
|
||||
Me.LbCameraID.Text = "Unknown"
|
||||
'
|
||||
'Label6
|
||||
'
|
||||
Me.Label6.AutoSize = True
|
||||
Me.Label6.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label6.Location = New System.Drawing.Point(13, 73)
|
||||
Me.Label6.Name = "Label6"
|
||||
Me.Label6.Size = New System.Drawing.Size(60, 13)
|
||||
Me.Label6.TabIndex = 28
|
||||
Me.Label6.Text = "Camera ID:"
|
||||
'
|
||||
'BtnSetID
|
||||
'
|
||||
Me.BtnSetID.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.BtnSetID.Location = New System.Drawing.Point(287, 52)
|
||||
Me.BtnSetID.Name = "BtnSetID"
|
||||
Me.BtnSetID.Size = New System.Drawing.Size(131, 21)
|
||||
Me.BtnSetID.TabIndex = 27
|
||||
Me.BtnSetID.Text = "Set This ID As Default"
|
||||
Me.BtnSetID.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Label3
|
||||
'
|
||||
Me.Label3.AutoSize = True
|
||||
Me.Label3.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label3.Location = New System.Drawing.Point(13, 25)
|
||||
Me.Label3.Name = "Label3"
|
||||
Me.Label3.Size = New System.Drawing.Size(39, 13)
|
||||
Me.Label3.TabIndex = 6
|
||||
Me.Label3.Text = "Model:"
|
||||
Me.Label3.Visible = False
|
||||
'
|
||||
'BtnDisConnect
|
||||
'
|
||||
Me.BtnDisConnect.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.BtnDisConnect.Location = New System.Drawing.Point(287, 25)
|
||||
Me.BtnDisConnect.Name = "BtnDisConnect"
|
||||
Me.BtnDisConnect.Size = New System.Drawing.Size(131, 21)
|
||||
Me.BtnDisConnect.TabIndex = 26
|
||||
Me.BtnDisConnect.Text = "DisConnect"
|
||||
Me.BtnDisConnect.UseVisualStyleBackColor = True
|
||||
'
|
||||
'LbDeviceDescription
|
||||
'
|
||||
Me.LbDeviceDescription.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbDeviceDescription.Location = New System.Drawing.Point(111, 25)
|
||||
Me.LbDeviceDescription.Name = "LbDeviceDescription"
|
||||
Me.LbDeviceDescription.Size = New System.Drawing.Size(129, 13)
|
||||
Me.LbDeviceDescription.TabIndex = 15
|
||||
Me.LbDeviceDescription.Text = "Unknown"
|
||||
Me.LbDeviceDescription.Visible = False
|
||||
'
|
||||
'LbDeviceStatus
|
||||
'
|
||||
Me.LbDeviceStatus.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbDeviceStatus.Location = New System.Drawing.Point(111, 49)
|
||||
Me.LbDeviceStatus.Name = "LbDeviceStatus"
|
||||
Me.LbDeviceStatus.Size = New System.Drawing.Size(129, 19)
|
||||
Me.LbDeviceStatus.TabIndex = 14
|
||||
Me.LbDeviceStatus.Text = "Unknown"
|
||||
'
|
||||
'Label2
|
||||
'
|
||||
Me.Label2.AutoSize = True
|
||||
Me.Label2.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label2.Location = New System.Drawing.Point(13, 49)
|
||||
Me.Label2.Name = "Label2"
|
||||
Me.Label2.Size = New System.Drawing.Size(40, 13)
|
||||
Me.Label2.TabIndex = 5
|
||||
Me.Label2.Text = "Status:"
|
||||
'
|
||||
'GroupBox1
|
||||
'
|
||||
Me.GroupBox1.Controls.Add(Me.LbTempDir)
|
||||
Me.GroupBox1.Controls.Add(Me.Label7)
|
||||
Me.GroupBox1.Controls.Add(Me.LbImageDir)
|
||||
Me.GroupBox1.Controls.Add(Me.Label5)
|
||||
Me.GroupBox1.Controls.Add(Me.LbFileCali)
|
||||
Me.GroupBox1.Controls.Add(Me.Label1)
|
||||
Me.GroupBox1.Location = New System.Drawing.Point(22, 173)
|
||||
Me.GroupBox1.Name = "GroupBox1"
|
||||
Me.GroupBox1.Size = New System.Drawing.Size(463, 99)
|
||||
Me.GroupBox1.TabIndex = 27
|
||||
Me.GroupBox1.TabStop = False
|
||||
Me.GroupBox1.Text = "File Cfg"
|
||||
'
|
||||
'LbTempDir
|
||||
'
|
||||
Me.LbTempDir.AutoSize = True
|
||||
Me.LbTempDir.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbTempDir.Location = New System.Drawing.Point(111, 74)
|
||||
Me.LbTempDir.Name = "LbTempDir"
|
||||
Me.LbTempDir.Size = New System.Drawing.Size(55, 13)
|
||||
Me.LbTempDir.TabIndex = 12
|
||||
Me.LbTempDir.Text = "UnkNown"
|
||||
'
|
||||
'Label7
|
||||
'
|
||||
Me.Label7.AutoSize = True
|
||||
Me.Label7.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label7.Location = New System.Drawing.Point(6, 74)
|
||||
Me.Label7.Name = "Label7"
|
||||
Me.Label7.Size = New System.Drawing.Size(53, 13)
|
||||
Me.Label7.TabIndex = 11
|
||||
Me.Label7.Text = "Temp Dir:"
|
||||
'
|
||||
'LbImageDir
|
||||
'
|
||||
Me.LbImageDir.AutoSize = True
|
||||
Me.LbImageDir.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbImageDir.Location = New System.Drawing.Point(111, 51)
|
||||
Me.LbImageDir.Name = "LbImageDir"
|
||||
Me.LbImageDir.Size = New System.Drawing.Size(55, 13)
|
||||
Me.LbImageDir.TabIndex = 10
|
||||
Me.LbImageDir.Text = "UnkNown"
|
||||
'
|
||||
'Label5
|
||||
'
|
||||
Me.Label5.AutoSize = True
|
||||
Me.Label5.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label5.Location = New System.Drawing.Point(6, 51)
|
||||
Me.Label5.Name = "Label5"
|
||||
Me.Label5.Size = New System.Drawing.Size(83, 13)
|
||||
Me.Label5.TabIndex = 9
|
||||
Me.Label5.Text = "Save Image Dir:"
|
||||
'
|
||||
'LbFileCali
|
||||
'
|
||||
Me.LbFileCali.AutoSize = True
|
||||
Me.LbFileCali.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbFileCali.Location = New System.Drawing.Point(111, 29)
|
||||
Me.LbFileCali.Name = "LbFileCali"
|
||||
Me.LbFileCali.Size = New System.Drawing.Size(55, 13)
|
||||
Me.LbFileCali.TabIndex = 8
|
||||
Me.LbFileCali.Text = "UnkNown"
|
||||
'
|
||||
'Label1
|
||||
'
|
||||
Me.Label1.AutoSize = True
|
||||
Me.Label1.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label1.Location = New System.Drawing.Point(6, 29)
|
||||
Me.Label1.Name = "Label1"
|
||||
Me.Label1.Size = New System.Drawing.Size(78, 13)
|
||||
Me.Label1.TabIndex = 7
|
||||
Me.Label1.Text = "Calibration File:"
|
||||
'
|
||||
'LbCfgCameraID
|
||||
'
|
||||
Me.LbCfgCameraID.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.LbCfgCameraID.Location = New System.Drawing.Point(111, 97)
|
||||
Me.LbCfgCameraID.Name = "LbCfgCameraID"
|
||||
Me.LbCfgCameraID.Size = New System.Drawing.Size(129, 19)
|
||||
Me.LbCfgCameraID.TabIndex = 32
|
||||
'
|
||||
'Label8
|
||||
'
|
||||
Me.Label8.AutoSize = True
|
||||
Me.Label8.ImeMode = System.Windows.Forms.ImeMode.NoControl
|
||||
Me.Label8.Location = New System.Drawing.Point(13, 97)
|
||||
Me.Label8.Name = "Label8"
|
||||
Me.Label8.Size = New System.Drawing.Size(79, 13)
|
||||
Me.Label8.TabIndex = 31
|
||||
Me.Label8.Text = "Cfg Camera ID:"
|
||||
'
|
||||
'CfgForm
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(624, 295)
|
||||
Me.ControlBox = False
|
||||
Me.Controls.Add(Me.GroupBox1)
|
||||
Me.Controls.Add(Me.PanelDeviceStatus)
|
||||
Me.Controls.Add(Me.BtnOk)
|
||||
Me.Name = "CfgForm"
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||
Me.Text = "CfgForm"
|
||||
Me.PanelDeviceStatus.ResumeLayout(False)
|
||||
Me.PanelDeviceStatus.PerformLayout()
|
||||
Me.GroupBox1.ResumeLayout(False)
|
||||
Me.GroupBox1.PerformLayout()
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
Friend WithEvents BtnOk As System.Windows.Forms.Button
|
||||
Friend WithEvents PanelDeviceStatus As System.Windows.Forms.GroupBox
|
||||
Friend WithEvents Label3 As System.Windows.Forms.Label
|
||||
Friend WithEvents LbDeviceDescription As System.Windows.Forms.Label
|
||||
Friend WithEvents LbDeviceStatus As System.Windows.Forms.Label
|
||||
Friend WithEvents Label2 As System.Windows.Forms.Label
|
||||
Friend WithEvents BtnDisConnect As System.Windows.Forms.Button
|
||||
Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
|
||||
Friend WithEvents LbTempDir As System.Windows.Forms.Label
|
||||
Friend WithEvents Label7 As System.Windows.Forms.Label
|
||||
Friend WithEvents LbImageDir As System.Windows.Forms.Label
|
||||
Friend WithEvents Label5 As System.Windows.Forms.Label
|
||||
Friend WithEvents LbFileCali As System.Windows.Forms.Label
|
||||
Friend WithEvents Label1 As System.Windows.Forms.Label
|
||||
Friend WithEvents LbCameraID As System.Windows.Forms.Label
|
||||
Friend WithEvents Label6 As System.Windows.Forms.Label
|
||||
Friend WithEvents BtnSetID As System.Windows.Forms.Button
|
||||
Friend WithEvents BtnResetID As System.Windows.Forms.Button
|
||||
Friend WithEvents LbCfgCameraID As System.Windows.Forms.Label
|
||||
Friend WithEvents Label8 As System.Windows.Forms.Label
|
||||
End Class
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,24 @@
|
||||
Public Class CfgForm
|
||||
|
||||
Private Sub BtnOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOk.Click
|
||||
Me.Hide()
|
||||
End Sub
|
||||
|
||||
Private Sub BtnDisConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnDisConnect.Click
|
||||
'Camera.Disconnect()
|
||||
'SetFormStatus()
|
||||
End Sub
|
||||
|
||||
Private Sub BtnSetID_Click(sender As System.Object, e As System.EventArgs) Handles BtnSetID.Click
|
||||
FrmMain.SetDefaultCamera()
|
||||
End Sub
|
||||
|
||||
Private Sub CfgForm_Activated(sender As Object, e As System.EventArgs) Handles Me.Activated
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub BtnResetID_Click(sender As System.Object, e As System.EventArgs) Handles BtnResetID.Click
|
||||
FrmMain.SetDefaultCamera(True)
|
||||
FrmMain.Camera.Connect()
|
||||
End Sub
|
||||
End Class
|
||||
@@ -0,0 +1,52 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : CloseSessionCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
|
||||
|
||||
Public Class CloseSessionCommand
|
||||
Inherits Command
|
||||
|
||||
Public Sub New(ByVal inModel As CameraModel)
|
||||
MyBase.new(inModel)
|
||||
End Sub
|
||||
|
||||
|
||||
'// Execute a command.
|
||||
Overrides Function execute() As Boolean
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
|
||||
'// Open session with remote camera.
|
||||
err = EdsCloseSession(MyBase.model.getCameraObject())
|
||||
|
||||
|
||||
'// Notify Error.
|
||||
If err <> EDS_ERR_OK Then
|
||||
MyBase.model.notifyObservers(errr, err)
|
||||
End If
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,54 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : Command.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Module commandName
|
||||
' Command IDs
|
||||
Public Const errr As Integer = 1 'errr
|
||||
Public Const prog As Integer = 2 'prog
|
||||
Public Const strt As Integer = 3 'strt
|
||||
Public Const cplt As Integer = 4 'cplt
|
||||
Public Const warn As Integer = 5 'warn
|
||||
Public Const updt As Integer = 6 'updt
|
||||
Public Const upls As Integer = 7 'upls
|
||||
Public Const clse As Integer = 1 'close
|
||||
End Module
|
||||
|
||||
|
||||
|
||||
' Abstract command class.
|
||||
' All command classes extends this one.
|
||||
Public Class Command
|
||||
|
||||
Protected model As CameraModel
|
||||
|
||||
Public Sub New(ByVal model As CameraModel)
|
||||
Me.model = model
|
||||
End Sub
|
||||
|
||||
'// Execute a command.
|
||||
Public Overridable Function execute() As Boolean
|
||||
Return True
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,177 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : GetPropertyCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
|
||||
Public Class GetPropertyCommand
|
||||
Inherits Command
|
||||
|
||||
Private propertyID As Integer
|
||||
|
||||
|
||||
Public Sub New(ByVal model As CameraModel, ByVal propertyID As Integer)
|
||||
MyBase.new(model)
|
||||
Me.propertyID = propertyID
|
||||
End Sub
|
||||
|
||||
'// Execute a command.
|
||||
Public Overrides Function execute() As Boolean
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
|
||||
'//Get a property.
|
||||
|
||||
err = getProperty(Me.propertyID)
|
||||
|
||||
'// Notify Error.
|
||||
If err <> EDS_ERR_OK Then
|
||||
|
||||
'// Retry when the camera replys deviceBusy.
|
||||
If (err & EDS_ERRORID_MASK) = EDS_ERR_DEVICE_BUSY Then
|
||||
|
||||
MyBase.model.notifyObservers(warn, err)
|
||||
|
||||
Return False
|
||||
|
||||
End If
|
||||
|
||||
MyBase.model.notifyObservers(errr, err)
|
||||
|
||||
End If
|
||||
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Private Function getProperty(ByVal id As Integer) As Integer
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
Dim dataType As EdsDataType = EdsDataType.kEdsDataType_Unknown
|
||||
Dim dataSize As Integer = 0
|
||||
|
||||
|
||||
If id = kEdsPropID_Unknown Then
|
||||
'// If the propertyID is invalidID,
|
||||
'// you should retry to get properties.
|
||||
'// InvalidID is able to be published for the models elder than EOS30D.
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_AEMode)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_Tv)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_Av)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_ISOSpeed)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_ImageQuality)
|
||||
End If
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_BodyIDEx)
|
||||
End If
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getProperty(kEdsPropID_OwnerName)
|
||||
End If
|
||||
|
||||
Return err
|
||||
End If
|
||||
|
||||
'// Get propertysize.
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
err = EdsGetPropertySize( _
|
||||
MyBase.model.getCameraObject(), _
|
||||
id, _
|
||||
0, _
|
||||
dataType, _
|
||||
dataSize)
|
||||
|
||||
End If
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
Dim data As Integer
|
||||
If dataType = EdsDataType.kEdsDataType_UInt32 Then
|
||||
'// Get a property.
|
||||
Dim ptr As IntPtr = Marshal.AllocHGlobal(dataSize)
|
||||
|
||||
err = EdsGetPropertyData(MyBase.model.getCameraObject(), _
|
||||
id, _
|
||||
0, _
|
||||
dataSize, _
|
||||
ptr)
|
||||
|
||||
data = Marshal.PtrToStructure(ptr, GetType(Integer))
|
||||
Marshal.FreeHGlobal(ptr)
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
MyBase.model.setPropertyUInt32(id, data)
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
If dataType = EdsDataType.kEdsDataType_String Then
|
||||
|
||||
Dim str As String 'char[EDS_MAX_NAME]
|
||||
Dim ptr As IntPtr = Marshal.AllocHGlobal(EDS_MAX_NAME)
|
||||
|
||||
'// Get a property.
|
||||
err = EdsGetPropertyData(MyBase.model.getCameraObject(), _
|
||||
id, _
|
||||
0, _
|
||||
dataSize, _
|
||||
ptr)
|
||||
|
||||
str = Marshal.PtrToStringAnsi(ptr)
|
||||
Marshal.FreeHGlobal(ptr)
|
||||
|
||||
'// Stock the property .
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
MyBase.model.setPropertyString(id, str)
|
||||
|
||||
End If
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
'// Notify updating.
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
MyBase.model.notifyObservers(updt, id)
|
||||
|
||||
End If
|
||||
|
||||
Return err
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,119 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : GetPropertyDescCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Class GetPropertyDescCommand
|
||||
Inherits Command
|
||||
|
||||
Private propertyID As Integer
|
||||
|
||||
|
||||
Public Sub New(ByVal model As CameraModel, ByVal propertyID As Integer)
|
||||
MyBase.new(model)
|
||||
Me.propertyID = propertyID
|
||||
End Sub
|
||||
|
||||
|
||||
'// Execute a command.
|
||||
Overrides Function execute() As Boolean
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
|
||||
'//Get an available property list.
|
||||
err = getPropertyDesc(Me.propertyID)
|
||||
|
||||
|
||||
'// Notify Error.
|
||||
If err <> EDS_ERR_OK Then
|
||||
|
||||
'// Retry when the camera replys deviceBusy.
|
||||
If (err & EDS_ERRORID_MASK) = EDS_ERR_DEVICE_BUSY Then
|
||||
|
||||
MyBase.model.notifyObservers(warn, err)
|
||||
|
||||
Return False
|
||||
|
||||
End If
|
||||
|
||||
MyBase.model.notifyObservers(errr, err)
|
||||
|
||||
End If
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
|
||||
Private Function getPropertyDesc(ByVal id As Integer) As Integer
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
Dim propertyDesc As New EdsPropertyDesc
|
||||
|
||||
If id = kEdsPropID_Unknown Then
|
||||
|
||||
'// If the propertyID is invalidID,
|
||||
'// you should retry to get available property lists.
|
||||
'// InvalidID is able to be published for the models elder than EOS30D.
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getPropertyDesc(kEdsPropID_AEMode)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getPropertyDesc(kEdsPropID_Tv)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getPropertyDesc(kEdsPropID_Av)
|
||||
End If
|
||||
If err = EDS_ERR_OK Then
|
||||
err = getPropertyDesc(kEdsPropID_ISOSpeed)
|
||||
End If
|
||||
|
||||
Return err
|
||||
End If
|
||||
|
||||
'// Get available property lists.
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
err = EdsGetPropertyDesc(MyBase.model.getCameraObject(), _
|
||||
id, _
|
||||
propertyDesc)
|
||||
End If
|
||||
|
||||
'// Stock the available property list.
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
MyBase.model.setPropertyDesc(id, propertyDesc)
|
||||
|
||||
End If
|
||||
|
||||
'// Notify updating.
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
MyBase.model.notifyObservers(upls, id)
|
||||
|
||||
End If
|
||||
|
||||
Return err
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,78 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : OpenSessionCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Class OpenSessionCommand
|
||||
Inherits Command
|
||||
|
||||
Public Sub New(ByVal model As CameraModel)
|
||||
MyBase.new(model)
|
||||
End Sub
|
||||
|
||||
'// Execute a command.
|
||||
Public Overrides Function execute() As Boolean
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
Dim locked As Boolean = False
|
||||
|
||||
'// Open session with remote camera.
|
||||
err = EdsOpenSession(MyBase.model.getCameraObject())
|
||||
|
||||
|
||||
'Preservation ahead is set to PC
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
Dim saveTo As Integer = EdsSaveTo.kEdsSaveTo_Host
|
||||
err = EdsSetPropertyData(MyBase.model.getCameraObject(), kEdsPropID_SaveTo, 0, Marshal.SizeOf(saveTo), saveTo)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
If err = EDS_ERR_OK Then
|
||||
|
||||
Dim capacity As EdsCapacity
|
||||
capacity.numberOfFreeClusters = &H7FFFFFFF
|
||||
capacity.bytesPerSector = &H1000
|
||||
capacity.reset = 1
|
||||
|
||||
err = EdsSetCapacity(MyBase.model.getCameraObject(), capacity)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
'Notification of error
|
||||
If err < EDS_ERR_OK Then
|
||||
|
||||
'CameraEvent e("error", &err);
|
||||
MyBase.model.notifyObservers(errr, err)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Return True
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,74 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : SaveSettingCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Explicit On
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Class SaveSettingCommand
|
||||
Inherits Command
|
||||
|
||||
Private saveTo As EdsSaveTo
|
||||
|
||||
Public Sub New(ByVal model As CameraModel, ByVal saveTo As EdsSaveTo)
|
||||
MyBase.new(model)
|
||||
saveTo = saveTo
|
||||
End Sub
|
||||
|
||||
|
||||
'// Execute a command.
|
||||
Public Overrides Function execute() As Boolean
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
|
||||
|
||||
'//Set destination of file save.
|
||||
|
||||
Dim ptr As IntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(Me.saveTo))
|
||||
Marshal.StructureToPtr(Me.saveTo, ptr, False)
|
||||
|
||||
err = EdsSetPropertyData(MyBase.model.getCameraObject(), _
|
||||
kEdsPropID_SaveTo, 0, Marshal.SizeOf(Me.saveTo), Me.saveTo)
|
||||
|
||||
Marshal.FreeHGlobal(ptr)
|
||||
|
||||
|
||||
|
||||
|
||||
'// Notify Error.
|
||||
If err <> EDS_ERR_OK Then
|
||||
|
||||
'// Retry when the camera replys deviceBusy.
|
||||
If err = EDS_ERR_DEVICE_BUSY Then
|
||||
MyBase.model.notifyObservers(warn, err)
|
||||
Threading.Thread.Sleep(500)
|
||||
Return False
|
||||
|
||||
End If
|
||||
|
||||
MyBase.model.notifyObservers(errr, err)
|
||||
|
||||
End If
|
||||
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,69 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : SetPropertyCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Option Strict Off
|
||||
Option Explicit On
|
||||
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
|
||||
Public Class SetPropertyCommand
|
||||
Inherits Command
|
||||
|
||||
Private propertyID As Integer
|
||||
Private data As Integer
|
||||
|
||||
|
||||
Public Sub New(ByVal model As CameraModel, ByVal propertyID As Integer, ByVal data As Integer)
|
||||
MyBase.new(model)
|
||||
Me.propertyID = propertyID
|
||||
Me.data = data
|
||||
End Sub
|
||||
|
||||
'// Execute a command.
|
||||
Public Overrides Function execute() As Boolean
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
|
||||
'// Stock the property.
|
||||
|
||||
err = EdsSetPropertyData(MyBase.model.getCameraObject(), Me.propertyID, 0, Marshal.SizeOf(Me.data), Me.data)
|
||||
|
||||
|
||||
'// Notify Error.
|
||||
If err <> EDS_ERR_OK Then
|
||||
'// Retry when the camera replys deviceBusy.
|
||||
If err = EDS_ERR_DEVICE_BUSY Then
|
||||
|
||||
MyBase.model.notifyObservers(warn, err)
|
||||
|
||||
Return False
|
||||
End If
|
||||
|
||||
MyBase.model.notifyObservers(errr, err)
|
||||
|
||||
End If
|
||||
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,62 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : TakePictureCommand.vb *
|
||||
'* *
|
||||
'* Description: This is the Sample code to show the usage of EDSDK. *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-22 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
|
||||
Public Class TakePictureCommand
|
||||
Inherits Command
|
||||
|
||||
Public Sub New(ByVal model As CameraModel)
|
||||
MyBase.new(model)
|
||||
End Sub
|
||||
|
||||
'// Execute a command.
|
||||
Public Overrides Function execute() As Boolean
|
||||
|
||||
Dim err As Integer = EDS_ERR_OK
|
||||
|
||||
'// Take a picture.
|
||||
err = EdsSendCommand(MyBase.model.getCameraObject(), EdsCameraCommand.kEdsCameraCommand_PressShutterButton, EdsShutterButton.kEdsCameraCommand_ShutterButton_Completely)
|
||||
EdsSendCommand(MyBase.model.getCameraObject(), EdsCameraCommand.kEdsCameraCommand_PressShutterButton, EdsShutterButton.kEdsCameraCommand_ShutterButton_OFF)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
'// Notify Error.
|
||||
If err <> EDS_ERR_OK Then
|
||||
|
||||
'// Do not retry when the camera replys deviceBusy.
|
||||
If err = EDS_ERR_DEVICE_BUSY Then
|
||||
|
||||
MyBase.model.notifyObservers(warn, err)
|
||||
|
||||
Return True
|
||||
|
||||
End If
|
||||
|
||||
'MyBase.model.notifyObservers(errr, err)
|
||||
|
||||
End If
|
||||
|
||||
Return True
|
||||
|
||||
End Function
|
||||
|
||||
End Class
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,163 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : EDSDKErros.h *
|
||||
'* *
|
||||
'* Description: ERROR DEFINITION FOR EDSDK *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-08 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
'Option Strict Off
|
||||
Option Explicit On
|
||||
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Module EDSDKErrors
|
||||
|
||||
Public Const EDS_ERRORID_MASK As Integer = &HFFFFL
|
||||
|
||||
Public Const EDS_ERR_OK As Integer = 0
|
||||
'/* Miscellaneous errors */
|
||||
Public Const EDS_ERR_UNIMPLEMENTED As Integer = &H1L
|
||||
Public Const EDS_ERR_INTERNAL_ERROR As Integer = &H2L
|
||||
Public Const EDS_ERR_MEM_ALLOC_FAILED As Integer = &H3L
|
||||
Public Const EDS_ERR_MEM_FREE_FAILED As Integer = &H4L
|
||||
Public Const EDS_ERR_OPERATION_CANCELLED As Integer = &H5L
|
||||
Public Const EDS_ERR_INCOMPATIBLE_VERSION As Integer = &H6L
|
||||
Public Const EDS_ERR_NOT_SUPPORTED As Integer = &H7L
|
||||
Public Const EDS_ERR_UNEXPECTED_EXCEPTION As Integer = &H8L
|
||||
Public Const EDS_ERR_PROTECTION_VIOLATION As Integer = &H9L
|
||||
Public Const EDS_ERR_MISSING_SUBCOMPONENT As Integer = &HAL
|
||||
Public Const EDS_ERR_SELECTION_UNAVAILABLE As Integer = &HBL
|
||||
|
||||
'/* File errors */
|
||||
Public Const EDS_ERR_FILE_IO_ERROR As Integer = &H20L
|
||||
Public Const EDS_ERR_FILE_TOO_MANY_OPEN As Integer = &H21L
|
||||
Public Const EDS_ERR_FILE_NOT_FOUND As Integer = &H22L
|
||||
Public Const EDS_ERR_FILE_OPEN_ERROR As Integer = &H23L
|
||||
Public Const EDS_ERR_FILE_CLOSE_ERROR As Integer = &H24L
|
||||
Public Const EDS_ERR_FILE_SEEK_ERROR As Integer = &H25L
|
||||
Public Const EDS_ERR_FILE_TELL_ERROR As Integer = &H26L
|
||||
Public Const EDS_ERR_FILE_READ_ERROR As Integer = &H27L
|
||||
Public Const EDS_ERR_FILE_WRITE_ERROR As Integer = &H28L
|
||||
Public Const EDS_ERR_FILE_PERMISSION_ERROR As Integer = &H29L
|
||||
Public Const EDS_ERR_FILE_DISK_FULL_ERROR As Integer = &H2AL
|
||||
Public Const EDS_ERR_FILE_ALREADY_EXISTS As Integer = &H2BL
|
||||
Public Const EDS_ERR_FILE_FORMAT_UNRECOGNIZED As Integer = &H2CL
|
||||
Public Const EDS_ERR_FILE_DATA_CORRUPT As Integer = &H2DL
|
||||
Public Const EDS_ERR_FILE_NAMING_NA As Integer = &H2EL
|
||||
|
||||
'/* Directory errors */
|
||||
Public Const EDS_ERR_DIR_NOT_FOUND As Integer = &H40L
|
||||
Public Const EDS_ERR_DIR_IO_ERROR As Integer = &H41L
|
||||
Public Const EDS_ERR_DIR_ENTRY_NOT_FOUND As Integer = &H42L
|
||||
Public Const EDS_ERR_DIR_ENTRY_EXISTS As Integer = &H43L
|
||||
Public Const EDS_ERR_DIR_NOT_EMPTY As Integer = &H44L
|
||||
|
||||
'/* Property errors */
|
||||
Public Const EDS_ERR_PROPERTIES_UNAVAILABLE As Integer = &H50L
|
||||
Public Const EDS_ERR_PROPERTIES_MISMATCH As Integer = &H51L
|
||||
Public Const EDS_ERR_PROPERTIES_NOT_LOADED As Integer = &H53L
|
||||
|
||||
'/* Function Parameter errors */
|
||||
Public Const EDS_ERR_INVALID_PARAMETER As Integer = &H60L
|
||||
Public Const EDS_ERR_INVALID_HANDLE As Integer = &H61L
|
||||
Public Const EDS_ERR_INVALID_POINTER As Integer = &H62L
|
||||
Public Const EDS_ERR_INVALID_INDEX As Integer = &H63L
|
||||
Public Const EDS_ERR_INVALID_LENGTH As Integer = &H64L
|
||||
Public Const EDS_ERR_INVALID_FN_POINTER As Integer = &H65L
|
||||
Public Const EDS_ERR_INVALID_SORT_FN As Integer = &H66L
|
||||
|
||||
'/* Device errors */
|
||||
Public Const EDS_ERR_DEVICE_NOT_FOUND As Integer = &H80L
|
||||
Public Const EDS_ERR_DEVICE_BUSY As Integer = &H81L
|
||||
Public Const EDS_ERR_DEVICE_INVALID As Integer = &H82L
|
||||
Public Const EDS_ERR_DEVICE_EMERGENCY As Integer = &H83L
|
||||
Public Const EDS_ERR_DEVICE_MEMORY_FULL As Integer = &H84L
|
||||
Public Const EDS_ERR_DEVICE_INTERNAL_ERROR As Integer = &H85L
|
||||
Public Const EDS_ERR_DEVICE_INVALID_PARAMETER As Integer = &H86L
|
||||
Public Const EDS_ERR_DEVICE_NO_DISK As Integer = &H87L
|
||||
Public Const EDS_ERR_DEVICE_DISK_ERROR As Integer = &H88L
|
||||
Public Const EDS_ERR_DEVICE_CF_GATE_CHANGED As Integer = &H89L
|
||||
Public Const EDS_ERR_DEVICE_DIAL_CHANGED As Integer = &H8AL
|
||||
Public Const EDS_ERR_DEVICE_NOT_INSTALLED As Integer = &H8BL
|
||||
Public Const EDS_ERR_DEVICE_STAY_AWAKE As Integer = &H8CL
|
||||
Public Const EDS_ERR_DEVICE_NOT_RELEASED As Integer = &H8DL
|
||||
|
||||
'/* Stream errors */
|
||||
Public Const EDS_ERR_STREAM_IO_ERROR As Integer = &HA0L
|
||||
Public Const EDS_ERR_STREAM_NOT_OPEN As Integer = &HA1L
|
||||
Public Const EDS_ERR_STREAM_ALREADY_OPEN As Integer = &HA2L
|
||||
Public Const EDS_ERR_STREAM_OPEN_ERROR As Integer = &HA3L
|
||||
Public Const EDS_ERR_STREAM_CLOSE_ERROR As Integer = &HA4L
|
||||
Public Const EDS_ERR_STREAM_SEEK_ERROR As Integer = &HA5L
|
||||
Public Const EDS_ERR_STREAM_TELL_ERROR As Integer = &HA6L
|
||||
Public Const EDS_ERR_STREAM_READ_ERROR As Integer = &HA7L
|
||||
Public Const EDS_ERR_STREAM_WRITE_ERROR As Integer = &HA8L
|
||||
Public Const EDS_ERR_STREAM_PERMISSION_ERROR As Integer = &HA9L
|
||||
Public Const EDS_ERR_STREAM_COULDNT_BEGIN_THREAD As Integer = &HAAL
|
||||
Public Const EDS_ERR_STREAM_BAD_OPTIONS As Integer = &HABL
|
||||
Public Const EDS_ERR_STREAM_END_OF_STREAM As Integer = &HACL
|
||||
|
||||
'/* Communications errors */
|
||||
Public Const EDS_ERR_COMM_PORT_IS_IN_USE As Integer = &HC0L
|
||||
Public Const EDS_ERR_COMM_DISCONNECTED As Integer = &HC1L
|
||||
Public Const EDS_ERR_COMM_DEVICE_INCOMPATIBLE As Integer = &HC2L
|
||||
Public Const EDS_ERR_COMM_BUFFER_FULL As Integer = &HC3L
|
||||
Public Const EDS_ERR_COMM_USB_BUS_ERR As Integer = &HC4L
|
||||
|
||||
'/* Lock/Unlock */
|
||||
Public Const EDS_ERR_USB_DEVICE_LOCK_ERROR As Integer = &HD0L
|
||||
Public Const EDS_ERR_USB_DEVICE_UNLOCK_ERROR As Integer = &HD1L
|
||||
|
||||
'/* STI/WIA */
|
||||
Public Const EDS_ERR_STI_UNKNOWN_ERROR As Integer = &HE0L
|
||||
Public Const EDS_ERR_STI_INTERNAL_ERROR As Integer = &HE1L
|
||||
Public Const EDS_ERR_STI_DEVICE_CREATE_ERROR As Integer = &HE2L
|
||||
Public Const EDS_ERR_STI_DEVICE_RELEASE_ERROR As Integer = &HE3L
|
||||
Public Const EDS_ERR_DEVICE_NOT_LAUNCHED As Integer = &HE4L
|
||||
|
||||
Public Const EDS_ERR_ENUM_NA As Integer = &HF0L
|
||||
Public Const EDS_ERR_INVALID_FN_CALL As Integer = &HF1L
|
||||
Public Const EDS_ERR_HANDLE_NOT_FOUND As Integer = &HF2L
|
||||
Public Const EDS_ERR_INVALID_ID As Integer = &HF3L
|
||||
Public Const EDS_ERR_WAIT_TIMEOUT_ERROR As Integer = &HF4L
|
||||
|
||||
'/* PTP */
|
||||
Public Const EDS_ERR_SESSION_NOT_OPEN As Integer = &H2003
|
||||
Public Const EDS_ERR_INVALID_TRANSACTIONID As Integer = &H2004
|
||||
Public Const EDS_ERR_INCOMPLETE_TRANSFER As Integer = &H2007
|
||||
Public Const EDS_ERR_INVALID_STRAGEID As Integer = &H2008
|
||||
Public Const EDS_ERR_DEVICEPROP_NOT_SUPPORTED As Integer = &H200A
|
||||
Public Const EDS_ERR_INVALID_OBJECTFORMATCODE As Integer = &H200B
|
||||
Public Const EDS_ERR_SELF_TEST_FAILED As Integer = &H2011
|
||||
Public Const EDS_ERR_PARTIAL_DELETION As Integer = &H2012
|
||||
Public Const EDS_ERR_SPECIFICATION_BY_FORMAT_UNSUPPORTED As Integer = &H2014
|
||||
Public Const EDS_ERR_NO_VALID_OBJECTINFO As Integer = &H2015
|
||||
Public Const EDS_ERR_INVALID_CODE_FORMAT As Integer = &H2016
|
||||
Public Const EDS_ERR_UNKNOWN_VENDER_CODE As Integer = &H2017
|
||||
Public Const EDS_ERR_CAPTURE_ALREADY_TERMINATED As Integer = &H2018
|
||||
Public Const EDS_ERR_INVALID_PARENTOBJECT As Integer = &H201A
|
||||
Public Const EDS_ERR_INVALID_DEVICEPROP_FORMAT As Integer = &H201B
|
||||
Public Const EDS_ERR_INVALID_DEVICEPROP_VALUE As Integer = &H201C
|
||||
Public Const EDS_ERR_SESSION_ALREADY_OPEN As Integer = &H201E
|
||||
Public Const EDS_ERR_TRANSACTION_CANCELLED As Integer = &H201F
|
||||
Public Const EDS_ERR_SPECIFICATION_OF_DESTINATION_UNSUPPORTED As Integer = &H2020
|
||||
Public Const EDS_ERR_UNKNOWN_COMMAND As Integer = &HA001
|
||||
Public Const EDS_ERR_OPERATION_REFUSED As Integer = &HA005
|
||||
Public Const EDS_ERR_LENS_COVER_CLOSE As Integer = &HA006
|
||||
Public Const EDS_ERR_LOW_BATTERY As Integer = &HA101
|
||||
Public Const EDS_ERR_OBJECT_NOTREADY As Integer = &HA102
|
||||
|
||||
Public Const EDS_ERR_LAST_GENERIC_ERROR_PLUS_ONE As Integer = &HF5L
|
||||
End Module
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,979 @@
|
||||
'/******************************************************************************
|
||||
'* *
|
||||
'* PROJECT : EOS Digital Software Development Kit EDSDK *
|
||||
'* NAME : EdsTypes.h *
|
||||
'* *
|
||||
'* Description: COMMON DEFINITION FOR EDSDK *
|
||||
'* *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* *
|
||||
'* Written and developed by Camera Design Dept.53 *
|
||||
'* Copyright Canon Inc. 2006 All Rights Reserved *
|
||||
'* *
|
||||
'*******************************************************************************
|
||||
'* File Update Information: *
|
||||
'* DATE Identify Comment *
|
||||
'* ----------------------------------------------------------------------- *
|
||||
'* 06-03-08 F-001 create first version. *
|
||||
'* *
|
||||
'******************************************************************************/
|
||||
'Option Strict Off
|
||||
' versione valida per Windows XP coerente con cartella DepCanonXP
|
||||
#If WinXP Then
|
||||
|
||||
Option Explicit On
|
||||
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
Public Module EDSDKTypes
|
||||
|
||||
'/******************************************************************************
|
||||
' Definition of Data Types
|
||||
'******************************************************************************/
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Data Type
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsDataType
|
||||
kEdsDataType_Unknown = 0
|
||||
kEdsDataType_Bool = 1
|
||||
kEdsDataType_String = 2
|
||||
kEdsDataType_Int8 = 3
|
||||
kEdsDataType_UInt8 = 6
|
||||
kEdsDataType_Int16 = 4
|
||||
kEdsDataType_UInt16 = 7
|
||||
kEdsDataType_Int32 = 8
|
||||
kEdsDataType_UInt32 = 9
|
||||
kEdsDataType_Int64 = 10
|
||||
kEdsDataType_UInt64 = 11
|
||||
kEdsDataType_Float = 12
|
||||
kEdsDataType_Double = 13
|
||||
kEdsDataType_ByteBlock = 14
|
||||
kEdsDataType_Rational = 20
|
||||
kEdsDataType_Point = 21
|
||||
kEdsDataType_Rect = 22
|
||||
kEdsDataType_Time
|
||||
|
||||
kEdsDataType_Bool_Array = 30
|
||||
kEdsDataType_Int8_Array = 31
|
||||
kEdsDataType_Int16_Array = 32
|
||||
kEdsDataType_Int32_Array = 33
|
||||
kEdsDataType_UInt8_Array = 34
|
||||
kEdsDataType_UInt16_Array = 35
|
||||
kEdsDataType_UInt32_Array = 36
|
||||
kEdsDataType_Rational_Array = 37
|
||||
|
||||
kEdsDataType_FocusInfo = 101
|
||||
kEdsDataType_PictureStyleDesc
|
||||
End Enum
|
||||
|
||||
#Region "Property IDs"
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Property IDs()
|
||||
'-----------------------------------------------------------------------------*/
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Camera Setting Properties
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsPropID_Unknown As Integer = &HFFFF '//
|
||||
|
||||
Public Const kEdsPropID_ProductName As Integer = &H2 '// Product name
|
||||
Public Const kEdsPropID_BodyIDEx As Integer = &H15 '// Body ID
|
||||
Public Const kEdsPropID_OwnerName As Integer = &H4 '// Owner
|
||||
Public Const kEdsPropID_MakerName As Integer = &H5 '// Manufacturer
|
||||
Public Const kEdsPropID_DateTime As Integer = &H6 '// For cameras, the system time; for images, the shooting time
|
||||
Public Const kEdsPropID_FirmwareVersion As Integer = &H7 '// Firmware Version
|
||||
Public Const kEdsPropID_BatteryLevel As Integer = &H8 '// Battery state: 0-100% or "AC"
|
||||
|
||||
'// CFn=&h00000002 PFn
|
||||
Public Const kEdsPropID_CFn As Integer = &H9 '// Custom Function settings
|
||||
Public Const kEdsPropID_PFn As Integer = &HA '// Personal Function settings
|
||||
|
||||
Public Const kEdsPropID_SaveTo As Integer = &HB '// Destination where image was saved
|
||||
|
||||
Public Const kEdsPropID_UserWhiteBalanceData As Integer = &H201 '// Set user-defined data in Set1, 2, or 3, or read it out
|
||||
Public Const kEdsPropID_UserToneCurveData As Integer = &H202 '// // Set user-defined data in Set1, 2, or 3, or read it out
|
||||
Public Const kEdsPropID_UserPictureStyleData As Integer = &H203 '// User picture style data
|
||||
|
||||
Public Const kEdsPropID_UserManualWhiteBalanceData As Integer = &H204
|
||||
|
||||
Public Const kEdsPropID_BatteryQuality As Integer = &H10
|
||||
Public Const kEdsPropID_BatteryShutterCount As Integer = &H11
|
||||
Public Const kEdsPropID_BatteryCalibration As Integer = &H12
|
||||
Public Const kEdsPropID_BatteryName As Integer = &H13
|
||||
|
||||
Public Const kEdsPropID_HDDirectoryStructure As Integer = &H20
|
||||
Public Const kEdsPropID_WFTStatus As Integer = &H21
|
||||
|
||||
Public Const kEdsPropID_QuickReviewTime As Integer = &HF
|
||||
Public Const kEdsPropID_ShutterCounter As Integer = &H22
|
||||
Public Const kEdsPropID_PhotoStudioMode As Integer = &H30
|
||||
Public Const kEdsPropID_SpecialOption As Integer = &H31
|
||||
|
||||
|
||||
Public Const kEdsPropID_DataInputTransmission As Integer = &H50
|
||||
Public Const kEdsPropID_Wft_ProfileLockConfig As Integer = &H52
|
||||
Public Const kEdsPropID_Wft_TransmissionConfig As Integer = &H53
|
||||
Public Const kEdsPropID_Wft_TCPIPConfig As Integer = &H54
|
||||
Public Const kEdsPropID_Wft_FTPConfig As Integer = &H55
|
||||
Public Const kEdsPropID_Wft_WirelessConfig As Integer = &H56
|
||||
Public Const kEdsPropID_Wft_WiredConfig As Integer = &H57
|
||||
Public Const kEdsPropID_Wft_SettingsName As Integer = &H58
|
||||
Public Const kEdsPropID_Wft_Info As Integer = &H59
|
||||
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Image Properties
|
||||
'////////////////////////////////////////////
|
||||
|
||||
Public Const kEdsPropID_ImageQuality As Integer = &H100 '// Image quality
|
||||
Public Const kEdsPropID_JpegQuality As Integer = &H101 '// Value representing compression when saved as a JPEG; 1 to 10 (cap)
|
||||
Public Const kEdsPropID_Orientation As Integer = &H102 '// The image orientation
|
||||
Public Const kEdsPropID_ICCProfile As Integer = &H103 '// ICC Profile data
|
||||
Public Const kEdsPropID_FocusInfo As Integer = &H104 '// focus Info
|
||||
|
||||
Public Const kEdsPropID_DigitalExposure As Integer = &H105 '// Digital exposure compensation
|
||||
Public Const kEdsPropID_WhiteBalance As Integer = &H106 '// White balance (light source)
|
||||
Public Const kEdsPropID_ColorTemperature As Integer = &H107 '// Color temperature setting value
|
||||
Public Const kEdsPropID_WhiteBalanceShift As Integer = &H108 '// White balance shift compensation
|
||||
|
||||
Public Const kEdsPropID_Contrast As Integer = &H109 '// Contrast setting
|
||||
Public Const kEdsPropID_ColorSaturation As Integer = &H10A '// Saturation setting
|
||||
Public Const kEdsPropID_ColorTone As Integer = &H10B '// Color tone setting
|
||||
Public Const kEdsPropID_Sharpness As Integer = &H10C '// Sharpness setting value
|
||||
Public Const kEdsPropID_ColorSpace As Integer = &H10D '// Color space setting
|
||||
Public Const kEdsPropID_ToneCurve As Integer = &H10E '// Tone curve (standard or custom)
|
||||
|
||||
Public Const kEdsPropID_PhotoEffect As Integer = &H10F '// Color effect setting
|
||||
Public Const kEdsPropID_FilterEffect As Integer = &H110 '// Filter effect setting
|
||||
Public Const kEdsPropID_ToningEffect As Integer = &H111 '// Gradation effect setting
|
||||
|
||||
Public Const kEdsPropID_ParameterSet As Integer = &H112 '// Processing parameter setting
|
||||
Public Const kEdsPropID_ColorMatrix As Integer = &H113 '// Color matrix setting
|
||||
|
||||
Public Const kEdsPropID_PictureStyle As Integer = &H114 '// Picture style
|
||||
Public Const kEdsPropID_PictureStyleDesc As Integer = &H115 '// Picture style setting details
|
||||
|
||||
Public Const kEdsPropID_PictureStyleCaption As Integer = &H200 '// Computer settings caption for the picture style at the time of shooting
|
||||
Public Const kEdsPropID_CustomWBCaption As Integer = &H204
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Develop Properties
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsPropID_Linear As Integer = &H300 '// Linear processing ON/OFF
|
||||
Public Const kEdsPropID_ClickWBPoint As Integer = &H301 '// Click WB coordinates
|
||||
Public Const kEdsPropID_WBCoeffs As Integer = &H302 '// WB control value
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Property Masks
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsPropID_AtCapture_Flag As Integer = &H80000000
|
||||
'// A supporting property for getting the properties at the time of shooting.
|
||||
'// This property ID cannot be used by itself.
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Capture Properties
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsPropID_AEMode As Integer = &H400 '// Shooting mode
|
||||
Public Const kEdsPropID_AEModeSelect As Integer = &H436 '// Shooting mode
|
||||
Public Const kEdsPropID_DriveMode As Integer = &H401 '// Drive mode (cap)
|
||||
Public Const kEdsPropID_ISOSpeed As Integer = &H402 '// ISO sensitivity setting value
|
||||
Public Const kEdsPropID_MeteringMode As Integer = &H403 '// Metering mode
|
||||
Public Const kEdsPropID_AFMode As Integer = &H404 '// AF mode (cap)
|
||||
Public Const kEdsPropID_Av As Integer = &H405 '// Aperture value (cap) at the time of shooting
|
||||
Public Const kEdsPropID_Tv As Integer = &H406 '// Shutter speed setting value (cap)
|
||||
Public Const kEdsPropID_ExposureCompensation As Integer = &H407 '// Exposure compensation (cap)
|
||||
Public Const kEdsPropID_FlashCompensation As Integer = &H408 '// Flash compensation setting
|
||||
Public Const kEdsPropID_FocalLength As Integer = &H409 '// Lens focal length information at the time of shooting
|
||||
|
||||
Public Const kEdsPropID_AvailableShots As Integer = &H40A '// Number of available shots
|
||||
|
||||
Public Const kEdsPropID_Bracket As Integer = &H40B '// ISO, auto exposure or flash exposure bracket
|
||||
Public Const kEdsPropID_WhiteBalanceBracket As Integer = &H40C '// White balance bracket
|
||||
|
||||
Public Const kEdsPropID_LensName As Integer = &H40D '// String representing the lens name
|
||||
Public Const kEdsPropID_AEBracket As Integer = &H40E '// Auto exposure bracket value
|
||||
Public Const kEdsPropID_FEBracket As Integer = &H40F '// Flash exposure bracket value
|
||||
Public Const kEdsPropID_ISOBracket As Integer = &H410 '// ISO bracket value
|
||||
|
||||
Public Const kEdsPropID_NoiseReduction As Integer = &H411 '// Noise reduction
|
||||
|
||||
Public Const kEdsPropID_FlashOn As Integer = &H412 '// Use of the flash (activated or not)
|
||||
Public Const kEdsPropID_RedEye As Integer = &H413 '// Red-eye reduction
|
||||
Public Const kEdsPropID_FlashMode As Integer = &H414 '// Flash type
|
||||
|
||||
Public Const kEdsPropID_TempStatus As Integer = &H415
|
||||
Public Const kEdsPropID_LensStatus As Integer = &H416
|
||||
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// EVF Properties
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsPropID_Evf_OutputDevice As Integer = &H500
|
||||
Public Const kEdsPropID_Evf_Mode As Integer = &H501
|
||||
Public Const kEdsPropID_Evf_WhiteBalance As Integer = &H502
|
||||
Public Const kEdsPropID_Evf_ColorTemperature As Integer = &H503
|
||||
Public Const kEdsPropID_Evf_DepthOfFieldPreview As Integer = &H504
|
||||
Public Const kEdsPropID_Evf_Sharpness As Integer = &H505
|
||||
Public Const kEdsPropID_Evf_ClickWBCoeffs As Integer = &H506
|
||||
|
||||
'// EVF IMAGE DATA Properties
|
||||
Public Const kEdsPropID_Evf_Zoom As Integer = &H507
|
||||
Public Const kEdsPropID_Evf_ZoomPosition As Integer = &H508
|
||||
Public Const kEdsPropID_Evf_FocusAid As Integer = &H509
|
||||
Public Const kEdsPropID_Evf_Histogram As Integer = &H50A
|
||||
Public Const kEdsPropID_Evf_ImagePosition As Integer = &H50B
|
||||
Public Const kEdsPropID_Evf_HistogramStatus As Integer = &H50C
|
||||
|
||||
#End Region
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Send Commands
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsCameraCommand
|
||||
kEdsCameraCommand_TakePicture 'The camera is requested to take a picture.
|
||||
kEdsCameraCommand_ExtendShutDownTimer ' KeepDeviceOn
|
||||
kEdsCameraCommand_BulbStart
|
||||
kEdsCameraCommand_BulbEnd
|
||||
kEdsCameraCommand_PressShutterButton
|
||||
|
||||
kEdsCameraCommand_DoAfEvf = &H102
|
||||
kEdsCameraCommand_DriveLensEvf = &H103
|
||||
kEdsCameraCommand_DoClickWBEvf = &H104
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Camera State
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsCameraStatusCommand
|
||||
kEdsCameraStatusCommand_UILock '//
|
||||
kEdsCameraStatusCommand_UIUnLock '//
|
||||
kEdsCameraStatusCommand_EnterDirectTransfer '// The camera is changed to direct transmission mode.
|
||||
kEdsCameraStatusCommand_ExitDirectTransfer '// The camera is exited from direct transmission mode.
|
||||
End Enum
|
||||
|
||||
Public Enum EdsShutterButton
|
||||
kEdsCameraCommand_ShutterButton_OFF = &H0
|
||||
kEdsCameraCommand_ShutterButton_Halfway = &H1
|
||||
kEdsCameraCommand_ShutterButton_Completely = &H3
|
||||
kEdsCameraCommand_ShutterButton_Halfway_NonAF = &H10001
|
||||
kEdsCameraCommand_ShutterButton_Completely_NonAF = &H10003
|
||||
End Enum
|
||||
|
||||
#Region "CAMERE EVENTS"
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Camera Events
|
||||
'-----------------------------------------------------------------------------*/
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Property Event
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsPropertyEvent_All As Integer = &H100
|
||||
|
||||
Public Const kEdsPropertyEvent_PropertyChanged As Integer = &H101
|
||||
' The value of the property specified
|
||||
'// by the parameter has changed.
|
||||
'// If it is necessary, it should be
|
||||
'// re-acquired.
|
||||
'// When property is not specified,
|
||||
'// it is necessary to acquire all parameters.
|
||||
|
||||
Public Const kEdsPropertyEvent_PropertyDescChanged As Integer = &H102
|
||||
'// The value of the property specified
|
||||
'// by the parameter has changed.
|
||||
'// If it is necessary, it should be
|
||||
'// re-acquired.
|
||||
'// When property is not specified,
|
||||
'// it is necessary to acquire all parameters.
|
||||
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// Object Event
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsObjectEvent_All As Integer = &H200 '// Indicates that the VolumeInfo dataset
|
||||
|
||||
Public Const kEdsObjectEvent_VolumeInfoChanged As Integer = &H201
|
||||
'// Indicates that the VolumeInfo dataset
|
||||
'// for a particular object has changed,
|
||||
'// and that it should be re-requested.
|
||||
|
||||
Public Const kEdsObjectEvent_VolumeUpdateItems As Integer = &H202
|
||||
'//
|
||||
Public Const kEdsObjectEvent_FolderUpdateItems As Integer = &H203
|
||||
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemCreated As Integer = &H204
|
||||
'// The file or the folder was created.
|
||||
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemRemoved As Integer = &H205
|
||||
'// The file or the folder was removed.
|
||||
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemInfoChanged As Integer = &H206
|
||||
'// Indicates that the DirectoryItemInfo dataset
|
||||
'// for a particular object has changed,
|
||||
'// and that it should be re-requested.
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemContentChanged As Integer = &H207
|
||||
'// DS_Event_ObjectContentChanged
|
||||
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemRequestTransfer As Integer = &H208
|
||||
'// Indicates that there is an object that
|
||||
'// should be transferred.
|
||||
'// Please download the object specified
|
||||
'// by the parameter when you receive
|
||||
'// this event.
|
||||
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemRequestTransferDT As Integer = &H209
|
||||
'// Indicates that the direct forwarding
|
||||
'// button of the camera was pushed.
|
||||
'// Please download the object specified
|
||||
'// by the parameter when you receive
|
||||
'// this event.
|
||||
|
||||
Public Const kEdsObjectEvent_DirItemCancelTransferDT As Integer = &H20A
|
||||
'// Indicates that the cancellation button
|
||||
'// of the camera was pushed while transfering
|
||||
'// Please discontinue transfering the object
|
||||
'// specified by the parameter.
|
||||
'//
|
||||
Public Const kEdsObjectEvent_VolumeAdded As Integer = &H20C
|
||||
Public Const kEdsObjectEvent_VolumeRemoved As Integer = &H20D
|
||||
|
||||
'////////////////////////////////////////////
|
||||
'// State Event
|
||||
'////////////////////////////////////////////
|
||||
Public Const kEdsStateEvent_All As Integer = &H300
|
||||
|
||||
Public Const kEdsStateEvent_Shutdown As Integer = &H301 '// The camera shut down.
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_JobStatusChanged As Integer = &H302
|
||||
'// the state of the presence of the object
|
||||
'// that should be transferred has changed.
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_WillSoonShutDown As Integer = &H303
|
||||
'// After the time passage of the time-out,
|
||||
'// the connection with the camera is cut.
|
||||
'// It depends on the setting of the camera
|
||||
'// about the time-out time.
|
||||
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_ShutDownTimerUpdate As Integer = &H304
|
||||
'// After the WillSoonShutDown event,
|
||||
'// the shutdown timer has updated.
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_CaptureError As Integer = &H305
|
||||
'// It failed in capture because
|
||||
'// hardware error occurred by the camera.
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_InternalError As Integer = &H306 '// The error occurred in SDK.
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_AfResult As Integer = &H309
|
||||
|
||||
|
||||
Public Const kEdsStateEvent_BulbExposureTime As Integer = &H310
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Drive Lens
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsEvfDriveLens
|
||||
kEdsEvfDriveLens_Near1 = 1
|
||||
kEdsEvfDriveLens_Near2 = 2
|
||||
kEdsEvfDriveLens_Near3 = 3
|
||||
kEdsEvfDriveLens_Far1 = &H8001
|
||||
kEdsEvfDriveLens_Far2 = &H8002
|
||||
kEdsEvfDriveLens_Far3 = &H8003
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Drive Lens
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsEvfDepthOfFieldPreview
|
||||
kEdsEvfDepthOfFieldPreview_OFF = 0
|
||||
kEdsEvfDepthOfFieldPreview_ON = 1
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Stream Seek Origins
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsSeekOrigin
|
||||
kEdsSeek_Cur = 0 '// Seek from Current Point
|
||||
kEdsSeek_Begin '// Seek from Start Point
|
||||
kEdsSeek_End '// Seek from End Point
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' File and Propaties Access
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsAccess
|
||||
kEdsAccess_Read = 0 ' // Enables subsequent open operations on the object to
|
||||
'// request read access.
|
||||
kEdsAccess_Write ', // Enables subsequent open operations on the object to
|
||||
' // request write access.
|
||||
kEdsAccess_ReadWrite ', // Enables subsequent open operations on the object to
|
||||
'// request read and write access.
|
||||
kEdsAccess_Error = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' File Create Disposition
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsFileCreateDisposition
|
||||
kEdsFileCreateDisposition_CreateNew = 0
|
||||
'// Creates a new file. The function fails
|
||||
'// if the specified file already exists.
|
||||
kEdsFileCreateDisposition_CreateAlways
|
||||
'// Creates a new file. If the file exists,
|
||||
'// the function overwrites the file and clears
|
||||
'// the existing attributes.
|
||||
kEdsFileCreateDisposition_OpenExisting
|
||||
'// Opens the file. The function fails
|
||||
'// if the file does not exist.
|
||||
kEdsFileCreateDisposition_OpenAlways
|
||||
'// Opens the file, if it exists.
|
||||
'// If the file does not exist,
|
||||
'// the function creates the file.
|
||||
kEdsFileCreateDisposition_TruncateExsisting
|
||||
'// Opens the file. Once opened, the file is
|
||||
'// truncated so that its size is zero bytes.
|
||||
'// The function fails if the file does not exist.
|
||||
End Enum
|
||||
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Image Type
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsImageType
|
||||
kEdsImageType_Unknown = &H0
|
||||
kEdsImageType_Jpeg = &H1
|
||||
kEdsImageType_CRW = &H2
|
||||
kEdsImageType_RAW = &H4
|
||||
kEdsImageType_CR2 = &H6
|
||||
End Enum
|
||||
|
||||
|
||||
Public Enum EdsTargetImageType
|
||||
kEdsTargetImageType_Unknown = &H0
|
||||
kEdsTargetImageType_Jpeg = &H1
|
||||
kEdsTargetImageType_TIFF = &H7 '// 8bitTIFF
|
||||
kEdsTargetImageType_TIFF16 = &H8 '// 16bitTIFF
|
||||
kEdsTargetImageType_RGB = &H9 '// 8bitRGB
|
||||
kEdsTargetImageType_RGB16 = &HA '// 16bitRGB
|
||||
End Enum
|
||||
|
||||
|
||||
Public Enum EdsImageSize
|
||||
kEdsImageSize_Large = 0
|
||||
kEdsImageSize_Middle = 1
|
||||
kEdsImageSize_Small = 2
|
||||
kEdsImageSize_Middle1 = 5
|
||||
kEdsImageSize_Middle2 = 6
|
||||
kEdsImageSize_Unknown = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
|
||||
Public Enum EdsImageQuality
|
||||
kEdsImageQuality_Normal = 2
|
||||
kEdsImageQuality_Fine = 3
|
||||
kEdsImageQuality_Lossless = 4
|
||||
kEdsImageQuality_SuperFine = 5
|
||||
kEdsImageQuality_Unknown = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
|
||||
Public Enum EdsImageSource
|
||||
kEdsImageSrc_FullView
|
||||
kEdsImageSrc_Thumbnail
|
||||
kEdsImageSrc_Preview
|
||||
kEdsImageSrc_RAWThumbnail
|
||||
kEdsImageSrc_RAWFullView
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Progress Option
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsProgressOption
|
||||
kEdsProgressOption_NoReport = 0 '// no callback.
|
||||
kEdsProgressOption_Done '// performs callback only at once
|
||||
'// at the time of an end.
|
||||
kEdsProgressOption_Periodically '// performs callback periodically.
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' file attribute
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsFileAttributes
|
||||
kEdsFileAttribute_Normal = &H0
|
||||
kEdsFileAttribute_ReadOnly = &H1
|
||||
kEdsFileAttribute_Hidden = &H2
|
||||
kEdsFileAttribute_System = &H4
|
||||
kEdsFileAttribute_Archive = &H20
|
||||
End Enum
|
||||
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Battery level
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsBatteryLevel
|
||||
kEdsBatteryLevel_Empty = 1
|
||||
kEdsBatteryLevel_Low = 30
|
||||
kEdsBatteryLevel_Half = 50
|
||||
kEdsBatteryLevel_Normal = 80
|
||||
kEdsBatteryLevel_AC = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Save To
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsSaveTo
|
||||
kEdsSaveTo_Camera = 1
|
||||
kEdsSaveTo_Host = 2
|
||||
kEdsSaveTo_Both = kEdsSaveTo_Camera + kEdsSaveTo_Host
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' StorageType
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsStorageType
|
||||
kEdsStorageType_Non = 0
|
||||
kEdsStorageType_CF = 1
|
||||
kEdsStorageType_SD = 2
|
||||
End Enum
|
||||
|
||||
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' White Balance
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsWhiteBalance
|
||||
kEdsWhiteBalance_Auto = 0
|
||||
kEdsWhiteBalance_Daylight = 1
|
||||
kEdsWhiteBalance_Cloudy = 2
|
||||
kEdsWhiteBalance_Tangsten = 3
|
||||
kEdsWhiteBalance_Fluorescent = 4
|
||||
kEdsWhiteBalance_Strobe = 5
|
||||
kEdsWhiteBalance_WhitePaper = 6
|
||||
kEdsWhiteBalance_Shade = 8
|
||||
kEdsWhiteBalance_ColorTemp = 9
|
||||
kEdsWhiteBalance_PCSet1 = 10
|
||||
kEdsWhiteBalance_PCSet2 = 11
|
||||
kEdsWhiteBalance_PCSet3 = 12
|
||||
|
||||
kEdsWhiteBalance_Click = -1
|
||||
kEdsWhiteBalance_Pasted = -2
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Photo Effect
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsPhotoEffect
|
||||
kEdsPhotoEffect_Off = 0
|
||||
kEdsPhotoEffect_Monochrome = 5
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Color Matrix
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsColorMatrix
|
||||
kEdsColorMatrix_Custom = 0
|
||||
kEdsColorMatrix_1 = 1
|
||||
kEdsColorMatrix_2 = 2
|
||||
kEdsColorMatrix_3 = 3
|
||||
kEdsColorMatrix_4 = 4
|
||||
kEdsColorMatrix_5 = 5
|
||||
kEdsColorMatrix_6 = 6
|
||||
kEdsColorMatrix_7 = 7
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Filter Effect
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsFilterEffect
|
||||
kEdsFilterEffect_None = 0
|
||||
kEdsFilterEffect_Yellow = 1
|
||||
kEdsFilterEffect_Orange = 2
|
||||
kEdsFilterEffect_Red = 3
|
||||
kEdsFilterEffect_Green = 4
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Toning Effect
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsTonigEffect
|
||||
kEdsTonigEffect_None = 0
|
||||
kEdsTonigEffect_Sepia = 1
|
||||
kEdsTonigEffect_Blue = 2
|
||||
kEdsTonigEffect_Purple = 3
|
||||
kEdsTonigEffect_Green = 4
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Color Space
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsColorSpace
|
||||
kEdsColorSpace_sRGB = 1
|
||||
kEdsColorSpace_AdobeRGB = 2
|
||||
kEdsColorSpace_Unknown = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' PictureStyle
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsPictureStyle
|
||||
kEdsPictureStyle_Standard = &H81
|
||||
kEdsPictureStyle_Portrait = &H82
|
||||
kEdsPictureStyle_Landscape = &H83
|
||||
kEdsPictureStyle_Neutral = &H84
|
||||
kEdsPictureStyle_Faithful = &H85
|
||||
kEdsPictureStyle_Monochrome = &H86
|
||||
kEdsPictureStyle_User1 = &H21
|
||||
kEdsPictureStyle_User2 = &H22
|
||||
kEdsPictureStyle_User3 = &H23
|
||||
kEdsPictureStyle_PC1 = &H41
|
||||
kEdsPictureStyle_PC2 = &H42
|
||||
kEdsPictureStyle_PC3 = &H43
|
||||
End Enum
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Transfer Option
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Enum EdsTransferOption
|
||||
kEdsTransferOption_ByDirectTransfer = 1
|
||||
kEdsTransferOption_ByRelease = 2
|
||||
kEdsTransferOption_ToDesktop = &H100
|
||||
End Enum
|
||||
|
||||
|
||||
|
||||
Public Enum EdsAEMode
|
||||
kEdsAEMode_Program = 0
|
||||
kEdsAEMode_Tv = 1
|
||||
kEdsAEMode_Av = 2
|
||||
kEdsAEMode_Manual = 3
|
||||
kEdsAEMode_Bulb = 4
|
||||
kEdsAEMode_A_DEP = 5
|
||||
kEdsAEMode_DEP = 6
|
||||
kEdsAEMode_Custom = 7
|
||||
kEdsAEMode_Lock = 8
|
||||
kEdsAEMode_Green = 9
|
||||
kEdsAEMode_NightPortrait = 10
|
||||
kEdsAEMode_Sports = 11
|
||||
kEdsAEMode_Portrait = 12
|
||||
kEdsAEMode_Landscape = 13
|
||||
kEdsAEMode_Closeup = 14
|
||||
kEdsAEMode_FlashOff = 15
|
||||
kEdsAEMode_CreativeAuto = 19
|
||||
kEdsAEMode_Movie = 20
|
||||
kEdsAEMode_PhotoInMovie = 21
|
||||
kEdsAEMode_SceneIntelligentAuto = 22
|
||||
kEdsAEMode_SCN = 25
|
||||
kEdsAEMode_Unknown = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Bracket
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsBracket
|
||||
kEdsBracket_AEB = &H1
|
||||
kEdsBracket_ISOB = &H2
|
||||
kEdsBracket_WBB = &H4
|
||||
kEdsBracket_FEB = &H8
|
||||
kEdsBracket_Unknown = &HFFFFFFFF
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Temp status
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsTempStatus
|
||||
kEdsTempStatus_Normal = 0
|
||||
kEdsTempStatus_Warning = 1
|
||||
kEdsTempStatus_Disable_LV = 2
|
||||
kEdsTempStatus_Disable_Capture = 3
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' EVF Output Device [Flag]
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsEvfOutputDevice
|
||||
kEdsEvfOutputDevice_TFT = 1
|
||||
kEdsEvfOutputDevice_PC = 2
|
||||
End Enum
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' EVF Zoom
|
||||
'-----------------------------------------------------------------------------*/
|
||||
Public Enum EdsEvfZoom
|
||||
kEdsEvfZoom_Fit = 1
|
||||
kEdsEvfZoom_x5 = 5
|
||||
kEdsEvfZoom_x10 = 10
|
||||
End Enum
|
||||
|
||||
'/******************************************************************************
|
||||
' Definition of Structures
|
||||
'******************************************************************************/
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Point
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsPoint
|
||||
Public x As Integer
|
||||
Public y As Integer
|
||||
End Structure
|
||||
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsSize
|
||||
Public width As Integer
|
||||
Public height As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Rectangle
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsRect '
|
||||
Public point As EdsPoint
|
||||
Public size As EdsSize
|
||||
End Structure
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Rational
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsRational
|
||||
Public numerator As Integer
|
||||
Public denominator As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Time
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsTime
|
||||
Public year As Integer '// year
|
||||
Public month As Integer '// month 1=January, 2=February, ...
|
||||
Public day As Integer '// day
|
||||
Public hour As Integer '// hour
|
||||
Public minute As Integer '// minute
|
||||
Public second As Integer '// second
|
||||
Public milliseconds As Integer '// reserved
|
||||
End Structure
|
||||
|
||||
|
||||
'/******************************************************************************
|
||||
' Definition of Constants
|
||||
'******************************************************************************/
|
||||
Public Const EDS_MAX_NAME As Short = 256
|
||||
Public Const EDS_TRANSFER_BLOCK_SIZE As Integer = 512
|
||||
'// When the DirectoryItem is downloaded
|
||||
'// or uploaded separately for the plural
|
||||
'// block, The size of the block
|
||||
'// other than the terminal block should be
|
||||
'// assumed to be a multiple in 512 bytes.
|
||||
|
||||
|
||||
'/******************************************************************************
|
||||
' Camera Detect Evnet Handler
|
||||
'******************************************************************************/
|
||||
Public Delegate Function EdsCameraAddedHandler( _
|
||||
ByVal inContext As IntPtr) As Long
|
||||
|
||||
|
||||
'/******************************************************************************
|
||||
' Callback Functions
|
||||
'******************************************************************************/
|
||||
Public Delegate Function EdsProgressCallback( _
|
||||
ByVal inPercent As Integer, _
|
||||
ByVal inContext As IntPtr, _
|
||||
ByRef outCancel As Boolean) As Long
|
||||
|
||||
|
||||
'/******************************************************************************
|
||||
' Evnet Handler
|
||||
'******************************************************************************/
|
||||
Public Delegate Function EdsPropertyEventHandler( _
|
||||
ByVal inEvent As Integer, _
|
||||
ByVal inPropertyID As Integer, _
|
||||
ByVal inParam As Integer, _
|
||||
ByVal inContext As IntPtr) As Long
|
||||
|
||||
|
||||
Public Delegate Function EdsObjectEventHandler( _
|
||||
ByVal inEvent As Integer, _
|
||||
ByVal inRef As IntPtr, _
|
||||
ByVal inContext As IntPtr) As Long
|
||||
|
||||
|
||||
Public Delegate Function EdsStateEventHandler( _
|
||||
ByVal inEvent As Integer, _
|
||||
ByVal inEventData As Integer, _
|
||||
ByVal inContext As IntPtr) As Long
|
||||
|
||||
|
||||
|
||||
'/******************************************************************************
|
||||
' Definition of Structures
|
||||
'******************************************************************************/
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Device Info
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsDeviceInfo
|
||||
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=EDS_MAX_NAME)> Public szPortName As String
|
||||
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=EDS_MAX_NAME)> Public szDeviceDescription As String
|
||||
Public DeviceSubType As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Volume Info
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsVolumeInfo
|
||||
Public storageType As Integer
|
||||
Public access As Integer
|
||||
Public maxCapacity As Int64
|
||||
Public freeSpaceInBytes As Int64
|
||||
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=EDS_MAX_NAME)> Public szVolumeLabel As String
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' DirectoryItem Info
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsDirectoryItemInfo
|
||||
Public size As Integer
|
||||
Public isFolder As Boolean
|
||||
Public groupID As Integer
|
||||
Public opt As Integer
|
||||
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=EDS_MAX_NAME)> Public szFileName As String
|
||||
Public format As Integer
|
||||
Public dateTime As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Image Info
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsImageInfo
|
||||
Public width As Integer '// image width
|
||||
Public height As Integer '// image height
|
||||
|
||||
Public numOfComponents As Integer '// number of color components in image.
|
||||
Public componentDepth As Integer '// bits per sample. 8 or 16.
|
||||
|
||||
Public effectiveRect As EdsRect
|
||||
'// Effective rectangles except
|
||||
'// a black line of the image.
|
||||
'// A black line might be in the top and bottom
|
||||
'// of the thumbnail image.
|
||||
|
||||
Public reserved1 As Integer
|
||||
Public reserved2 As Integer
|
||||
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' SaveImageSetting
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsSaveImageSetting
|
||||
Public JPEGQuality As Integer
|
||||
Public iccProfileStream As IntPtr
|
||||
Public reserved As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Property Desc
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsPropertyDesc
|
||||
Public form As Integer
|
||||
Public access As Integer
|
||||
Public numElements As Integer
|
||||
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=128)> Public propDesc() As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'////////////////////////////////////////////////////////////////////////////////
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Picture Style Desc
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsPictureStyleDesc
|
||||
Public contrast As Integer
|
||||
Public sharpness As Integer
|
||||
Public saturation As Integer
|
||||
Public colorTone As Integer
|
||||
Public filterEffect As Integer
|
||||
Public toningEffect As Integer
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Focus Info
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsFocusPoint
|
||||
Public valid As Integer '// if the frame is valid.
|
||||
Public justFocus As Integer '// if the frame is just focus.
|
||||
Public rect As EdsRect '// rectangle of focus point.
|
||||
Public reserved As Integer '// reserved
|
||||
End Structure
|
||||
|
||||
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsFocusInfo
|
||||
Public imageRect As EdsRect '// rectangle of the image.
|
||||
Public pointNumber As Integer '// number of point.
|
||||
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=128)> Public focusPoint() As EdsFocusPoint '// each frame's description.
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' User WhiteBalance (PC set1,2,3)/ User ToneCurve / User PictureStyle dataset
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsUsersetData
|
||||
Public valid As Integer
|
||||
Public dataSize As Integer
|
||||
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=32)> Public szCaption As String
|
||||
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=1)> Public data() As Byte
|
||||
End Structure
|
||||
|
||||
|
||||
'/*-----------------------------------------------------------------------------
|
||||
' Capacity
|
||||
'-----------------------------------------------------------------------------*/
|
||||
<StructLayout(LayoutKind.Sequential)> Public Structure EdsCapacity
|
||||
Public numberOfFreeClusters As Integer '// free clusters
|
||||
Public bytesPerSector As Integer '// sectors per cluster
|
||||
Public reset As Boolean
|
||||
End Structure
|
||||
|
||||
|
||||
|
||||
End Module
|
||||
#End If
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
; Commento per evitare BOM con UTF-8
|
||||
[Data]
|
||||
DataRoot=c:\ProgramData\Egaltech\CameraMng\
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user