Commit 2eba917a authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52497 954022d7-b5bf-4e40-9824-e11837661b57
parent fe156513
......@@ -44,11 +44,6 @@ ASCImageStudio3/ASCImageEditor/ASCImageEditor/Commands/Images/split.png svn_mime
ASCImageStudio3/ASCImageEditor/ASCImageEditor/non-activated-wathermark.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/ASCImageEditor/non-activated-wathermark_onlylogo.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/ASCImageEditor/non-activated-wathermark_small.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuFileOpenIcon.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewGridIcon.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewRulersIcon.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomInIcon.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageEditor/TestViewManager/Images/MenuViewZoomOutIcon.png svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageFile3/Libs/GrayDither.lib svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageFile3/Libs/GrayDither/GrayDither.lib svn_mime_002dtype=application%2Foctet-stream
ASCImageStudio3/ASCImageFile3/Libs/LibJ2K.lib svn_mime_002dtype=application%2Foctet-stream
......
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2008
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ASCImageEditor", "ASCImageEditor\ASCImageEditor.vcproj", "{E1A619A1-625C-40CC-A304-42A36D26CF4F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestViewManager", "TestViewManager\TestViewManager.csproj", "{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}"
ProjectSection(ProjectDependencies) = postProject
{E1A619A1-625C-40CC-A304-42A36D26CF4F} = {E1A619A1-625C-40CC-A304-42A36D26CF4F}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -35,21 +30,6 @@ Global
{E1A619A1-625C-40CC-A304-42A36D26CF4F}.Release|Mixed Platforms.Build.0 = Release|Win32
{E1A619A1-625C-40CC-A304-42A36D26CF4F}.Release|Win32.ActiveCfg = Release|Win32
{E1A619A1-625C-40CC-A304-42A36D26CF4F}.Release|Win32.Build.0 = Release|Win32
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Debug|Win32.ActiveCfg = Debug|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Any CPU.ActiveCfg = Release UNICODE|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Any CPU.Build.0 = Release UNICODE|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Mixed Platforms.ActiveCfg = Release UNICODE|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Mixed Platforms.Build.0 = Release UNICODE|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release UNICODE|Win32.ActiveCfg = Release UNICODE|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Any CPU.Build.0 = Release|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{BCB61D3D-224D-4FE7-A704-62B9627EC0CA}.Release|Win32.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
......@@ -2,7 +2,7 @@
//
#include "resource.h"
#define COMPONENT_NAME "ImageEditor"
#include "../../Common/FileInfo.h"
#include "../../../Common/FileInfo.h"
#include "version.h"
#define APSTUDIO_READONLY_SYMBOLS
......
......@@ -7,7 +7,7 @@
/* Crop COMMAND ----- ID = 102 */
/************************************************************************/
#include "../../../AVSVideoStudio3/Common/AVSUtils.h"
#include "../../../Common/ASCUtils.h"
#include <math.h>
using namespace Gdiplus;
......
......@@ -7,7 +7,7 @@
/* PRINT COMMAND ----- ID = 110 */
/************************************************************************/
#include "AVSUtils.h"
#include "ASCUtils.h"
#include <math.h>
#include "Commands/CommandsUtils.h"
//#include "atlprint.h"
......
......@@ -7,7 +7,7 @@
/* Resize COMMAND ----- ID = 103 */
/************************************************************************/
#include "AVSUtils.h"
#include "ASCUtils.h"
#include <math.h>
#include "Commands/CommandsUtils.h"
......
#pragma once
#include "../../../../../Common/ATLDefine.h"
#include "../../../Common/ATLDefine.h"
//#include "x:\Common\WindowsEx.h"
#include "../../../../../Common/GdiPlusEx.h"
#include "../../Common/GdiPlusEx.h"
#include <atlutil.h>
#include <Wingdi.h>
......
......@@ -19,11 +19,13 @@
extern "C" {
#endif
EXTERN_PROXY_FILE( _ASCImageEditor )
EXTERN_PROXY_FILE( _AVSImageEditor )
PROXYFILE_LIST_START
/* Start of list */
REFERENCE_PROXY_FILE( _ASCImageEditor ),
REFERENCE_PROXY_FILE( _AVSImageEditor ),
/* End of list */
PROXYFILE_LIST_END
......
......@@ -2,6 +2,6 @@
//1
//0
//1
//749
#define INTVER 1,0,1,749
#define STRVER "1,0,1,749\0"
//750
#define INTVER 1,0,1,750
#define STRVER "1,0,1,750\0"
namespace TestViewManager
{
partial class ControlBrightnessContrastProperties
{
/// <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.textContrast = new System.Windows.Forms.TextBox();
this.trackContrast = new System.Windows.Forms.TrackBar();
this.labelContast = new System.Windows.Forms.Label();
this.textBrightness = new System.Windows.Forms.TextBox();
this.trackBrightness = new System.Windows.Forms.TrackBar();
this.labelBrightness = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.trackContrast)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBrightness)).BeginInit();
this.SuspendLayout();
//
// textContrast
//
this.textContrast.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textContrast.Enabled = false;
this.textContrast.Location = new System.Drawing.Point(131, 69);
this.textContrast.Name = "textContrast";
this.textContrast.Size = new System.Drawing.Size(48, 20);
this.textContrast.TabIndex = 35;
//
// trackContrast
//
this.trackContrast.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackContrast.AutoSize = false;
this.trackContrast.Location = new System.Drawing.Point(3, 68);
this.trackContrast.Name = "trackContrast";
this.trackContrast.Size = new System.Drawing.Size(122, 28);
this.trackContrast.TabIndex = 34;
this.trackContrast.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackContrast.ValueChanged += new System.EventHandler(this.trackContrast_ValueChanged);
//
// labelContast
//
this.labelContast.AutoSize = true;
this.labelContast.Location = new System.Drawing.Point(5, 52);
this.labelContast.Name = "labelContast";
this.labelContast.Size = new System.Drawing.Size(46, 13);
this.labelContast.TabIndex = 33;
this.labelContast.Text = "Contrast";
//
// textBrightness
//
this.textBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textBrightness.Enabled = false;
this.textBrightness.Location = new System.Drawing.Point(131, 25);
this.textBrightness.Name = "textBrightness";
this.textBrightness.Size = new System.Drawing.Size(48, 20);
this.textBrightness.TabIndex = 32;
//
// trackBrightness
//
this.trackBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackBrightness.AutoSize = false;
this.trackBrightness.Location = new System.Drawing.Point(3, 24);
this.trackBrightness.Name = "trackBrightness";
this.trackBrightness.Size = new System.Drawing.Size(122, 28);
this.trackBrightness.TabIndex = 31;
this.trackBrightness.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackBrightness.ValueChanged += new System.EventHandler(this.trackBrightness_ValueChanged);
//
// labelBrightness
//
this.labelBrightness.AutoSize = true;
this.labelBrightness.Location = new System.Drawing.Point(5, 8);
this.labelBrightness.Name = "labelBrightness";
this.labelBrightness.Size = new System.Drawing.Size(56, 13);
this.labelBrightness.TabIndex = 30;
this.labelBrightness.Text = "Brightness";
//
// ControlBrightnessContrastProperties
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.textContrast);
this.Controls.Add(this.trackContrast);
this.Controls.Add(this.labelContast);
this.Controls.Add(this.textBrightness);
this.Controls.Add(this.trackBrightness);
this.Controls.Add(this.labelBrightness);
this.Name = "ControlBrightnessContrastProperties";
this.Size = new System.Drawing.Size(183, 112);
((System.ComponentModel.ISupportInitialize)(this.trackContrast)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBrightness)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textContrast;
private System.Windows.Forms.TrackBar trackContrast;
private System.Windows.Forms.Label labelContast;
private System.Windows.Forms.TextBox textBrightness;
private System.Windows.Forms.TrackBar trackBrightness;
private System.Windows.Forms.Label labelBrightness;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace TestViewManager
{
public partial class ControlBrightnessContrastProperties : UserControl
{
private bool m_bIsUpdate = true;
private AVSImageEditor.ICommand m_oCommand = null;
public ControlBrightnessContrastProperties()
{
InitializeComponent();
}
public void FromCommand(AVSImageEditor.ICommand oCommand)
{
m_bIsUpdate = false;
m_oCommand = oCommand;
int nParamsCount = m_oCommand.GetParamsCount();
for (int i = 0; i < nParamsCount; ++i)
{
AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i);
if (curParam.GetName() == "Brightness")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackBrightness.SetRange(minV, maxV);
trackBrightness.Value = Val;
textBrightness.Text = Val.ToString();
}
}
if (curParam.GetName() == "Contrast")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackContrast.SetRange(minV, maxV);
trackContrast.Value = Val;
textContrast.Text = Val.ToString();
}
}
}
m_bIsUpdate = true;
}
private void trackBrightness_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackBrightness.Value;
textBrightness.Text = trackBrightness.Value.ToString();
}
private void trackContrast_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackContrast.Value;
textContrast.Text = trackContrast.Value.ToString();
}
}
}
<?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>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace TestViewManager
{
public partial class ControlBrushProperties : UserControl
{
private bool m_bIsUpdate = true;
private AVSImageEditor.ICommand m_oCommand = null;
public ControlBrushProperties()
{
InitializeComponent();
}
public void FromCommand(AVSImageEditor.ICommand oCommand)
{
m_bIsUpdate = false;
m_oCommand = oCommand;
int nParamsCount = m_oCommand.GetParamsCount();
for (int i = 0; i < nParamsCount; ++i)
{
AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i);
if (curParam.GetName() == "Type")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 Val = (Int32)curParam.Value;
comboType.SelectedIndex = Val;
}
}
if (curParam.GetName() == "Size")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackSize.SetRange(minV, maxV);
trackSize.Value = Val;
textSize.Text = Val.ToString();
}
}
if (curParam.GetName() == "Level")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackLevel.SetRange(minV, maxV);
trackLevel.Value = Val;
textLevel.Text = Val.ToString();
}
}
/*
if (curParam.GetName() == "Brightness")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackLevel.SetRange(minV, maxV);
trackLevel.Value = Val;
textLevel.Text = Val.ToString();
}
}
if (curParam.GetName() == "LimitBrightness")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackLimitBrightness.SetRange(minV, maxV);
trackLimitBrightness.Value = Val;
textLimitBrightness.Text = Val.ToString();
}
}
if (curParam.GetName() == "Contrast")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackContrast.SetRange(minV, maxV);
trackContrast.Value = Val;
textContrast.Text = Val.ToString();
}
}
*/
}
m_bIsUpdate = true;
}
private void trackSize_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackSize.Value;
textSize.Text = trackSize.Value.ToString();
}
private void trackBrightness_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackLevel.Value;
textLevel.Text = trackLevel.Value.ToString();
}
private void trackLimitBrightness_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(3))).Value = trackLimitBrightness.Value;
textLimitBrightness.Text = trackLimitBrightness.Value.ToString();
}
private void trackContrast_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(4))).Value = trackContrast.Value;
textContrast.Text = trackContrast.Value.ToString();
}
private void comboType_SelectedIndexChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = comboType.SelectedIndex;
}
}
}
<?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>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace TestViewManager.CommandParams
{
public partial class ControlCropProperties : UserControl
{
private bool m_bIsUpdate = true;
private AVSImageEditor.ICommand m_oCommand = null;
public ControlCropProperties()
{
InitializeComponent();
}
public void FromCommand(AVSImageEditor.ICommand oCommand)
{
m_bIsUpdate = false;
m_oCommand = oCommand;
int nParamsCount = m_oCommand.GetParamsCount();
for (int i = 0; i < nParamsCount; ++i)
{
AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i);
if (curParam.GetName() == "Width")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackWidthCrop.SetRange(minV, maxV);
trackWidthCrop.Value = Val;
textWidthCrop.Text = Val.ToString();
}
}
if (curParam.GetName() == "Height")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackHeightCrop.SetRange(minV, maxV);
trackHeightCrop.Value = Val;
textHeightCrop.Text = Val.ToString();
}
}
if (curParam.GetName() == "Angle")
{
if (curParam.GetMinValue() is Double &&
curParam.GetMaxValue() is Double)
{
Int32 minV = (Int32)(Double)curParam.GetMinValue();
Int32 maxV = (Int32)(Double)curParam.GetMaxValue();
Int32 Val = (Int32)(Double)curParam.Value;
trackAngle.SetRange(minV, maxV);
trackAngle.Value = Val;
textAngle.Text = Val.ToString();
}
}
if (curParam.GetName() == "OffsetX")
{
if (curParam.GetMinValue() is Double &&
curParam.GetMaxValue() is Double)
{
Int32 minV = (Int32)(Double)curParam.GetMinValue();
Int32 maxV = (Int32)(Double)curParam.GetMaxValue();
Int32 Val = (Int32)(Double)curParam.Value;
trackOffsetX.SetRange(minV, maxV);
trackOffsetX.Value = Val;
textOffsetX.Text = Val.ToString();
}
}
if (curParam.GetName() == "OffsetY")
{
if (curParam.GetMinValue() is Double &&
curParam.GetMaxValue() is Double)
{
Int32 minV = (Int32)(Double)curParam.GetMinValue();
Int32 maxV = (Int32)(Double)curParam.GetMaxValue();
Int32 Val = (Int32)(Double)curParam.Value;
trackOffsetY.SetRange(minV, maxV);
trackOffsetY.Value = Val;
textOffsetY.Text = Val.ToString();
}
}
}
m_bIsUpdate = true;
}
private void trackWidthCrop_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackWidthCrop.Value;
textWidthCrop.Text = trackWidthCrop.Value.ToString();
}
private void trackHeightCrop_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackHeightCrop.Value;
textHeightCrop.Text = trackHeightCrop.Value.ToString();
}
private void trackAngle_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackAngle.Value;
textAngle.Text = trackAngle.Value.ToString();
}
private void trackOffsetX_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(3))).Value = trackOffsetX.Value;
textOffsetX.Text = trackOffsetX.Value.ToString();
}
private void trackOffsetY_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(4))).Value = trackOffsetY.Value;
textOffsetY.Text = trackOffsetY.Value.ToString();
}
}
}
<?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>
</root>
\ No newline at end of file
namespace TestViewManager
{
partial class ControlLevelsProperties
{
/// <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.textRed = new System.Windows.Forms.TextBox();
this.trackRed = new System.Windows.Forms.TrackBar();
this.labelRed = new System.Windows.Forms.Label();
this.textGreen = new System.Windows.Forms.TextBox();
this.trackGreen = new System.Windows.Forms.TrackBar();
this.labelGreen = new System.Windows.Forms.Label();
this.textBlue = new System.Windows.Forms.TextBox();
this.trackBlue = new System.Windows.Forms.TrackBar();
this.Blue = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.trackRed)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackGreen)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBlue)).BeginInit();
this.SuspendLayout();
//
// textRed
//
this.textRed.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textRed.Enabled = false;
this.textRed.Location = new System.Drawing.Point(131, 25);
this.textRed.Name = "textRed";
this.textRed.Size = new System.Drawing.Size(48, 20);
this.textRed.TabIndex = 35;
//
// trackRed
//
this.trackRed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackRed.AutoSize = false;
this.trackRed.Location = new System.Drawing.Point(3, 24);
this.trackRed.Name = "trackRed";
this.trackRed.Size = new System.Drawing.Size(122, 28);
this.trackRed.TabIndex = 34;
this.trackRed.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackRed.ValueChanged += new System.EventHandler(this.trackRed_ValueChanged);
//
// labelRed
//
this.labelRed.AutoSize = true;
this.labelRed.Location = new System.Drawing.Point(5, 8);
this.labelRed.Name = "labelRed";
this.labelRed.Size = new System.Drawing.Size(27, 13);
this.labelRed.TabIndex = 33;
this.labelRed.Text = "Red";
//
// textGreen
//
this.textGreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textGreen.Enabled = false;
this.textGreen.Location = new System.Drawing.Point(131, 68);
this.textGreen.Name = "textGreen";
this.textGreen.Size = new System.Drawing.Size(48, 20);
this.textGreen.TabIndex = 38;
//
// trackGreen
//
this.trackGreen.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackGreen.AutoSize = false;
this.trackGreen.Location = new System.Drawing.Point(3, 67);
this.trackGreen.Name = "trackGreen";
this.trackGreen.Size = new System.Drawing.Size(122, 28);
this.trackGreen.TabIndex = 37;
this.trackGreen.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackGreen.ValueChanged += new System.EventHandler(this.trackGreen_ValueChanged);
//
// labelGreen
//
this.labelGreen.AutoSize = true;
this.labelGreen.Location = new System.Drawing.Point(5, 51);
this.labelGreen.Name = "labelGreen";
this.labelGreen.Size = new System.Drawing.Size(36, 13);
this.labelGreen.TabIndex = 36;
this.labelGreen.Text = "Green";
//
// textBlue
//
this.textBlue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textBlue.Enabled = false;
this.textBlue.Location = new System.Drawing.Point(131, 112);
this.textBlue.Name = "textBlue";
this.textBlue.Size = new System.Drawing.Size(48, 20);
this.textBlue.TabIndex = 41;
//
// trackBlue
//
this.trackBlue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.trackBlue.AutoSize = false;
this.trackBlue.Location = new System.Drawing.Point(3, 111);
this.trackBlue.Name = "trackBlue";
this.trackBlue.Size = new System.Drawing.Size(122, 28);
this.trackBlue.TabIndex = 40;
this.trackBlue.TickStyle = System.Windows.Forms.TickStyle.None;
this.trackBlue.ValueChanged += new System.EventHandler(this.trackBlue_ValueChanged);
//
// Blue
//
this.Blue.AutoSize = true;
this.Blue.Location = new System.Drawing.Point(5, 95);
this.Blue.Name = "Blue";
this.Blue.Size = new System.Drawing.Size(28, 13);
this.Blue.TabIndex = 39;
this.Blue.Text = "Blue";
//
// ControlLevelsProperties
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.textBlue);
this.Controls.Add(this.trackBlue);
this.Controls.Add(this.Blue);
this.Controls.Add(this.textGreen);
this.Controls.Add(this.trackGreen);
this.Controls.Add(this.labelGreen);
this.Controls.Add(this.textRed);
this.Controls.Add(this.trackRed);
this.Controls.Add(this.labelRed);
this.Name = "ControlLevelsProperties";
this.Size = new System.Drawing.Size(181, 148);
((System.ComponentModel.ISupportInitialize)(this.trackRed)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackGreen)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBlue)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textRed;
private System.Windows.Forms.TrackBar trackRed;
private System.Windows.Forms.Label labelRed;
private System.Windows.Forms.TextBox textGreen;
private System.Windows.Forms.TrackBar trackGreen;
private System.Windows.Forms.Label labelGreen;
private System.Windows.Forms.TextBox textBlue;
private System.Windows.Forms.TrackBar trackBlue;
private System.Windows.Forms.Label Blue;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace TestViewManager
{
public partial class ControlLevelsProperties : UserControl
{
private bool m_bIsUpdate = true;
private AVSImageEditor.ICommand m_oCommand = null;
public ControlLevelsProperties()
{
InitializeComponent();
}
public void FromCommand(AVSImageEditor.ICommand oCommand)
{
m_bIsUpdate = false;
m_oCommand = oCommand;
int nParamsCount = m_oCommand.GetParamsCount();
for (int i = 0; i < nParamsCount; ++i)
{
AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i);
if (curParam.GetName() == "Red")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackRed.SetRange(minV, maxV);
trackRed.Value = Val;
textRed.Text = Val.ToString();
}
}
if (curParam.GetName() == "Green")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackGreen.SetRange(minV, maxV);
trackGreen.Value = Val;
textGreen.Text = Val.ToString();
}
}
if (curParam.GetName() == "Blue")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackBlue.SetRange(minV, maxV);
trackBlue.Value = Val;
textBlue.Text = Val.ToString();
}
}
}
m_bIsUpdate = true;
}
private void trackRed_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackRed.Value;
textRed.Text = trackRed.Value.ToString();
}
private void trackGreen_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackGreen.Value;
textGreen.Text = trackGreen.Value.ToString();
}
private void trackBlue_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackBlue.Value;
textBlue.Text = trackBlue.Value.ToString();
}
}
}
<?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>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace TestViewManager
{
public partial class ControlToneProperties : UserControl
{
private bool m_bIsUpdate = true;
private AVSImageEditor.ICommand m_oCommand = null;
public ControlToneProperties()
{
InitializeComponent();
}
public void FromCommand(AVSImageEditor.ICommand oCommand)
{
m_bIsUpdate = false;
m_oCommand = oCommand;
int nParamsCount = m_oCommand.GetParamsCount();
for (int i = 0; i < nParamsCount; ++i)
{
AVSImageEditor.ICommandParam curParam = (AVSImageEditor.ICommandParam)m_oCommand.GetParam(i);
if (curParam.GetName() == "Hue")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackHue.SetRange(minV, maxV);
trackHue.Value = Val;
textHue.Text = Val.ToString();
}
}
if (curParam.GetName() == "Saturation")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackSaturation.SetRange(minV, maxV);
trackSaturation.Value = Val;
textSaturation.Text = Val.ToString();
}
}
if (curParam.GetName() == "Posterize")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackPosterize.SetRange(minV, maxV);
trackPosterize.Value = Val;
textPosterize.Text = Val.ToString();
}
}
if (curParam.GetName() == "Temperature")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackTemperature.SetRange(minV, maxV);
trackTemperature.Value = Val;
textTemperature.Text = Val.ToString();
}
}
if (curParam.GetName() == "Black")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackBlack.SetRange(minV, maxV);
trackBlack.Value = Val;
trackBlack.Text = Val.ToString();
}
}
if (curParam.GetName() == "Fill Light")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackFillLight.SetRange(minV, maxV);
trackFillLight.Value = Val;
trackFillLight.Text = Val.ToString();
}
}
if (curParam.GetName() == "Recovery")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackRecovery.SetRange(minV, maxV);
trackRecovery.Value = Val;
trackRecovery.Text = Val.ToString();
}
}
if (curParam.GetName() == "Explosure")
{
if (curParam.GetMinValue() is Int32 &&
curParam.GetMaxValue() is Int32)
{
Int32 minV = (Int32)curParam.GetMinValue();
Int32 maxV = (Int32)curParam.GetMaxValue();
Int32 Val = (Int32)curParam.Value;
trackExplosure.SetRange(minV, maxV);
trackExplosure.Value = Val;
trackExplosure.Text = Val.ToString();
}
}
}
m_bIsUpdate = true;
}
private void trackHue_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value = trackHue.Value;
textHue.Text = trackHue.Value.ToString();
}
private void trackSaturation_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(1))).Value = trackSaturation.Value;
textSaturation.Text = trackSaturation.Value.ToString();
}
private void trackPosterize_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(2))).Value = trackPosterize.Value;
textPosterize.Text = trackPosterize.Value.ToString();
}
private void trackTemperature_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(3))).Value = trackTemperature.Value;
textTemperature.Text = trackTemperature.Value.ToString();
}
private void trackBlack_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(4))).Value = trackBlack.Value;
textBlack.Text = trackBlack.Value.ToString();
}
private void trackFillLight_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(5))).Value = trackFillLight.Value;
textFillLight.Text = trackFillLight.Value.ToString();
}
private void trackRecovery_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(6))).Value = trackRecovery.Value;
textRecovery.Text = trackRecovery.Value.ToString();
}
private void trackExplosure_ValueChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(7))).Value = trackExplosure.Value;
textExplosure.Text = trackExplosure.Value.ToString();
}
}
}
<?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>
</root>
\ No newline at end of file
namespace TestViewManager
{
partial class ControlXMLProperties
{
/// <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.Effect1Radio = new System.Windows.Forms.RadioButton();
this.Effect2Radio = new System.Windows.Forms.RadioButton();
this.Effect3Radio = new System.Windows.Forms.RadioButton();
this.Effect4Radio = new System.Windows.Forms.RadioButton();
this.Effect5Radio = new System.Windows.Forms.RadioButton();
this.SuspendLayout();
//
// Effect1Radio
//
this.Effect1Radio.AutoSize = true;
this.Effect1Radio.Location = new System.Drawing.Point(13, 14);
this.Effect1Radio.Name = "Effect1Radio";
this.Effect1Radio.Size = new System.Drawing.Size(62, 17);
this.Effect1Radio.TabIndex = 0;
this.Effect1Radio.TabStop = true;
this.Effect1Radio.Text = "Effect 1";
this.Effect1Radio.UseVisualStyleBackColor = true;
this.Effect1Radio.CheckedChanged += new System.EventHandler(this.Effect1Radio_CheckedChanged);
//
// Effect2Radio
//
this.Effect2Radio.AutoSize = true;
this.Effect2Radio.Location = new System.Drawing.Point(13, 38);
this.Effect2Radio.Name = "Effect2Radio";
this.Effect2Radio.Size = new System.Drawing.Size(62, 17);
this.Effect2Radio.TabIndex = 1;
this.Effect2Radio.TabStop = true;
this.Effect2Radio.Text = "Effect 2";
this.Effect2Radio.UseVisualStyleBackColor = true;
this.Effect2Radio.CheckedChanged += new System.EventHandler(this.Effect2Radio_CheckedChanged);
//
// Effect3Radio
//
this.Effect3Radio.AutoSize = true;
this.Effect3Radio.Location = new System.Drawing.Point(13, 62);
this.Effect3Radio.Name = "Effect3Radio";
this.Effect3Radio.Size = new System.Drawing.Size(62, 17);
this.Effect3Radio.TabIndex = 2;
this.Effect3Radio.TabStop = true;
this.Effect3Radio.Text = "Effect 3";
this.Effect3Radio.UseVisualStyleBackColor = true;
this.Effect3Radio.CheckedChanged += new System.EventHandler(this.Effect3Radio_CheckedChanged);
//
// Effect4Radio
//
this.Effect4Radio.AutoSize = true;
this.Effect4Radio.Location = new System.Drawing.Point(13, 86);
this.Effect4Radio.Name = "Effect4Radio";
this.Effect4Radio.Size = new System.Drawing.Size(62, 17);
this.Effect4Radio.TabIndex = 3;
this.Effect4Radio.TabStop = true;
this.Effect4Radio.Text = "Effect 4";
this.Effect4Radio.UseVisualStyleBackColor = true;
this.Effect4Radio.CheckedChanged += new System.EventHandler(this.Effect4Radio_CheckedChanged);
//
// Effect5Radio
//
this.Effect5Radio.AutoSize = true;
this.Effect5Radio.Location = new System.Drawing.Point(13, 110);
this.Effect5Radio.Name = "Effect5Radio";
this.Effect5Radio.Size = new System.Drawing.Size(62, 17);
this.Effect5Radio.TabIndex = 4;
this.Effect5Radio.TabStop = true;
this.Effect5Radio.Text = "Effect 5";
this.Effect5Radio.UseVisualStyleBackColor = true;
this.Effect5Radio.CheckedChanged += new System.EventHandler(this.Effect5Radio_CheckedChanged);
//
// ControlXMLProperties
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.Effect5Radio);
this.Controls.Add(this.Effect4Radio);
this.Controls.Add(this.Effect3Radio);
this.Controls.Add(this.Effect2Radio);
this.Controls.Add(this.Effect1Radio);
this.Name = "ControlXMLProperties";
this.Size = new System.Drawing.Size(137, 141);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RadioButton Effect1Radio;
private System.Windows.Forms.RadioButton Effect2Radio;
private System.Windows.Forms.RadioButton Effect3Radio;
private System.Windows.Forms.RadioButton Effect4Radio;
private System.Windows.Forms.RadioButton Effect5Radio;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace TestViewManager
{
public partial class ControlXMLProperties : UserControl
{
private bool m_bIsUpdate = true;
private AVSImageEditor.ICommand m_oCommand = null;
public ControlXMLProperties()
{
InitializeComponent();
}
public void FromCommand(AVSImageEditor.ICommand oCommand)
{
m_bIsUpdate = false;
m_oCommand = oCommand;
m_bIsUpdate = true;
}
private void Effect1Radio_CheckedChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
if (!Effect1Radio.Checked)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value =
"<ImageTransform-AdjustInvert></ImageTransform-AdjustInvert>";
}
private void Effect2Radio_CheckedChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
if (!Effect2Radio.Checked)
return;
((AVSImageEditor.ICommandParam)(m_oCommand.GetParam(0))).Value =
"<ImageTransform-EffectNoise level=\"100\" monochrome=\"1\" metric=\"0\"></ImageTransform-EffectNoise>";
}
private void Effect3Radio_CheckedChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
if (!Effect3Radio.Checked)
return;
}
private void Effect4Radio_CheckedChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
if (!Effect4Radio.Checked)
return;
}
private void Effect5Radio_CheckedChanged(object sender, EventArgs e)
{
if (!m_bIsUpdate)
return;
if (!Effect5Radio.Checked)
return;
}
}
}
<?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>
</root>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace TestViewManager
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}
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("TestViewManager")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("avs media")]
[assembly: AssemblyProduct("TestViewManager")]
[assembly: AssemblyCopyright("Copyright © avs media 2009")]
[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("600c7e8b-9cff-452d-8831-b31345a907ba")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3082
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TestViewManager.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", "2.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("TestViewManager.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;
}
}
internal static System.Drawing.Bitmap MenuFileOpenIcon {
get {
object obj = ResourceManager.GetObject("MenuFileOpenIcon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap MenuViewGridIcon {
get {
object obj = ResourceManager.GetObject("MenuViewGridIcon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap MenuViewRulersIcon {
get {
object obj = ResourceManager.GetObject("MenuViewRulersIcon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap MenuViewZoomInIcon {
get {
object obj = ResourceManager.GetObject("MenuViewZoomInIcon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap MenuViewZoomOutIcon {
get {
object obj = ResourceManager.GetObject("MenuViewZoomOutIcon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3082
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TestViewManager.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.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;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment