rename GuiOptions to EmuHawkOptions to match class name
This commit is contained in:
parent
8dbc6c7f6d
commit
0fcaca681e
|
@ -339,11 +339,11 @@
|
|||
<Compile Include="config\GenericCoreConfig.Designer.cs">
|
||||
<DependentUpon>GenericCoreConfig.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="config\GuiOptions.cs">
|
||||
<Compile Include="config\EmuHawkOptions.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="config\GuiOptions.Designer.cs">
|
||||
<DependentUpon>GuiOptions.cs</DependentUpon>
|
||||
<Compile Include="config\EmuHawkOptions.Designer.cs">
|
||||
<DependentUpon>EmuHawkOptions.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="config\HotkeyConfig.cs">
|
||||
<SubType>Form</SubType>
|
||||
|
@ -1362,8 +1362,8 @@
|
|||
<EmbeddedResource Include="config\GenericCoreConfig.resx">
|
||||
<DependentUpon>GenericCoreConfig.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="config\GuiOptions.resx">
|
||||
<DependentUpon>GuiOptions.cs</DependentUpon>
|
||||
<EmbeddedResource Include="config\EmuHawkOptions.resx">
|
||||
<DependentUpon>EmuHawkOptions.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="config\HotkeyConfig.resx">
|
||||
<DependentUpon>HotkeyConfig.cs</DependentUpon>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,152 +1,152 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
public partial class EmuHawkOptions : Form
|
||||
{
|
||||
private readonly MainForm _mainForm;
|
||||
private readonly Config _config;
|
||||
|
||||
public EmuHawkOptions(MainForm mainForm, Config config)
|
||||
{
|
||||
_mainForm = mainForm;
|
||||
_config = config;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public int AutosaveSaveRAMSeconds {
|
||||
get {
|
||||
if (AutosaveSRAMradioButton1.Checked)
|
||||
return 5;
|
||||
if (AutosaveSRAMradioButton2.Checked)
|
||||
return 5 * 60;
|
||||
return (int)AutosaveSRAMtextBox.Value;
|
||||
}
|
||||
set {
|
||||
switch (value)
|
||||
{
|
||||
case 5:
|
||||
AutosaveSRAMradioButton1.Checked = true;
|
||||
AutosaveSRAMtextBox.Enabled = false;
|
||||
break;
|
||||
case 5 * 60:
|
||||
AutosaveSRAMradioButton2.Checked = true;
|
||||
AutosaveSRAMtextBox.Enabled = false;
|
||||
break;
|
||||
default:
|
||||
AutosaveSRAMradioButton3.Checked = true;
|
||||
AutosaveSRAMtextBox.Enabled = true;
|
||||
break;
|
||||
}
|
||||
AutosaveSRAMtextBox.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void GuiOptions_Load(object sender, EventArgs e)
|
||||
{
|
||||
StartFullScreenCheckbox.Checked = _config.StartFullscreen;
|
||||
StartPausedCheckbox.Checked = _config.StartPaused;
|
||||
PauseWhenMenuActivatedCheckbox.Checked = _config.PauseWhenMenuActivated;
|
||||
EnableContextMenuCheckbox.Checked = _config.ShowContextMenu;
|
||||
SaveWindowPositionCheckbox.Checked = _config.SaveWindowPosition;
|
||||
RunInBackgroundCheckbox.Checked = _config.RunInBackground;
|
||||
AcceptBackgroundInputCheckbox.Checked = _config.AcceptBackgroundInput;
|
||||
AcceptBackgroundInputControllerOnlyCheckBox.Checked = _config.AcceptBackgroundInputControllerOnly;
|
||||
HandleAlternateKeyboardLayoutsCheckBox.Checked = _config.HandleAlternateKeyboardLayouts;
|
||||
NeverAskSaveCheckbox.Checked = _config.SuppressAskSave;
|
||||
SingleInstanceModeCheckbox.Checked = _config.SingleInstanceMode;
|
||||
|
||||
BackupSRamCheckbox.Checked = _config.BackupSaveram;
|
||||
AutosaveSRAMCheckbox.Checked = _config.AutosaveSaveRAM;
|
||||
groupBox2.Enabled = AutosaveSRAMCheckbox.Checked;
|
||||
AutosaveSaveRAMSeconds = _config.FlushSaveRamFrames / 60;
|
||||
FrameAdvSkipLagCheckbox.Checked = _config.SkipLagFrame;
|
||||
LogWindowAsConsoleCheckbox.Checked = _config.WIN32_CONSOLE;
|
||||
LuaDuringTurboCheckbox.Checked = _config.RunLuaDuringTurbo;
|
||||
cbMoviesOnDisk.Checked = _config.MoviesOnDisk;
|
||||
cbMoviesInAWE.Checked = _config.MoviesInAWE;
|
||||
|
||||
switch (_config.LuaEngine)
|
||||
{
|
||||
case Config.ELuaEngine.LuaPlusLuaInterface:
|
||||
LuaInterfaceRadio.Checked = true;
|
||||
break;
|
||||
case Config.ELuaEngine.NLuaPlusKopiLua:
|
||||
NLuaRadio.Checked = true;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
if (LogConsole.ConsoleVisible)
|
||||
{
|
||||
LogWindowAsConsoleCheckbox.Enabled = false;
|
||||
toolTip1.SetToolTip(
|
||||
LogWindowAsConsoleCheckbox,
|
||||
"This can not be changed while the log window is open. I know, it's annoying.");
|
||||
}
|
||||
}
|
||||
|
||||
private void OkBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
_config.StartFullscreen = StartFullScreenCheckbox.Checked;
|
||||
_config.StartPaused = StartPausedCheckbox.Checked;
|
||||
_config.PauseWhenMenuActivated = PauseWhenMenuActivatedCheckbox.Checked;
|
||||
_config.ShowContextMenu = EnableContextMenuCheckbox.Checked;
|
||||
_config.SaveWindowPosition = SaveWindowPositionCheckbox.Checked;
|
||||
_config.RunInBackground = RunInBackgroundCheckbox.Checked;
|
||||
_config.AcceptBackgroundInput = AcceptBackgroundInputCheckbox.Checked;
|
||||
_config.AcceptBackgroundInputControllerOnly = AcceptBackgroundInputControllerOnlyCheckBox.Checked;
|
||||
_config.HandleAlternateKeyboardLayouts = HandleAlternateKeyboardLayoutsCheckBox.Checked;
|
||||
_config.SuppressAskSave = NeverAskSaveCheckbox.Checked;
|
||||
_config.SingleInstanceMode = SingleInstanceModeCheckbox.Checked;
|
||||
|
||||
_config.BackupSaveram = BackupSRamCheckbox.Checked;
|
||||
_config.AutosaveSaveRAM = AutosaveSRAMCheckbox.Checked;
|
||||
_config.FlushSaveRamFrames = AutosaveSaveRAMSeconds * 60;
|
||||
if (_mainForm.AutoFlushSaveRamIn > _config.FlushSaveRamFrames)
|
||||
_mainForm.AutoFlushSaveRamIn = _config.FlushSaveRamFrames;
|
||||
_config.SkipLagFrame = FrameAdvSkipLagCheckbox.Checked;
|
||||
_config.WIN32_CONSOLE = LogWindowAsConsoleCheckbox.Checked;
|
||||
_config.RunLuaDuringTurbo = LuaDuringTurboCheckbox.Checked;
|
||||
_config.MoviesOnDisk = cbMoviesOnDisk.Checked;
|
||||
_config.MoviesInAWE = cbMoviesInAWE.Checked;
|
||||
|
||||
var prevLuaEngine = _config.LuaEngine;
|
||||
if (LuaInterfaceRadio.Checked) _config.LuaEngine = Config.ELuaEngine.LuaPlusLuaInterface;
|
||||
else if (NLuaRadio.Checked) _config.LuaEngine = Config.ELuaEngine.NLuaPlusKopiLua;
|
||||
|
||||
Close();
|
||||
DialogResult = DialogResult.OK;
|
||||
_mainForm.AddOnScreenMessage("Custom configurations saved.");
|
||||
if (prevLuaEngine != _config.LuaEngine)
|
||||
{
|
||||
_mainForm.AddOnScreenMessage("Restart emulator for Lua change to take effect");
|
||||
}
|
||||
}
|
||||
|
||||
private void CancelBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
DialogResult = DialogResult.Cancel;
|
||||
_mainForm.AddOnScreenMessage("Customizing aborted.");
|
||||
}
|
||||
|
||||
private void AcceptBackgroundInputCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
AcceptBackgroundInputControllerOnlyCheckBox.Enabled = AcceptBackgroundInputCheckbox.Checked;
|
||||
}
|
||||
|
||||
private void AutosaveSRAMCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
groupBox2.Enabled = AutosaveSRAMCheckbox.Checked;
|
||||
}
|
||||
|
||||
private void AutosaveSRAMRadioButton3_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
AutosaveSRAMtextBox.Enabled = AutosaveSRAMradioButton3.Checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
public partial class EmuHawkOptions : Form
|
||||
{
|
||||
private readonly MainForm _mainForm;
|
||||
private readonly Config _config;
|
||||
|
||||
public EmuHawkOptions(MainForm mainForm, Config config)
|
||||
{
|
||||
_mainForm = mainForm;
|
||||
_config = config;
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public int AutosaveSaveRAMSeconds {
|
||||
get {
|
||||
if (AutosaveSRAMradioButton1.Checked)
|
||||
return 5;
|
||||
if (AutosaveSRAMradioButton2.Checked)
|
||||
return 5 * 60;
|
||||
return (int)AutosaveSRAMtextBox.Value;
|
||||
}
|
||||
set {
|
||||
switch (value)
|
||||
{
|
||||
case 5:
|
||||
AutosaveSRAMradioButton1.Checked = true;
|
||||
AutosaveSRAMtextBox.Enabled = false;
|
||||
break;
|
||||
case 5 * 60:
|
||||
AutosaveSRAMradioButton2.Checked = true;
|
||||
AutosaveSRAMtextBox.Enabled = false;
|
||||
break;
|
||||
default:
|
||||
AutosaveSRAMradioButton3.Checked = true;
|
||||
AutosaveSRAMtextBox.Enabled = true;
|
||||
break;
|
||||
}
|
||||
AutosaveSRAMtextBox.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void GuiOptions_Load(object sender, EventArgs e)
|
||||
{
|
||||
StartFullScreenCheckbox.Checked = _config.StartFullscreen;
|
||||
StartPausedCheckbox.Checked = _config.StartPaused;
|
||||
PauseWhenMenuActivatedCheckbox.Checked = _config.PauseWhenMenuActivated;
|
||||
EnableContextMenuCheckbox.Checked = _config.ShowContextMenu;
|
||||
SaveWindowPositionCheckbox.Checked = _config.SaveWindowPosition;
|
||||
RunInBackgroundCheckbox.Checked = _config.RunInBackground;
|
||||
AcceptBackgroundInputCheckbox.Checked = _config.AcceptBackgroundInput;
|
||||
AcceptBackgroundInputControllerOnlyCheckBox.Checked = _config.AcceptBackgroundInputControllerOnly;
|
||||
HandleAlternateKeyboardLayoutsCheckBox.Checked = _config.HandleAlternateKeyboardLayouts;
|
||||
NeverAskSaveCheckbox.Checked = _config.SuppressAskSave;
|
||||
SingleInstanceModeCheckbox.Checked = _config.SingleInstanceMode;
|
||||
|
||||
BackupSRamCheckbox.Checked = _config.BackupSaveram;
|
||||
AutosaveSRAMCheckbox.Checked = _config.AutosaveSaveRAM;
|
||||
groupBox2.Enabled = AutosaveSRAMCheckbox.Checked;
|
||||
AutosaveSaveRAMSeconds = _config.FlushSaveRamFrames / 60;
|
||||
FrameAdvSkipLagCheckbox.Checked = _config.SkipLagFrame;
|
||||
LogWindowAsConsoleCheckbox.Checked = _config.WIN32_CONSOLE;
|
||||
LuaDuringTurboCheckbox.Checked = _config.RunLuaDuringTurbo;
|
||||
cbMoviesOnDisk.Checked = _config.MoviesOnDisk;
|
||||
cbMoviesInAWE.Checked = _config.MoviesInAWE;
|
||||
|
||||
switch (_config.LuaEngine)
|
||||
{
|
||||
case Config.ELuaEngine.LuaPlusLuaInterface:
|
||||
LuaInterfaceRadio.Checked = true;
|
||||
break;
|
||||
case Config.ELuaEngine.NLuaPlusKopiLua:
|
||||
NLuaRadio.Checked = true;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
if (LogConsole.ConsoleVisible)
|
||||
{
|
||||
LogWindowAsConsoleCheckbox.Enabled = false;
|
||||
toolTip1.SetToolTip(
|
||||
LogWindowAsConsoleCheckbox,
|
||||
"This can not be changed while the log window is open. I know, it's annoying.");
|
||||
}
|
||||
}
|
||||
|
||||
private void OkBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
_config.StartFullscreen = StartFullScreenCheckbox.Checked;
|
||||
_config.StartPaused = StartPausedCheckbox.Checked;
|
||||
_config.PauseWhenMenuActivated = PauseWhenMenuActivatedCheckbox.Checked;
|
||||
_config.ShowContextMenu = EnableContextMenuCheckbox.Checked;
|
||||
_config.SaveWindowPosition = SaveWindowPositionCheckbox.Checked;
|
||||
_config.RunInBackground = RunInBackgroundCheckbox.Checked;
|
||||
_config.AcceptBackgroundInput = AcceptBackgroundInputCheckbox.Checked;
|
||||
_config.AcceptBackgroundInputControllerOnly = AcceptBackgroundInputControllerOnlyCheckBox.Checked;
|
||||
_config.HandleAlternateKeyboardLayouts = HandleAlternateKeyboardLayoutsCheckBox.Checked;
|
||||
_config.SuppressAskSave = NeverAskSaveCheckbox.Checked;
|
||||
_config.SingleInstanceMode = SingleInstanceModeCheckbox.Checked;
|
||||
|
||||
_config.BackupSaveram = BackupSRamCheckbox.Checked;
|
||||
_config.AutosaveSaveRAM = AutosaveSRAMCheckbox.Checked;
|
||||
_config.FlushSaveRamFrames = AutosaveSaveRAMSeconds * 60;
|
||||
if (_mainForm.AutoFlushSaveRamIn > _config.FlushSaveRamFrames)
|
||||
_mainForm.AutoFlushSaveRamIn = _config.FlushSaveRamFrames;
|
||||
_config.SkipLagFrame = FrameAdvSkipLagCheckbox.Checked;
|
||||
_config.WIN32_CONSOLE = LogWindowAsConsoleCheckbox.Checked;
|
||||
_config.RunLuaDuringTurbo = LuaDuringTurboCheckbox.Checked;
|
||||
_config.MoviesOnDisk = cbMoviesOnDisk.Checked;
|
||||
_config.MoviesInAWE = cbMoviesInAWE.Checked;
|
||||
|
||||
var prevLuaEngine = _config.LuaEngine;
|
||||
if (LuaInterfaceRadio.Checked) _config.LuaEngine = Config.ELuaEngine.LuaPlusLuaInterface;
|
||||
else if (NLuaRadio.Checked) _config.LuaEngine = Config.ELuaEngine.NLuaPlusKopiLua;
|
||||
|
||||
Close();
|
||||
DialogResult = DialogResult.OK;
|
||||
_mainForm.AddOnScreenMessage("Custom configurations saved.");
|
||||
if (prevLuaEngine != _config.LuaEngine)
|
||||
{
|
||||
_mainForm.AddOnScreenMessage("Restart emulator for Lua change to take effect");
|
||||
}
|
||||
}
|
||||
|
||||
private void CancelBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
DialogResult = DialogResult.Cancel;
|
||||
_mainForm.AddOnScreenMessage("Customizing aborted.");
|
||||
}
|
||||
|
||||
private void AcceptBackgroundInputCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
AcceptBackgroundInputControllerOnlyCheckBox.Enabled = AcceptBackgroundInputCheckbox.Checked;
|
||||
}
|
||||
|
||||
private void AutosaveSRAMCheckbox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
groupBox2.Enabled = AutosaveSRAMCheckbox.Checked;
|
||||
}
|
||||
|
||||
private void AutosaveSRAMRadioButton3_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
AutosaveSRAMtextBox.Enabled = AutosaveSRAMradioButton3.Checked;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,123 +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=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>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<?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>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
Loading…
Reference in New Issue