CA-336024, CA-322705: Rewrote the LVMoISCI frontend of the NewSR wizard

This fixes various workflow bugs and disallows re-attaching GFS2 SR if clustering
is disabled.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2020-03-03 14:02:12 +00:00 committed by Mihaela Stoica
parent 5b6bd343dd
commit 5927d52349
17 changed files with 1625 additions and 3421 deletions

View File

@ -1,128 +0,0 @@
namespace XenAdmin.Dialogs
{
partial class IscsiChoicesDialog
{
/// <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 Windows Form 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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(IscsiChoicesDialog));
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.pictureBoxIcon = new System.Windows.Forms.PictureBox();
this.flowLayoutPanelButtons = new System.Windows.Forms.FlowLayoutPanel();
this.buttonCancel = new System.Windows.Forms.Button();
this.buttonFormat = new System.Windows.Forms.Button();
this.buttonReattach = new System.Windows.Forms.Button();
this.labelMessage = new System.Windows.Forms.Label();
this.labelSRinfo = new System.Windows.Forms.Label();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).BeginInit();
this.flowLayoutPanelButtons.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.pictureBoxIcon, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanelButtons, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.labelMessage, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.labelSRinfo, 1, 1);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// pictureBoxIcon
//
resources.ApplyResources(this.pictureBoxIcon, "pictureBoxIcon");
this.pictureBoxIcon.Name = "pictureBoxIcon";
this.pictureBoxIcon.TabStop = false;
//
// flowLayoutPanelButtons
//
resources.ApplyResources(this.flowLayoutPanelButtons, "flowLayoutPanelButtons");
this.flowLayoutPanelButtons.Controls.Add(this.buttonCancel);
this.flowLayoutPanelButtons.Controls.Add(this.buttonFormat);
this.flowLayoutPanelButtons.Controls.Add(this.buttonReattach);
this.flowLayoutPanelButtons.Name = "flowLayoutPanelButtons";
//
// buttonCancel
//
resources.ApplyResources(this.buttonCancel, "buttonCancel");
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// buttonFormat
//
resources.ApplyResources(this.buttonFormat, "buttonFormat");
this.buttonFormat.DialogResult = System.Windows.Forms.DialogResult.No;
this.buttonFormat.Name = "buttonFormat";
this.buttonFormat.UseVisualStyleBackColor = true;
//
// buttonReattach
//
resources.ApplyResources(this.buttonReattach, "buttonReattach");
this.buttonReattach.DialogResult = System.Windows.Forms.DialogResult.Yes;
this.buttonReattach.Name = "buttonReattach";
this.buttonReattach.UseVisualStyleBackColor = true;
//
// labelMessage
//
resources.ApplyResources(this.labelMessage, "labelMessage");
this.labelMessage.Name = "labelMessage";
//
// labelSRinfo
//
resources.ApplyResources(this.labelSRinfo, "labelSRinfo");
this.labelSRinfo.Name = "labelSRinfo";
//
// IscsiChoicesDialog
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.CancelButton = this.buttonCancel;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "IscsiChoicesDialog";
this.ShowIcon = false;
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).EndInit();
this.flowLayoutPanelButtons.ResumeLayout(false);
this.flowLayoutPanelButtons.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Button buttonReattach;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.PictureBox pictureBoxIcon;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanelButtons;
private System.Windows.Forms.Label labelMessage;
private System.Windows.Forms.Button buttonFormat;
private System.Windows.Forms.Label labelSRinfo;
}
}

View File

@ -1,71 +0,0 @@
/* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the
* following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the
* following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
using System;
using XenAdmin.Actions;
using XenAdmin.Network;
using XenAPI;
namespace XenAdmin.Dialogs
{
/// <summary>
/// When an existing SR is found on an iSCSI LUN, asks the user if they want
/// to attach the SR, wipe the LUN and create a new SR, or do nothing (cancel).
///
/// DialogResult.Yes - Reattach
/// DialogResult.No - Format
/// DialogResult.Cancel - Cancel
/// </summary>
public partial class IscsiChoicesDialog : XenDialogBase
{
public IscsiChoicesDialog(IXenConnection connection, SR.SRInfo srInfo, SR.SRTypes existingSrType, SR.SRTypes requestedSrType)
: base(connection)
{
InitializeComponent();
this.labelSRinfo.Text = String.Format(Messages.ISCSI_DIALOG_SR_DETAILS,
Util.DiskSizeString(srInfo.Size), srInfo.UUID);
this.labelMessage.Text = String.Format(Messages.EXISTING_SR_FOUND_ON_LUN, SR.getFriendlyTypeName(existingSrType),
SR.getFriendlyTypeName(requestedSrType));
}
public IscsiChoicesDialog(IXenConnection connection, FibreChannelDevice dev)
: base(connection)
{
InitializeComponent();
this.labelSRinfo.Text = String.Format(Messages.ISCSI_DIALOG_SR_DETAILS_FOR_FIBRECHANNEL,
dev.Vendor, dev.Serial, string.IsNullOrEmpty(dev.SCSIid) ? dev.Path : dev.SCSIid, Util.DiskSizeString(dev.Size));
}
}
}

View File

@ -1,498 +0,0 @@
<?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:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element msdata:IsDataSet="true" name="root">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="value" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<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 minOccurs="0" msdata:Ordinal="1" name="value" type="xsd:string"/>
<xsd:element minOccurs="0" msdata:Ordinal="2" name="comment" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute msdata:Ordinal="1" name="name" type="xsd:string" use="required"/>
<xsd:attribute msdata:Ordinal="3" name="type" type="xsd:string"/>
<xsd:attribute msdata:Ordinal="4" name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" msdata:Ordinal="1" name="value" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="tableLayoutPanel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="tableLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="tableLayoutPanel1.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="pictureBoxIcon.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="pictureBoxIcon.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data mimetype="application/x-microsoft.net.object.bytearray.base64" name="pictureBoxIcon.Image" type="System.Drawing.Bitmap, System.Drawing">
<value>
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
WdXfrwAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBoxIcon.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="pictureBoxIcon.Size" type="System.Drawing.Size, System.Drawing">
<value>32, 32</value>
</data>
<data name="pictureBoxIcon.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>AutoSize</value>
</data>
<data name="pictureBoxIcon.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Name" xml:space="preserve">
<value>pictureBoxIcon</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="flowLayoutPanelButtons.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="flowLayoutPanelButtons.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="flowLayoutPanelButtons.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonCancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonCancel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonCancel.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonCancel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonCancel.Location" type="System.Drawing.Point, System.Drawing">
<value>183, 3</value>
</data>
<data name="buttonCancel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonCancel.Size" type="System.Drawing.Size, System.Drawing">
<value>76, 28</value>
</data>
<data name="buttonCancel.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="buttonCancel.Text" xml:space="preserve">
<value>キャンセル</value>
</data>
<data name="&gt;&gt;buttonCancel.Name" xml:space="preserve">
<value>buttonCancel</value>
</data>
<data name="&gt;&gt;buttonCancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonCancel.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonCancel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="buttonFormat.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonFormat.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonFormat.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonFormat.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonFormat.Location" type="System.Drawing.Point, System.Drawing">
<value>78, 3</value>
</data>
<data name="buttonFormat.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonFormat.Size" type="System.Drawing.Size, System.Drawing">
<value>102, 28</value>
</data>
<data name="buttonFormat.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="buttonFormat.Text" xml:space="preserve">
<value>フォーマット(&amp;F)</value>
</data>
<data name="&gt;&gt;buttonFormat.Name" xml:space="preserve">
<value>buttonFormat</value>
</data>
<data name="&gt;&gt;buttonFormat.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonFormat.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonFormat.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="buttonReattach.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonReattach.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonReattach.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonReattach.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonReattach.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="buttonReattach.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonReattach.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 28</value>
</data>
<data name="buttonReattach.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="buttonReattach.Text" xml:space="preserve">
<value>再接続(&amp;R)</value>
</data>
<data name="&gt;&gt;buttonReattach.Name" xml:space="preserve">
<value>buttonReattach</value>
</data>
<data name="&gt;&gt;buttonReattach.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonReattach.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonReattach.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="flowLayoutPanelButtons.FlowDirection" type="System.Windows.Forms.FlowDirection, System.Windows.Forms">
<value>RightToLeft</value>
</data>
<data name="flowLayoutPanelButtons.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="flowLayoutPanelButtons.Location" type="System.Drawing.Point, System.Drawing">
<value>131, 149</value>
</data>
<data name="flowLayoutPanelButtons.Size" type="System.Drawing.Size, System.Drawing">
<value>259, 34</value>
</data>
<data name="flowLayoutPanelButtons.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="flowLayoutPanelButtons.WrapContents" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Name" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Type" xml:space="preserve">
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="labelMessage.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelMessage.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelMessage.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelMessage.Location" type="System.Drawing.Point, System.Drawing">
<value>42, 5</value>
</data>
<data name="labelMessage.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 5, 4, 5</value>
</data>
<data name="labelMessage.Size" type="System.Drawing.Size, System.Drawing">
<value>347, 95</value>
</data>
<data name="labelMessage.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="labelMessage.Text" xml:space="preserve">
<value>選択した LUN に既存の SR があります。この既存の SR を使用するには [再接続] をクリックします。[フォーマット] をクリックすると、このディスク上のすべてのデータが消去され、新しい SR が作成されます。
警告: データの損失を防ぐため、[XenCenter] に接続していないサーバーを含め、ほかのシステムがこの LUN を使用していないことを確認してください。</value>
</data>
<data name="&gt;&gt;labelMessage.Name" xml:space="preserve">
<value>labelMessage</value>
</data>
<data name="&gt;&gt;labelMessage.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelMessage.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelMessage.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="labelSRinfo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelSRinfo.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelSRinfo.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelSRinfo.Location" type="System.Drawing.Point, System.Drawing">
<value>43, 110</value>
</data>
<data name="labelSRinfo.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>5, 5, 5, 5</value>
</data>
<data name="labelSRinfo.Size" type="System.Drawing.Size, System.Drawing">
<value>115, 31</value>
</data>
<data name="labelSRinfo.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="labelSRinfo.Text" xml:space="preserve">
<value>SR サイズ: 5.0 GB
SR UUID: abc-123-456</value>
</data>
<data name="&gt;&gt;labelSRinfo.Name" xml:space="preserve">
<value>labelSRinfo</value>
</data>
<data name="&gt;&gt;labelSRinfo.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelSRinfo.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelSRinfo.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 10</value>
</data>
<data name="tableLayoutPanel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>393, 186</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?>&lt;TableLayoutSettings>&lt;Controls>&lt;Control Name="pictureBoxIcon" Row="0" RowSpan="1" Column="0" ColumnSpan="1" />&lt;Control Name="flowLayoutPanelButtons" Row="2" RowSpan="1" Column="1" ColumnSpan="1" />&lt;Control Name="labelMessage" Row="0" RowSpan="1" Column="1" ColumnSpan="1" />&lt;Control Name="labelSRinfo" Row="1" RowSpan="1" Column="1" ColumnSpan="1" />&lt;/Controls>&lt;Columns Styles="AutoSize,0,Percent,100" />&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,Absolute,20" />&lt;/TableLayoutSettings></value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>411, 205</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 8pt</value>
</data>
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="$this.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>9, 10, 9, 10</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>新規ストレージ リポジトリ</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>IscsiChoicesDialog</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>XenAdmin.Dialogs.XenDialogBase, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>

View File

@ -1,498 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="tableLayoutPanel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="tableLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="tableLayoutPanel1.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="pictureBoxIcon.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBoxIcon.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="pictureBoxIcon.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
WdXfrwAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBoxIcon.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="pictureBoxIcon.Size" type="System.Drawing.Size, System.Drawing">
<value>32, 32</value>
</data>
<data name="pictureBoxIcon.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>AutoSize</value>
</data>
<data name="pictureBoxIcon.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Name" xml:space="preserve">
<value>pictureBoxIcon</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="flowLayoutPanelButtons.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="flowLayoutPanelButtons.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="flowLayoutPanelButtons.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonCancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonCancel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonCancel.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonCancel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonCancel.Location" type="System.Drawing.Point, System.Drawing">
<value>153, 3</value>
</data>
<data name="buttonCancel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonCancel.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 25</value>
</data>
<data name="buttonCancel.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="buttonCancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="&gt;&gt;buttonCancel.Name" xml:space="preserve">
<value>buttonCancel</value>
</data>
<data name="&gt;&gt;buttonCancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonCancel.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonCancel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="buttonFormat.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonFormat.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonFormat.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonFormat.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonFormat.Location" type="System.Drawing.Point, System.Drawing">
<value>78, 3</value>
</data>
<data name="buttonFormat.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonFormat.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 25</value>
</data>
<data name="buttonFormat.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="buttonFormat.Text" xml:space="preserve">
<value>&amp;Format</value>
</data>
<data name="&gt;&gt;buttonFormat.Name" xml:space="preserve">
<value>buttonFormat</value>
</data>
<data name="&gt;&gt;buttonFormat.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonFormat.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonFormat.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="buttonReattach.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonReattach.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonReattach.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonReattach.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonReattach.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="buttonReattach.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonReattach.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 25</value>
</data>
<data name="buttonReattach.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="buttonReattach.Text" xml:space="preserve">
<value>&amp;Reattach</value>
</data>
<data name="&gt;&gt;buttonReattach.Name" xml:space="preserve">
<value>buttonReattach</value>
</data>
<data name="&gt;&gt;buttonReattach.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonReattach.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonReattach.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="flowLayoutPanelButtons.FlowDirection" type="System.Windows.Forms.FlowDirection, System.Windows.Forms">
<value>RightToLeft</value>
</data>
<data name="flowLayoutPanelButtons.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="flowLayoutPanelButtons.Location" type="System.Drawing.Point, System.Drawing">
<value>165, 158</value>
</data>
<data name="flowLayoutPanelButtons.Size" type="System.Drawing.Size, System.Drawing">
<value>225, 31</value>
</data>
<data name="flowLayoutPanelButtons.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="flowLayoutPanelButtons.WrapContents" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Name" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Type" xml:space="preserve">
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="labelMessage.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelMessage.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelMessage.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelMessage.Location" type="System.Drawing.Point, System.Drawing">
<value>42, 5</value>
</data>
<data name="labelMessage.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 5, 4, 5</value>
</data>
<data name="labelMessage.Size" type="System.Drawing.Size, System.Drawing">
<value>347, 105</value>
</data>
<data name="labelMessage.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="labelMessage.Text" xml:space="preserve">
<value>An existing SR was found on the selected LUN. Click Reattach to use the existing SR, or click Format to destroy any data present on the disk and create a new SR.
Warning: to prevent data loss you must ensure that the LUN is not in use by any other system, including servers that are not connected to [XenCenter].</value>
</data>
<data name="&gt;&gt;labelMessage.Name" xml:space="preserve">
<value>labelMessage</value>
</data>
<data name="&gt;&gt;labelMessage.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelMessage.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelMessage.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="labelSRinfo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelSRinfo.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelSRinfo.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelSRinfo.Location" type="System.Drawing.Point, System.Drawing">
<value>43, 120</value>
</data>
<data name="labelSRinfo.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>5, 5, 5, 5</value>
</data>
<data name="labelSRinfo.Size" type="System.Drawing.Size, System.Drawing">
<value>121, 30</value>
</data>
<data name="labelSRinfo.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="labelSRinfo.Text" xml:space="preserve">
<value>SR size: 5.0 GB
SR UUID: abc-123-456</value>
</data>
<data name="&gt;&gt;labelSRinfo.Name" xml:space="preserve">
<value>labelSRinfo</value>
</data>
<data name="&gt;&gt;labelSRinfo.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelSRinfo.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelSRinfo.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 10</value>
</data>
<data name="tableLayoutPanel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>393, 192</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="pictureBoxIcon" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="flowLayoutPanelButtons" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="labelMessage" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="labelSRinfo" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,Absolute,20" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>411, 210</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 8pt</value>
</data>
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="$this.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>9, 10, 9, 10</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>New Storage Repository</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>IscsiChoicesDialog</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>XenAdmin.Dialogs.XenDialogBase, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>

View File

@ -1,498 +0,0 @@
<?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:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xsd:element msdata:IsDataSet="true" name="root">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="value" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<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 minOccurs="0" msdata:Ordinal="1" name="value" type="xsd:string"/>
<xsd:element minOccurs="0" msdata:Ordinal="2" name="comment" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute msdata:Ordinal="1" name="name" type="xsd:string" use="required"/>
<xsd:attribute msdata:Ordinal="3" name="type" type="xsd:string"/>
<xsd:attribute msdata:Ordinal="4" name="mimetype" type="xsd:string"/>
<xsd:attribute ref="xml:space"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" msdata:Ordinal="1" name="value" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="tableLayoutPanel1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<data name="tableLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="tableLayoutPanel1.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="pictureBoxIcon.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<data name="pictureBoxIcon.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data mimetype="application/x-microsoft.net.object.bytearray.base64" name="pictureBoxIcon.Image" type="System.Drawing.Bitmap, System.Drawing">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAABtJJREFUWEe1V3ds
1GUYftvrODqkpVwH9EoXo4ECrSsaBwYSFMOKaFDAQhmhBaFAARFNXInBGNz4h1H/UNBoXDiCOEBFShll
liW0tKXX9rrH9dqjvcfn/d1drZAKUmzy5L77xvs+3/OO7ypyHX+AORyInnkdR/t/xA2/4UBgCxAMQH5I
T88K6b/Va7RAh4GtrYIOp6hzA4WFMY2h4WvmX6OJ/m1ra5V37XZBt8tE52N6SMx8aDpCwtbm9c/6VU53
uWSgvUpQWyNwd8fQ+VLAzVSgCnv/sCDYvLZl6NDlI/43Eo4m2VxZJmipV+ljiQwiCS6HJxRTpsxCWETe
lv+NQE2FoOaioLMtgA4jiQHEKLg7PAR27YyFKXiNY1jiuvgbTsJRL69WlQqaq9XZTV7nOo4nooE2jt2C
B+6fhZDw9ZtvKAF3mwTYy6W75gKdODT5ouB2mvD7Dn+OQ4gUoMPPUOHbL60IMK+vS0paYr1hJBx2ed52
VtBm89z+422REPEjhDCjopwESKqrieuXBBMmzEZ4xOqXbhiBmvMCO4Emz+1FgogBCJHx/MzA3KljOZ8A
sD/AJdj+SSIk4MnaYam5Uf0m0W6TF2ynBE0qvxH7UO/tByNWJnE8ETPuGs15iycX6riPRO6791GYQ9c/
3W8CtWekpfq0wFXtuT3gj4gQVcAKi9zDz/vwxMPJnNf1VEBLlF1y67sjYAraUJY6POv6VXBWyKrKY8z8
P2m0nbf3Np3HpoXR8TgkmKdgiP9kbN2sxFQhhqHTgkuVHLcIxo3PRvig1fnXrYK9WFzVJ9j3K1n3l+jE
yAFm+oeagOm4PWkp7h45HRUHWQ36NjjDuM53it0SzYIP3kqDmDaWjUibE/qfSbSXyuqLRYL6YhprYLtt
J7QHdAuO/KTZn4wZE97ApIxpRuIZ0rNFGyo4SLacDYtdMzNzPqJiVqz8zwTsx6TGRgKtZ1jfjgjAHgho
GfJmSmRkTCpy5uzEohmZXPc6Z5dEmyZqAlwlHDcK3t40FqbQ/NOW2PywaybRWSLzL+5n2z0s6Ko0M568
vRrX2BqdUDB7UgJVeBqfvs7MVwWUHFs1qrRNJ8BdbUaH5g7nUkcuRmzcsqXXTKD+mDRUHeCjY8ivtycJ
Smo4UCJsua9stJJALoq+CGLieecpORROkuocik6Wr4Zly6Z0BFKFyMg1pquScJ2TLBtvX3eIty/jL55m
PjplDAPfAQPqgGHY+1kYguVB1O1nAlJqY17XtWHZ9JcSS7Kc5Pi9lRcZPSYblri87KsSaDws5dWFPMTy
Qz2dV/HFU6MKjas6YSg6TplgjZjo+a5h0TXfvnOqQhxVsMLFKtL1157NQFB4flHU4LyAPkl0nJJF1QXM
fCrgLmVJNQyiUd5eY6lQw+pEb8tQ7PqA65oX+l3XdI+us3EZt0ca94Wi66RnflTaIkTHrcrqk0BtgXRW
/SFwHqGsdYMZc97+DA8r+BgZDvSm2m617DT7a70KKAHfHt2v8W+hCt3D0a0qMIfe35QGU9i6U4Oicq/M
BecxWXhxF2O/l7f/k09sNeX3GVJjeit1wN+DhZ9oK9YXMRgj4xLRpcmqKuh+3af7de4cG1cXG1Mp7R0X
OFjW6ekLEWVdtvwKFRoK5LxtN9su44+KCEpGCdWIslcJFUqA8UyNU+fajOKITGyYl8Qu6XWs+/ScDzVU
soEVcdBD8sX82zBg4Nrj0ZZlQT0kOorkjsqfWfe/MvOPMoMrWPdqiKwNAj7o7fgqigQQUcgYsgAJoSvx
TPY8T0j0jG+vnlWcZQNrsjIPgtBFBVqYY5a4FbAmLJ7TQ6B1n7xZvoO/dqkATrCRnCFOMvkuh3ZF9vmp
d8aSQAxiAhfil+3Ajveme5JRpe99pthr4wITujgYjn2ePbOnTUO4ZWVBD4Ga3XK05DtB5U6GYI8f2snS
UeAHR6EX3rFzPw0e9cT6hZwkrF/wCL55526AJdvJxtXO8BlnfGf30RadOonmPYJGKqyqvLLuZgQNXIXk
lLwMg0TLb/Jy8eeCs18LSr4VlH7TN8q8RF0s1S46babR8u8FF/o4V0JbulZBhRtVYbb3GZNnIjJmJYYl
L/n7HxnbD/Lj2a8EB7b649BHfji0Tfh5GbxzRVsFhzk+/LFAxwpjf+8zvca6fvJTwfnt/nhu2W0IG7QG
1sQcJKXkPP6Pasi8Zd6s9NHZtRnj5iNz/L8hi+uXo+/9GbR1a+Y8jBu7ADcNXo0h1lwkpiz5MT55qfmK
chwQ+VQCe/bc6CF5c4jZBuKJod6xfvqga73Hvr26v/dZjmOI2PgVjyal5D6ekpwz3TpieU8Z/gVMa+jY
WdXfrwAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBoxIcon.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="pictureBoxIcon.Size" type="System.Drawing.Size, System.Drawing">
<value>32, 32</value>
</data>
<data name="pictureBoxIcon.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>AutoSize</value>
</data>
<data name="pictureBoxIcon.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Name" xml:space="preserve">
<value>pictureBoxIcon</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;pictureBoxIcon.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="flowLayoutPanelButtons.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="flowLayoutPanelButtons.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="flowLayoutPanelButtons.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="buttonCancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonCancel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonCancel.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonCancel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonCancel.Location" type="System.Drawing.Point, System.Drawing">
<value>183, 3</value>
</data>
<data name="buttonCancel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonCancel.Size" type="System.Drawing.Size, System.Drawing">
<value>76, 28</value>
</data>
<data name="buttonCancel.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="buttonCancel.Text" xml:space="preserve">
<value>取消</value>
</data>
<data name="&gt;&gt;buttonCancel.Name" xml:space="preserve">
<value>buttonCancel</value>
</data>
<data name="&gt;&gt;buttonCancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonCancel.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonCancel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="buttonFormat.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonFormat.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonFormat.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonFormat.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonFormat.Location" type="System.Drawing.Point, System.Drawing">
<value>78, 3</value>
</data>
<data name="buttonFormat.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonFormat.Size" type="System.Drawing.Size, System.Drawing">
<value>102, 28</value>
</data>
<data name="buttonFormat.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="buttonFormat.Text" xml:space="preserve">
<value>格式化(&amp;F)</value>
</data>
<data name="&gt;&gt;buttonFormat.Name" xml:space="preserve">
<value>buttonFormat</value>
</data>
<data name="&gt;&gt;buttonFormat.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonFormat.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonFormat.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="buttonReattach.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="buttonReattach.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="buttonReattach.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonReattach.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonReattach.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="buttonReattach.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 3, 0, 3</value>
</data>
<data name="buttonReattach.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 28</value>
</data>
<data name="buttonReattach.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="buttonReattach.Text" xml:space="preserve">
<value>重新连接(&amp;R)</value>
</data>
<data name="&gt;&gt;buttonReattach.Name" xml:space="preserve">
<value>buttonReattach</value>
</data>
<data name="&gt;&gt;buttonReattach.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonReattach.Parent" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;buttonReattach.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="flowLayoutPanelButtons.FlowDirection" type="System.Windows.Forms.FlowDirection, System.Windows.Forms">
<value>RightToLeft</value>
</data>
<data name="flowLayoutPanelButtons.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="flowLayoutPanelButtons.Location" type="System.Drawing.Point, System.Drawing">
<value>131, 149</value>
</data>
<data name="flowLayoutPanelButtons.Size" type="System.Drawing.Size, System.Drawing">
<value>259, 34</value>
</data>
<data name="flowLayoutPanelButtons.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="flowLayoutPanelButtons.WrapContents" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Name" xml:space="preserve">
<value>flowLayoutPanelButtons</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Type" xml:space="preserve">
<value>System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;flowLayoutPanelButtons.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="labelMessage.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelMessage.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelMessage.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelMessage.Location" type="System.Drawing.Point, System.Drawing">
<value>42, 5</value>
</data>
<data name="labelMessage.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>4, 5, 4, 5</value>
</data>
<data name="labelMessage.Size" type="System.Drawing.Size, System.Drawing">
<value>347, 95</value>
</data>
<data name="labelMessage.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="labelMessage.Text" xml:space="preserve">
<value>在所选 LUN 上找到现有 SR。请单击“重新连接”以使用现有 SR或者单击“格式化”以销毁磁盘上现有的任何数据并创建一个新 SR。
警告: 为避免数据丢失,必须确保该 LUN 未由其他任何系统(包括未连接到 [XenCenter] 的服务器)使用。</value>
</data>
<data name="&gt;&gt;labelMessage.Name" xml:space="preserve">
<value>labelMessage</value>
</data>
<data name="&gt;&gt;labelMessage.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelMessage.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelMessage.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="labelSRinfo.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="labelSRinfo.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelSRinfo.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelSRinfo.Location" type="System.Drawing.Point, System.Drawing">
<value>43, 110</value>
</data>
<data name="labelSRinfo.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>5, 5, 5, 5</value>
</data>
<data name="labelSRinfo.Size" type="System.Drawing.Size, System.Drawing">
<value>115, 31</value>
</data>
<data name="labelSRinfo.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="labelSRinfo.Text" xml:space="preserve">
<value>SR 大小: 5.0 GB
SR UUID: abc-123-456</value>
</data>
<data name="&gt;&gt;labelSRinfo.Name" xml:space="preserve">
<value>labelSRinfo</value>
</data>
<data name="&gt;&gt;labelSRinfo.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelSRinfo.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelSRinfo.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 10</value>
</data>
<data name="tableLayoutPanel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>393, 186</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?>&lt;TableLayoutSettings>&lt;Controls>&lt;Control Name="pictureBoxIcon" Row="0" RowSpan="1" Column="0" ColumnSpan="1" />&lt;Control Name="flowLayoutPanelButtons" Row="2" RowSpan="1" Column="1" ColumnSpan="1" />&lt;Control Name="labelMessage" Row="0" RowSpan="1" Column="1" ColumnSpan="1" />&lt;Control Name="labelSRinfo" Row="1" RowSpan="1" Column="1" ColumnSpan="1" />&lt;/Controls>&lt;Columns Styles="AutoSize,0,Percent,100" />&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,Absolute,20" />&lt;/TableLayoutSettings></value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>411, 205</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 8pt</value>
</data>
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="$this.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>9, 10, 9, 10</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>新建存储库</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>IscsiChoicesDialog</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>XenAdmin.Dialogs.XenDialogBase, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>

View File

@ -33,10 +33,9 @@ using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using XenAdmin.Actions;
using XenAdmin.Core;
using XenAdmin.Network;
using XenAdmin.Wizards.NewSRWizard_Pages.Frontends;
using XenAdmin.Wizards.NewSRWizard_Pages;
using XenAPI;
namespace XenAdmin.Dialogs.WarningDialogs
@ -44,22 +43,22 @@ namespace XenAdmin.Dialogs.WarningDialogs
public partial class LVMoHBAWarningDialog : XenDialogBase
{
private Panel highlightedPanel;
private FibreChannelDevice currentDevice;
private string deviceDetails;
private int remainingDevicesCount;
private bool foundExistingSR;
private readonly SR.SRTypes existingSrType;
private readonly SR.SRTypes requestedSrType;
private readonly IXenConnection _connection;
public LVMoHBA.UserSelectedOption SelectedOption { get; private set; }
public UserSelectedOption SelectedOption { get; private set; }
public bool RepeatForRemainingLUNs => checkBoxRepeat.Checked;
public LVMoHBAWarningDialog(IXenConnection connection, FibreChannelDevice currentDevice, int remainingDevicesCount,
public LVMoHBAWarningDialog(IXenConnection connection, string deviceDetails, int remainingDevicesCount,
bool foundExistingSR, SR.SRTypes existingSrType, SR.SRTypes requestedSrType)
{
InitializeComponent();
_connection = connection;
this.currentDevice = currentDevice;
this.deviceDetails = deviceDetails;
this.remainingDevicesCount = remainingDevicesCount;
this.foundExistingSR = foundExistingSR;
this.existingSrType = existingSrType;
@ -85,7 +84,7 @@ namespace XenAdmin.Dialogs.WarningDialogs
{
if (panel == null)
return;
Color color = highlighted ? SystemColors.ControlLight : SystemColors.Control;
panel.BackColor = color;
@ -109,7 +108,7 @@ namespace XenAdmin.Dialogs.WarningDialogs
HighlightedPanel = panelFormat;
}
private void ExistingSRsWarningDialog_MouseEnter(object sender, EventArgs e)
private void LVMoHBAWarningDialog_MouseEnter(object sender, EventArgs e)
{
HighlightedPanel = null;
}
@ -125,11 +124,8 @@ namespace XenAdmin.Dialogs.WarningDialogs
: Messages.LVMOHBA_WARNING_DIALOG_REPEAT_FOR_REMAINING_NO_SR;
checkBoxRepeat.Visible = remainingDevicesCount > 0;
labelLUNDetails.Text = string.Format(Messages.LVMOHBA_WARNING_DIALOG_LUN_DETAILS,
currentDevice.Vendor,
currentDevice.Serial,
string.IsNullOrEmpty(currentDevice.SCSIid) ? currentDevice.Path : currentDevice.SCSIid,
Util.DiskSizeString(currentDevice.Size));
labelLUNDetails.Text = deviceDetails;
labelSrDetails.Visible = false;
var isGfs2 = existingSrType == SR.SRTypes.gfs2;
var clusteringEnabled = _connection.Cache.Clusters.Any();
@ -160,21 +156,69 @@ namespace XenAdmin.Dialogs.WarningDialogs
private void buttonCancel_Click(object sender, EventArgs e)
{
SelectedOption = LVMoHBA.UserSelectedOption.Cancel;
SelectedOption = UserSelectedOption.Cancel;
}
private void panelReattach_Click(object sender, EventArgs e)
{
HighlightedPanel = panelReattach;
SelectedOption = LVMoHBA.UserSelectedOption.Reattach;
SelectedOption = UserSelectedOption.Reattach;
DialogResult = DialogResult.OK;
}
private void panelFormat_Click(object sender, EventArgs e)
{
HighlightedPanel = panelFormat;
SelectedOption = LVMoHBA.UserSelectedOption.Format;
SelectedOption = UserSelectedOption.Format;
DialogResult = DialogResult.OK;
}
public enum UserSelectedOption
{
Cancel,
Reattach,
Format,
Skip
}
}
public class LVMoIsciWarningDialog : LVMoHBAWarningDialog
{
public LVMoIsciWarningDialog(IXenConnection connection, SR.SRInfo srInfo, SR.SRTypes existingSrType, SR.SRTypes requestedSrType)
: base(connection, "", 0, srInfo != null, existingSrType, requestedSrType)
{
labelLUNDetails.Visible = false;
labelSrDetails.Visible = srInfo != null;
// CA-17230: if the found SR is used by other connected pools, offer only to attach it
if (srInfo != null)
{
SR sr = SrWizardHelpers.SrInUse(srInfo.UUID);
if (sr != null)
{
panelFormat.Visible = false;
labelWarning.Text = GetSrInUseMessage(sr);
}
labelSrDetails.Text = string.Format(Messages.ISCSI_DIALOG_SR_DETAILS, Util.DiskSizeString(srInfo.Size), srInfo.UUID);
}
}
public static string GetSrInUseMessage(SR sr)
{
Pool pool = Helpers.GetPool(sr.Connection);
if (pool != null)
return string.Format(Messages.NEWSR_LUN_IN_USE_ON_POOL, sr.Name(), pool.Name());
Host master = Helpers.GetMaster(sr.Connection);
if (master != null)
return string.Format(Messages.NEWSR_LUN_IN_USE_ON_SERVER, sr.Name(), master.Name());
return Messages.NEWSR_LUN_IN_USE;
}
}
}

View File

@ -44,11 +44,16 @@
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.labelWarning = new System.Windows.Forms.Label();
this.labelLUNDetails = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.labelSrDetails = new System.Windows.Forms.Label();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.panelReattach.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxArrowReattach)).BeginInit();
this.panelFormat.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxArrowFormat)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.SuspendLayout();
//
// buttonCancel
@ -159,6 +164,7 @@
// pictureBox2
//
resources.ApplyResources(this.pictureBox2, "pictureBox2");
this.pictureBox2.Image = global::XenAdmin.Properties.Resources._000_WarningAlert_h32bit_32;
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.TabStop = false;
//
@ -172,21 +178,39 @@
resources.ApplyResources(this.labelLUNDetails, "labelLUNDetails");
this.labelLUNDetails.Name = "labelLUNDetails";
//
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.labelLUNDetails, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.labelHeader, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.labelSrDetails, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.labelSelectOption, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.panelReattach, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.panelFormat, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 6);
this.tableLayoutPanel1.Controls.Add(this.checkBoxRepeat, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.buttonCancel, 0, 8);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// labelSrDetails
//
resources.ApplyResources(this.labelSrDetails, "labelSrDetails");
this.labelSrDetails.Name = "labelSrDetails";
//
// tableLayoutPanel2
//
resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2");
this.tableLayoutPanel2.Controls.Add(this.pictureBox2, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.labelWarning, 1, 0);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
//
// LVMoHBAWarningDialog
//
resources.ApplyResources(this, "$this");
this.CancelButton = this.buttonCancel;
this.Controls.Add(this.labelLUNDetails);
this.Controls.Add(this.labelWarning);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.panelFormat);
this.Controls.Add(this.panelReattach);
this.Controls.Add(this.labelSelectOption);
this.Controls.Add(this.labelHeader);
this.Controls.Add(this.checkBoxRepeat);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "LVMoHBAWarningDialog";
this.MouseEnter += new System.EventHandler(this.ExistingSRsWarningDialog_MouseEnter);
this.MouseEnter += new System.EventHandler(this.LVMoHBAWarningDialog_MouseEnter);
this.panelReattach.ResumeLayout(false);
this.panelReattach.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxArrowReattach)).EndInit();
@ -194,6 +218,10 @@
this.panelFormat.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxArrowFormat)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.tableLayoutPanel2.ResumeLayout(false);
this.tableLayoutPanel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@ -206,15 +234,18 @@
private System.Windows.Forms.Label labelHeader;
private System.Windows.Forms.Label labelSelectOption;
private XenAdmin.Controls.FlickerFreePanel panelReattach;
private XenAdmin.Controls.FlickerFreePanel panelFormat;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label labelWarning;
protected XenAdmin.Controls.FlickerFreePanel panelFormat;
protected System.Windows.Forms.PictureBox pictureBox2;
protected System.Windows.Forms.Label labelWarning;
private System.Windows.Forms.PictureBox pictureBoxArrowReattach;
private System.Windows.Forms.PictureBox pictureBoxArrowFormat;
private System.Windows.Forms.Label labelReattachInfo;
private System.Windows.Forms.Label labelFormatInfo;
private System.Windows.Forms.Label labelLUNDetails;
protected System.Windows.Forms.Label labelLUNDetails;
private System.Windows.Forms.Button buttonReattach;
private System.Windows.Forms.Button buttonFormat;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
protected System.Windows.Forms.Label labelSrDetails;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
}
}

View File

@ -119,21 +119,21 @@
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="buttonCancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
<value>Top, Right</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="buttonCancel.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="buttonCancel.Location" type="System.Drawing.Point, System.Drawing">
<value>330, 338</value>
<value>326, 391</value>
</data>
<data name="buttonCancel.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
<value>75, 25</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="buttonCancel.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
<value>8</value>
</data>
<data name="buttonCancel.Text" xml:space="preserve">
<value>Cancel</value>
@ -145,7 +145,7 @@
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonCancel.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;buttonCancel.ZOrder" xml:space="preserve">
<value>8</value>
@ -163,20 +163,20 @@
<value>Segoe UI, 9pt</value>
</data>
<data name="checkBoxRepeat.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 341</value>
<value>3, 366</value>
</data>
<data name="checkBoxRepeat.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 10, 3, 3</value>
</data>
<data name="checkBoxRepeat.Size" type="System.Drawing.Size, System.Drawing">
<value>292, 19</value>
</data>
<data name="checkBoxRepeat.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
<value>7</value>
</data>
<data name="checkBoxRepeat.Text" xml:space="preserve">
<value>Do this for all remaining LUNs without existing SRs</value>
</data>
<data name="checkBoxRepeat.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>TopLeft</value>
</data>
<data name="&gt;&gt;checkBoxRepeat.Name" xml:space="preserve">
<value>checkBoxRepeat</value>
</data>
@ -184,7 +184,7 @@
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;checkBoxRepeat.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;checkBoxRepeat.ZOrder" xml:space="preserve">
<value>7</value>
@ -196,7 +196,10 @@
<value>Segoe UI, 9pt, style=Bold</value>
</data>
<data name="labelHeader.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 81</value>
<value>3, 70</value>
</data>
<data name="labelHeader.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 0, 3, 10</value>
</data>
<data name="labelHeader.Size" type="System.Drawing.Size, System.Drawing">
<value>266, 15</value>
@ -214,10 +217,10 @@
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelHeader.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelHeader.ZOrder" xml:space="preserve">
<value>6</value>
<value>1</value>
</data>
<data name="labelSelectOption.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -226,16 +229,19 @@
<value>Segoe UI, 9pt</value>
</data>
<data name="labelSelectOption.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 108</value>
<value>3, 135</value>
</data>
<data name="labelSelectOption.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 0, 3, 10</value>
</data>
<data name="labelSelectOption.Size" type="System.Drawing.Size, System.Drawing">
<value>199, 15</value>
<value>202, 15</value>
</data>
<data name="labelSelectOption.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
<value>3</value>
</data>
<data name="labelSelectOption.Text" xml:space="preserve">
<value>Click the option below to add the SR</value>
<value>Click the option below to add the SR.</value>
</data>
<data name="&gt;&gt;labelSelectOption.Name" xml:space="preserve">
<value>labelSelectOption</value>
@ -244,10 +250,10 @@
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelSelectOption.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelSelectOption.ZOrder" xml:space="preserve">
<value>5</value>
<value>3</value>
</data>
<data name="panelReattach.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
@ -349,13 +355,13 @@
<value>Segoe UI, 9pt</value>
</data>
<data name="panelReattach.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 135</value>
<value>3, 163</value>
</data>
<data name="panelReattach.Size" type="System.Drawing.Size, System.Drawing">
<value>393, 62</value>
<value>398, 62</value>
</data>
<data name="panelReattach.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
<value>4</value>
</data>
<data name="&gt;&gt;panelReattach.Name" xml:space="preserve">
<value>panelReattach</value>
@ -364,7 +370,7 @@
<value>XenAdmin.Controls.FlickerFreePanel, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;panelReattach.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;panelReattach.ZOrder" xml:space="preserve">
<value>4</value>
@ -475,13 +481,13 @@
<value>Segoe UI, 9pt</value>
</data>
<data name="panelFormat.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 199</value>
<value>3, 231</value>
</data>
<data name="panelFormat.Size" type="System.Drawing.Size, System.Drawing">
<value>393, 64</value>
<value>398, 64</value>
</data>
<data name="panelFormat.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
<value>5</value>
</data>
<data name="&gt;&gt;panelFormat.Name" xml:space="preserve">
<value>panelFormat</value>
@ -490,65 +496,23 @@
<value>XenAdmin.Controls.FlickerFreePanel, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;panelFormat.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;panelFormat.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="pictureBox2.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left</value>
<value>5</value>
</data>
<data name="pictureBox2.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="pictureBox2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
<data name="pictureBox2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="pictureBox2.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 271</value>
<value>3, 3</value>
</data>
<data name="pictureBox2.Size" type="System.Drawing.Size, System.Drawing">
<value>32, 32</value>
</data>
<data name="pictureBox2.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>AutoSize</value>
</data>
<data name="pictureBox2.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
</data>
@ -559,25 +523,31 @@
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBox2.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel2</value>
</data>
<data name="&gt;&gt;pictureBox2.ZOrder" xml:space="preserve">
<value>2</value>
<value>0</value>
</data>
<data name="labelWarning.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left, Right</value>
<value>Left, Right</value>
</data>
<data name="labelWarning.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelWarning.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelWarning.Location" type="System.Drawing.Point, System.Drawing">
<value>51, 271</value>
<value>41, 0</value>
</data>
<data name="labelWarning.MaximumSize" type="System.Drawing.Size, System.Drawing">
<value>354, 500</value>
</data>
<data name="labelWarning.Size" type="System.Drawing.Size, System.Drawing">
<value>354, 54</value>
<value>354, 45</value>
</data>
<data name="labelWarning.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
<value>0</value>
</data>
<data name="labelWarning.Text" xml:space="preserve">
<value>To prevent data loss you must ensure that the LUN is not in use by any other system, including [XenServer] hosts that are not connected to [XenCenter].</value>
@ -589,7 +559,7 @@
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelWarning.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel2</value>
</data>
<data name="&gt;&gt;labelWarning.ZOrder" xml:space="preserve">
<value>1</value>
@ -597,14 +567,20 @@
<data name="labelLUNDetails.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelLUNDetails.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="labelLUNDetails.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelLUNDetails.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 9</value>
<value>3, 0</value>
</data>
<data name="labelLUNDetails.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 0, 3, 10</value>
</data>
<data name="labelLUNDetails.Size" type="System.Drawing.Size, System.Drawing">
<value>85, 60</value>
<value>398, 60</value>
</data>
<data name="labelLUNDetails.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
@ -623,23 +599,159 @@ Size:
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelLUNDetails.Parent" xml:space="preserve">
<value>$this</value>
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelLUNDetails.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="tableLayoutPanel1.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="labelSrDetails.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelSrDetails.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="labelSrDetails.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="labelSrDetails.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 95</value>
</data>
<data name="labelSrDetails.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 0, 3, 10</value>
</data>
<data name="labelSrDetails.Size" type="System.Drawing.Size, System.Drawing">
<value>398, 30</value>
</data>
<data name="labelSrDetails.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="labelSrDetails.Text" xml:space="preserve">
<value>SR size:
SR UUID:</value>
</data>
<data name="&gt;&gt;labelSrDetails.Name" xml:space="preserve">
<value>labelSrDetails</value>
</data>
<data name="&gt;&gt;labelSrDetails.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelSrDetails.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelSrDetails.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="tableLayoutPanel2.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left, Right</value>
</data>
<data name="tableLayoutPanel2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="tableLayoutPanel2.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="tableLayoutPanel2.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="tableLayoutPanel2.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel2.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 308</value>
</data>
<data name="tableLayoutPanel2.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 10, 3, 3</value>
</data>
<data name="tableLayoutPanel2.RowCount" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="tableLayoutPanel2.Size" type="System.Drawing.Size, System.Drawing">
<value>398, 45</value>
</data>
<data name="tableLayoutPanel2.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="&gt;&gt;tableLayoutPanel2.Name" xml:space="preserve">
<value>tableLayoutPanel2</value>
</data>
<data name="&gt;&gt;tableLayoutPanel2.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel2.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel2.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="tableLayoutPanel2.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="pictureBox2" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelWarning" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="tableLayoutPanel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Top</value>
</data>
<data name="tableLayoutPanel1.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>10, 10</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>404, 419</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="labelLUNDetails" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelHeader" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelSrDetails" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelSelectOption" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="panelReattach" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="panelFormat" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="tableLayoutPanel2" Row="6" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="checkBoxRepeat" Row="7" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="buttonCancel" Row="8" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="$this.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="$this.AutoSizeMode" type="System.Windows.Forms.AutoSizeMode, System.Windows.Forms">
<value>GrowAndShrink</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>417, 373</value>
<value>424, 461</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 9pt</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>440, 100</value>
</data>
<data name="$this.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>10, 10, 10, 10</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>New Storage Repository</value>
</data>

View File

@ -1,97 +0,0 @@
/* Copyright (c) Citrix Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this list of conditions and the
* following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the
* following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace XenAdmin.Utils
{
/// <summary>
/// Utility class that can remember Enabled states of controls provided. Original Enabled values can be restored.
/// </summary>
internal class TemporaryDisablerForControls
{
/// <summary>
/// Stores controls as Keys and their original Enabled states as Values.
/// </summary>
private readonly Dictionary<Control, bool> savedEnabledStatesOfControls = new Dictionary<Control, bool>();
/// <summary>
/// Saves the current Enabled values of the controls provided.
/// </summary>
/// <remarks>This does not clear previously saved data, but update the ones that were saved before and provided again.</remarks>
/// <param name="controls"></param>
public void SaveOrUpdateEnabledStates(IEnumerable<Control> controls)
{
if (controls == null)
throw new ArgumentNullException("controls");
foreach (var control in controls)
{
if (control == null)
continue;
if (savedEnabledStatesOfControls.ContainsKey(control))
savedEnabledStatesOfControls[control] = control.Enabled;
else
savedEnabledStatesOfControls.Add(control, control.Enabled);
}
}
/// <summary>
/// Clears all previously saved data.
/// </summary>
public void Reset()
{
savedEnabledStatesOfControls.Clear();
}
/// <summary>
/// Sets Enabled property to false on every control that was saved before.
/// </summary>
public void DisableAllControls()
{
foreach (var kvp in savedEnabledStatesOfControls)
kvp.Key.Enabled = false;
}
/// <summary>
/// Restores original Enabled property values on all controls that was saved before.
/// </summary>
public void RestoreEnabledOnAllControls()
{
foreach (var kvp in savedEnabledStatesOfControls)
kvp.Key.Enabled = kvp.Value;
}
}
}

View File

@ -401,6 +401,7 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
return false;
}
#region Accessors
public List<FibreChannelDevice> FCDevices { private get; set; }
@ -498,8 +499,6 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
}
}
public enum UserSelectedOption { Cancel, Reattach, Format, Skip }
private class LVMoHBAWarningDialogLauncher
{
private readonly Dictionary<FibreChannelDescriptor, FibreChannelDescriptor> inputSrDescriptors;
@ -519,10 +518,16 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
SrDescriptors = new List<FibreChannelDescriptor>();
}
private UserSelectedOption GetSelectedOption(FibreChannelDescriptor descriptor, int remainingCount, bool foundExistingSr,
private LVMoHBAWarningDialog.UserSelectedOption GetSelectedOption(FibreChannelDescriptor descriptor, int remainingCount, bool foundExistingSr,
SR.SRTypes existingSrType, out bool repeatForRemainingLUNs)
{
using (var dialog = new LVMoHBAWarningDialog(_connection, descriptor.Device, remainingCount, foundExistingSr, existingSrType, requestedSrType))
var deviceDetails = string.Format(Messages.LVMOHBA_WARNING_DIALOG_LUN_DETAILS,
descriptor.Device.Vendor,
descriptor.Device.Serial,
string.IsNullOrEmpty(descriptor.Device.SCSIid) ? descriptor.Device.Path : descriptor.Device.SCSIid,
Util.DiskSizeString(descriptor.Device.Size));
using (var dialog = new LVMoHBAWarningDialog(_connection, deviceDetails, remainingCount, foundExistingSr, existingSrType, requestedSrType))
{
dialog.ShowDialog(owner);
repeatForRemainingLUNs = dialog.RepeatForRemainingLUNs;
@ -534,8 +539,9 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
{
// process LUNs where existing SRs have been found
bool repeatForRemainingLUNs = false;
UserSelectedOption selectedOption = UserSelectedOption.Cancel;
var selectedOption = LVMoHBAWarningDialog.UserSelectedOption.Cancel;
var descriptors = inputSrDescriptors.Keys.Where(d => inputSrDescriptors[d] != null).ToList();
foreach (var descriptor in descriptors)
{
if (!repeatForRemainingLUNs)
@ -553,7 +559,7 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
// process LUNs where no existing have been found
repeatForRemainingLUNs = false;
selectedOption = UserSelectedOption.Cancel;
selectedOption = LVMoHBAWarningDialog.UserSelectedOption.Cancel;
descriptors = inputSrDescriptors.Keys.Where(d => inputSrDescriptors[d] == null).ToList();
foreach (var descriptor in descriptors)
@ -568,18 +574,18 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
}
}
private void ProcessSelectedOption(UserSelectedOption selectedOption, FibreChannelDescriptor descriptor)
private void ProcessSelectedOption(LVMoHBAWarningDialog.UserSelectedOption selectedOption, FibreChannelDescriptor descriptor)
{
switch (selectedOption)
{
case UserSelectedOption.Format:
case LVMoHBAWarningDialog.UserSelectedOption.Format:
descriptor.UUID = null;
SrDescriptors.Add(descriptor); // descriptor of requested SR
break;
case UserSelectedOption.Reattach:
case LVMoHBAWarningDialog.UserSelectedOption.Reattach:
SrDescriptors.Add(inputSrDescriptors[descriptor]); // value = descriptor of existing SR
break;
case UserSelectedOption.Cancel:
case LVMoHBAWarningDialog.UserSelectedOption.Cancel:
SrDescriptors.Clear();
Cancelled = true;
return;

View File

@ -33,40 +33,44 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.iSCSITargetGroupBox = new XenAdmin.Controls.DecentGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.labelIscsiIQN = new System.Windows.Forms.Label();
this.labelTargetIqn = new System.Windows.Forms.Label();
this.comboBoxIscsiIqns = new System.Windows.Forms.ComboBox();
this.comboBoxIscsiLuns = new System.Windows.Forms.ComboBox();
this.targetLunLabel = new System.Windows.Forms.Label();
this.errorLabelAtTargetLUN = new System.Windows.Forms.Label();
this.errorIconAtTargetLUN = new System.Windows.Forms.PictureBox();
this.labelTargetLun = new System.Windows.Forms.Label();
this.spinnerIconAtTargetIqn = new XenAdmin.Controls.SpinnerIcon();
this.spinnerIconAtTargetLun = new XenAdmin.Controls.SpinnerIcon();
this.errorLabelAtCHAPPassword = new System.Windows.Forms.Label();
this.errorIconAtCHAPPassword = new System.Windows.Forms.PictureBox();
this.errorIconAtHostOrIP = new System.Windows.Forms.PictureBox();
this.scanTargetHostButton = new System.Windows.Forms.Button();
this.errorIconAtTargetLUN = new System.Windows.Forms.PictureBox();
this.errorLabelAtTargetLUN = new System.Windows.Forms.Label();
this.buttonScanTargetHost = new System.Windows.Forms.Button();
this.labelIscsiTargetHost = new System.Windows.Forms.Label();
this.textBoxIscsiHost = new System.Windows.Forms.TextBox();
this.labelColon = new System.Windows.Forms.Label();
this.textBoxIscsiPort = new System.Windows.Forms.TextBox();
this.IScsiChapUserTextBox = new System.Windows.Forms.TextBox();
this.IScsiChapSecretTextBox = new System.Windows.Forms.TextBox();
this.textBoxChapUser = new System.Windows.Forms.TextBox();
this.textBoxChapPassword = new System.Windows.Forms.TextBox();
this.labelCHAPuser = new System.Windows.Forms.Label();
this.IScsiChapSecretLabel = new System.Windows.Forms.Label();
this.IscsiUseChapCheckBox = new System.Windows.Forms.CheckBox();
this.label11 = new System.Windows.Forms.Label();
this.errorLabelAtHostname = new System.Windows.Forms.Label();
this.spinnerIconAtScanTargetHostButton = new XenAdmin.Controls.SpinnerIcon();
this.toolTipContainerIQNscan = new XenAdmin.Controls.ToolTipContainer();
this.tableLayoutPanelError = new System.Windows.Forms.TableLayoutPanel();
this.errorIconBottom = new System.Windows.Forms.PictureBox();
this.errorLabelBottom = new System.Windows.Forms.Label();
this.errorIconAtHostOrIP = new System.Windows.Forms.PictureBox();
this.errorLabelAtHostOrIP = new System.Windows.Forms.Label();
this.errorIconAtCHAPPassword = new System.Windows.Forms.PictureBox();
this.errorLabelAtCHAPPassword = new System.Windows.Forms.Label();
this.checkBoxUseChap = new System.Windows.Forms.CheckBox();
this.tableLayoutPanel1.SuspendLayout();
this.iSCSITargetGroupBox.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtTargetLUN)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.spinnerIconAtTargetIqn)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.spinnerIconAtTargetLun)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtCHAPPassword)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtHostOrIP)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtTargetLUN)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.spinnerIconAtScanTargetHostButton)).BeginInit();
this.tableLayoutPanelError.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorIconBottom)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtHostOrIP)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtCHAPPassword)).BeginInit();
this.SuspendLayout();
//
// lunInUseLabel
@ -77,29 +81,30 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.iSCSITargetGroupBox, 0, 8);
this.tableLayoutPanel1.Controls.Add(this.errorLabelAtCHAPPassword, 3, 6);
this.tableLayoutPanel1.Controls.Add(this.errorIconAtCHAPPassword, 2, 6);
this.tableLayoutPanel1.Controls.Add(this.errorIconAtHostOrIP, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.scanTargetHostButton, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.labelIscsiTargetHost, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.textBoxIscsiHost, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.labelColon, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.textBoxIscsiPort, 4, 1);
this.tableLayoutPanel1.Controls.Add(this.IScsiChapUserTextBox, 2, 4);
this.tableLayoutPanel1.Controls.Add(this.IScsiChapSecretTextBox, 2, 5);
this.tableLayoutPanel1.Controls.Add(this.labelCHAPuser, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.IScsiChapSecretLabel, 1, 5);
this.tableLayoutPanel1.Controls.Add(this.IscsiUseChapCheckBox, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.label11, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.errorLabelAtHostname, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.spinnerIconAtScanTargetHostButton, 2, 7);
this.tableLayoutPanel1.Controls.Add(this.labelIscsiTargetHost, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.textBoxIscsiHost, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.labelColon, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.textBoxIscsiPort, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.errorIconAtHostOrIP, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.errorLabelAtHostOrIP, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.checkBoxUseChap, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.labelCHAPuser, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.textBoxChapUser, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.IScsiChapSecretLabel, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.textBoxChapPassword, 1, 5);
this.tableLayoutPanel1.Controls.Add(this.errorIconAtCHAPPassword, 1, 6);
this.tableLayoutPanel1.Controls.Add(this.errorLabelAtCHAPPassword, 2, 6);
this.tableLayoutPanel1.Controls.Add(this.buttonScanTargetHost, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.spinnerIconAtScanTargetHostButton, 1, 7);
this.tableLayoutPanel1.Controls.Add(this.iSCSITargetGroupBox, 0, 8);
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanelError, 0, 9);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// iSCSITargetGroupBox
//
resources.ApplyResources(this.iSCSITargetGroupBox, "iSCSITargetGroupBox");
this.tableLayoutPanel1.SetColumnSpan(this.iSCSITargetGroupBox, 6);
this.tableLayoutPanel1.SetColumnSpan(this.iSCSITargetGroupBox, 5);
this.iSCSITargetGroupBox.Controls.Add(this.tableLayoutPanel2);
this.iSCSITargetGroupBox.Name = "iSCSITargetGroupBox";
this.iSCSITargetGroupBox.TabStop = false;
@ -107,21 +112,21 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
// tableLayoutPanel2
//
resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2");
this.tableLayoutPanel2.Controls.Add(this.labelIscsiIQN, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.labelTargetIqn, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.comboBoxIscsiIqns, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.comboBoxIscsiLuns, 1, 1);
this.tableLayoutPanel2.Controls.Add(this.targetLunLabel, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.errorLabelAtTargetLUN, 2, 2);
this.tableLayoutPanel2.Controls.Add(this.errorIconAtTargetLUN, 1, 2);
this.tableLayoutPanel2.Controls.Add(this.spinnerIconAtTargetIqn, 3, 0);
this.tableLayoutPanel2.Controls.Add(this.labelTargetLun, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.comboBoxIscsiLuns, 1, 1);
this.tableLayoutPanel2.Controls.Add(this.spinnerIconAtTargetLun, 3, 1);
this.tableLayoutPanel2.Controls.Add(this.errorIconAtTargetLUN, 1, 2);
this.tableLayoutPanel2.Controls.Add(this.errorLabelAtTargetLUN, 2, 2);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
//
// labelIscsiIQN
// labelTargetIqn
//
resources.ApplyResources(this.labelIscsiIQN, "labelIscsiIQN");
this.labelIscsiIQN.BackColor = System.Drawing.Color.Transparent;
this.labelIscsiIQN.Name = "labelIscsiIQN";
resources.ApplyResources(this.labelTargetIqn, "labelTargetIqn");
this.labelTargetIqn.BackColor = System.Drawing.Color.Transparent;
this.labelTargetIqn.Name = "labelTargetIqn";
//
// comboBoxIscsiIqns
//
@ -130,7 +135,7 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.comboBoxIscsiIqns.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxIscsiIqns.FormattingEnabled = true;
this.comboBoxIscsiIqns.Name = "comboBoxIscsiIqns";
this.comboBoxIscsiIqns.SelectedIndexChanged += new System.EventHandler(this.IScsiTargetIqnComboBox_SelectedIndexChanged);
this.comboBoxIscsiIqns.SelectedIndexChanged += new System.EventHandler(this.comboBoxIscsiIqns_SelectedIndexChanged);
//
// comboBoxIscsiLuns
//
@ -141,25 +146,10 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.comboBoxIscsiLuns.Name = "comboBoxIscsiLuns";
this.comboBoxIscsiLuns.SelectedIndexChanged += new System.EventHandler(this.comboBoxIscsiLuns_SelectedIndexChanged);
//
// targetLunLabel
// labelTargetLun
//
resources.ApplyResources(this.targetLunLabel, "targetLunLabel");
this.targetLunLabel.Name = "targetLunLabel";
//
// errorLabelAtTargetLUN
//
resources.ApplyResources(this.errorLabelAtTargetLUN, "errorLabelAtTargetLUN");
this.errorLabelAtTargetLUN.AutoEllipsis = true;
this.tableLayoutPanel2.SetColumnSpan(this.errorLabelAtTargetLUN, 2);
this.errorLabelAtTargetLUN.ForeColor = System.Drawing.Color.Red;
this.errorLabelAtTargetLUN.Name = "errorLabelAtTargetLUN";
//
// errorIconAtTargetLUN
//
resources.ApplyResources(this.errorIconAtTargetLUN, "errorIconAtTargetLUN");
this.errorIconAtTargetLUN.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
this.errorIconAtTargetLUN.Name = "errorIconAtTargetLUN";
this.errorIconAtTargetLUN.TabStop = false;
resources.ApplyResources(this.labelTargetLun, "labelTargetLun");
this.labelTargetLun.Name = "labelTargetLun";
//
// spinnerIconAtTargetIqn
//
@ -173,40 +163,29 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.spinnerIconAtTargetLun.Name = "spinnerIconAtTargetLun";
this.spinnerIconAtTargetLun.TabStop = false;
//
// errorLabelAtCHAPPassword
// errorIconAtTargetLUN
//
resources.ApplyResources(this.errorLabelAtCHAPPassword, "errorLabelAtCHAPPassword");
this.errorLabelAtCHAPPassword.AutoEllipsis = true;
this.tableLayoutPanel1.SetColumnSpan(this.errorLabelAtCHAPPassword, 3);
this.errorLabelAtCHAPPassword.ForeColor = System.Drawing.Color.Red;
this.errorLabelAtCHAPPassword.Name = "errorLabelAtCHAPPassword";
this.errorIconAtTargetLUN.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
resources.ApplyResources(this.errorIconAtTargetLUN, "errorIconAtTargetLUN");
this.errorIconAtTargetLUN.Name = "errorIconAtTargetLUN";
this.errorIconAtTargetLUN.TabStop = false;
//
// errorIconAtCHAPPassword
// errorLabelAtTargetLUN
//
resources.ApplyResources(this.errorIconAtCHAPPassword, "errorIconAtCHAPPassword");
this.errorIconAtCHAPPassword.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
this.errorIconAtCHAPPassword.Name = "errorIconAtCHAPPassword";
this.errorIconAtCHAPPassword.TabStop = false;
resources.ApplyResources(this.errorLabelAtTargetLUN, "errorLabelAtTargetLUN");
this.errorLabelAtTargetLUN.ForeColor = System.Drawing.Color.Red;
this.errorLabelAtTargetLUN.Name = "errorLabelAtTargetLUN";
//
// errorIconAtHostOrIP
// buttonScanTargetHost
//
resources.ApplyResources(this.errorIconAtHostOrIP, "errorIconAtHostOrIP");
this.errorIconAtHostOrIP.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
this.errorIconAtHostOrIP.Name = "errorIconAtHostOrIP";
this.errorIconAtHostOrIP.TabStop = false;
//
// scanTargetHostButton
//
resources.ApplyResources(this.scanTargetHostButton, "scanTargetHostButton");
this.tableLayoutPanel1.SetColumnSpan(this.scanTargetHostButton, 2);
this.scanTargetHostButton.Name = "scanTargetHostButton";
this.scanTargetHostButton.Click += new System.EventHandler(this.scanTargetHostButton_Click);
resources.ApplyResources(this.buttonScanTargetHost, "buttonScanTargetHost");
this.buttonScanTargetHost.Name = "buttonScanTargetHost";
this.buttonScanTargetHost.Click += new System.EventHandler(this.buttonScanTargetHost_Click);
//
// labelIscsiTargetHost
//
resources.ApplyResources(this.labelIscsiTargetHost, "labelIscsiTargetHost");
this.labelIscsiTargetHost.BackColor = System.Drawing.Color.Transparent;
this.tableLayoutPanel1.SetColumnSpan(this.labelIscsiTargetHost, 2);
this.labelIscsiTargetHost.Name = "labelIscsiTargetHost";
//
// textBoxIscsiHost
@ -227,21 +206,21 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.textBoxIscsiPort.Name = "textBoxIscsiPort";
this.textBoxIscsiPort.TextChanged += new System.EventHandler(this.textBoxIscsiHost_TextChanged);
//
// IScsiChapUserTextBox
// textBoxChapUser
//
this.IScsiChapUserTextBox.AllowDrop = true;
resources.ApplyResources(this.IScsiChapUserTextBox, "IScsiChapUserTextBox");
this.tableLayoutPanel1.SetColumnSpan(this.IScsiChapUserTextBox, 2);
this.IScsiChapUserTextBox.Name = "IScsiChapUserTextBox";
this.IScsiChapUserTextBox.TextChanged += new System.EventHandler(this.ChapSettings_Changed);
this.textBoxChapUser.AllowDrop = true;
resources.ApplyResources(this.textBoxChapUser, "textBoxChapUser");
this.tableLayoutPanel1.SetColumnSpan(this.textBoxChapUser, 2);
this.textBoxChapUser.Name = "textBoxChapUser";
this.textBoxChapUser.TextChanged += new System.EventHandler(this.textBoxChapUser_TextChanged);
//
// IScsiChapSecretTextBox
// textBoxChapPassword
//
resources.ApplyResources(this.IScsiChapSecretTextBox, "IScsiChapSecretTextBox");
this.tableLayoutPanel1.SetColumnSpan(this.IScsiChapSecretTextBox, 2);
this.IScsiChapSecretTextBox.Name = "IScsiChapSecretTextBox";
this.IScsiChapSecretTextBox.UseSystemPasswordChar = true;
this.IScsiChapSecretTextBox.TextChanged += new System.EventHandler(this.ChapSettings_Changed);
resources.ApplyResources(this.textBoxChapPassword, "textBoxChapPassword");
this.tableLayoutPanel1.SetColumnSpan(this.textBoxChapPassword, 2);
this.textBoxChapPassword.Name = "textBoxChapPassword";
this.textBoxChapPassword.UseSystemPasswordChar = true;
this.textBoxChapPassword.TextChanged += new System.EventHandler(this.textBoxChapPassword_TextChanged);
//
// labelCHAPuser
//
@ -255,57 +234,96 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
this.IScsiChapSecretLabel.BackColor = System.Drawing.Color.Transparent;
this.IScsiChapSecretLabel.Name = "IScsiChapSecretLabel";
//
// IscsiUseChapCheckBox
//
resources.ApplyResources(this.IscsiUseChapCheckBox, "IscsiUseChapCheckBox");
this.tableLayoutPanel1.SetColumnSpan(this.IscsiUseChapCheckBox, 6);
this.IscsiUseChapCheckBox.Name = "IscsiUseChapCheckBox";
this.IscsiUseChapCheckBox.UseVisualStyleBackColor = true;
this.IscsiUseChapCheckBox.CheckedChanged += new System.EventHandler(this.IscsiUseChapCheckBox_CheckedChanged);
//
// label11
//
resources.ApplyResources(this.label11, "label11");
this.tableLayoutPanel1.SetColumnSpan(this.label11, 6);
this.tableLayoutPanel1.SetColumnSpan(this.label11, 5);
this.label11.Name = "label11";
//
// errorLabelAtHostname
//
resources.ApplyResources(this.errorLabelAtHostname, "errorLabelAtHostname");
this.errorLabelAtHostname.AutoEllipsis = true;
this.tableLayoutPanel1.SetColumnSpan(this.errorLabelAtHostname, 3);
this.errorLabelAtHostname.ForeColor = System.Drawing.Color.Red;
this.errorLabelAtHostname.Name = "errorLabelAtHostname";
//
// spinnerIconAtScanTargetHostButton
//
resources.ApplyResources(this.spinnerIconAtScanTargetHostButton, "spinnerIconAtScanTargetHostButton");
this.spinnerIconAtScanTargetHostButton.Name = "spinnerIconAtScanTargetHostButton";
this.spinnerIconAtScanTargetHostButton.TabStop = false;
//
// toolTipContainerIQNscan
// tableLayoutPanelError
//
resources.ApplyResources(this.toolTipContainerIQNscan, "toolTipContainerIQNscan");
this.toolTipContainerIQNscan.Name = "toolTipContainerIQNscan";
resources.ApplyResources(this.tableLayoutPanelError, "tableLayoutPanelError");
this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanelError, 5);
this.tableLayoutPanelError.Controls.Add(this.errorIconBottom, 0, 0);
this.tableLayoutPanelError.Controls.Add(this.errorLabelBottom, 1, 0);
this.tableLayoutPanelError.Name = "tableLayoutPanelError";
//
// errorIconBottom
//
this.errorIconBottom.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
resources.ApplyResources(this.errorIconBottom, "errorIconBottom");
this.errorIconBottom.Name = "errorIconBottom";
this.errorIconBottom.TabStop = false;
//
// errorLabelBottom
//
resources.ApplyResources(this.errorLabelBottom, "errorLabelBottom");
this.errorLabelBottom.ForeColor = System.Drawing.Color.Red;
this.errorLabelBottom.Name = "errorLabelBottom";
//
// errorIconAtHostOrIP
//
this.errorIconAtHostOrIP.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
resources.ApplyResources(this.errorIconAtHostOrIP, "errorIconAtHostOrIP");
this.errorIconAtHostOrIP.Name = "errorIconAtHostOrIP";
this.errorIconAtHostOrIP.TabStop = false;
//
// errorLabelAtHostOrIP
//
resources.ApplyResources(this.errorLabelAtHostOrIP, "errorLabelAtHostOrIP");
this.tableLayoutPanel1.SetColumnSpan(this.errorLabelAtHostOrIP, 3);
this.errorLabelAtHostOrIP.ForeColor = System.Drawing.Color.Red;
this.errorLabelAtHostOrIP.Name = "errorLabelAtHostOrIP";
//
// errorIconAtCHAPPassword
//
this.errorIconAtCHAPPassword.Image = global::XenAdmin.Properties.Resources._000_error_h32bit_16;
resources.ApplyResources(this.errorIconAtCHAPPassword, "errorIconAtCHAPPassword");
this.errorIconAtCHAPPassword.Name = "errorIconAtCHAPPassword";
this.errorIconAtCHAPPassword.TabStop = false;
//
// errorLabelAtCHAPPassword
//
resources.ApplyResources(this.errorLabelAtCHAPPassword, "errorLabelAtCHAPPassword");
this.tableLayoutPanel1.SetColumnSpan(this.errorLabelAtCHAPPassword, 3);
this.errorLabelAtCHAPPassword.ForeColor = System.Drawing.Color.Red;
this.errorLabelAtCHAPPassword.Name = "errorLabelAtCHAPPassword";
//
// checkBoxUseChap
//
resources.ApplyResources(this.checkBoxUseChap, "checkBoxUseChap");
this.tableLayoutPanel1.SetColumnSpan(this.checkBoxUseChap, 5);
this.checkBoxUseChap.Name = "checkBoxUseChap";
this.checkBoxUseChap.UseVisualStyleBackColor = true;
this.checkBoxUseChap.CheckedChanged += new System.EventHandler(this.checkBoxUseChap_CheckedChanged);
//
// LVMoISCSI
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.toolTipContainerIQNscan);
this.Name = "LVMoISCSI";
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.iSCSITargetGroupBox.ResumeLayout(false);
this.iSCSITargetGroupBox.PerformLayout();
this.tableLayoutPanel2.ResumeLayout(false);
this.tableLayoutPanel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtTargetLUN)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.spinnerIconAtTargetIqn)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.spinnerIconAtTargetLun)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtCHAPPassword)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtHostOrIP)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtTargetLUN)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.spinnerIconAtScanTargetHostButton)).EndInit();
this.tableLayoutPanelError.ResumeLayout(false);
this.tableLayoutPanelError.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.errorIconBottom)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtHostOrIP)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.errorIconAtCHAPPassword)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -315,32 +333,34 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages.Frontends
private System.Windows.Forms.TextBox textBoxIscsiPort;
private System.Windows.Forms.Label labelColon;
private XenAdmin.Controls.ToolTipContainer toolTipContainerIQNscan;
private System.Windows.Forms.Button scanTargetHostButton;
private System.Windows.Forms.CheckBox IscsiUseChapCheckBox;
private System.Windows.Forms.Button buttonScanTargetHost;
private System.Windows.Forms.CheckBox checkBoxUseChap;
private System.Windows.Forms.ComboBox comboBoxIscsiIqns;
private System.Windows.Forms.ComboBox comboBoxIscsiLuns;
private System.Windows.Forms.Label errorLabelAtHostname;
private System.Windows.Forms.Label lunInUseLabel;
private System.Windows.Forms.Label targetLunLabel;
private System.Windows.Forms.Label labelTargetLun;
private System.Windows.Forms.Label IScsiChapSecretLabel;
private System.Windows.Forms.TextBox IScsiChapSecretTextBox;
private System.Windows.Forms.TextBox textBoxChapPassword;
private System.Windows.Forms.Label labelCHAPuser;
private System.Windows.Forms.TextBox IScsiChapUserTextBox;
private System.Windows.Forms.TextBox textBoxChapUser;
private System.Windows.Forms.Label labelIscsiTargetHost;
private System.Windows.Forms.Label labelIscsiIQN;
private System.Windows.Forms.Label labelTargetIqn;
private System.Windows.Forms.TextBox textBoxIscsiHost;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private XenAdmin.Controls.DecentGroupBox iSCSITargetGroupBox;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.PictureBox errorIconAtTargetLUN;
private System.Windows.Forms.PictureBox errorIconAtHostOrIP;
private System.Windows.Forms.PictureBox errorIconAtCHAPPassword;
private System.Windows.Forms.Label errorLabelAtCHAPPassword;
private System.Windows.Forms.Label errorLabelAtTargetLUN;
private XenAdmin.Controls.SpinnerIcon spinnerIconAtTargetIqn;
private XenAdmin.Controls.SpinnerIcon spinnerIconAtTargetLun;
private XenAdmin.Controls.SpinnerIcon spinnerIconAtScanTargetHostButton;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelError;
private System.Windows.Forms.PictureBox errorIconBottom;
private System.Windows.Forms.Label errorLabelBottom;
private System.Windows.Forms.PictureBox errorIconAtTargetLUN;
private System.Windows.Forms.Label errorLabelAtTargetLUN;
private System.Windows.Forms.PictureBox errorIconAtHostOrIP;
private System.Windows.Forms.Label errorLabelAtHostOrIP;
private System.Windows.Forms.PictureBox errorIconAtCHAPPassword;
private System.Windows.Forms.Label errorLabelAtCHAPPassword;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -77,17 +77,9 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages
return null;
}
private static bool NameExists(String potentialName, IEnumerable<string> names)
public static string DefaultSRName(string potentialName, List<string> names)
{
if (names != null)
return names.Any(name => name.Equals(potentialName));
return false;
}
public static String DefaultSRName(String potentialName, IEnumerable<string> names)
{
if (!NameExists(potentialName, names))
if (!names.Contains(potentialName))
return potentialName;
int i = 0;
@ -96,16 +88,16 @@ namespace XenAdmin.Wizards.NewSRWizard_Pages
{
i++;
String name = string.Format(Messages.NEWVM_DEFAULTNAME, potentialName, i);
string name = string.Format(Messages.NEWVM_DEFAULTNAME, potentialName, i);
if (!NameExists(name, names))
if (!names.Contains(name))
return name;
}
}
public static String DefaultSRName(String potentialName, IXenConnection connection)
public static string DefaultSRName(string potentialName, IXenConnection connection)
{
return DefaultSRName(potentialName, connection.Cache.SRs.Select(sr => sr.Name()));
return DefaultSRName(potentialName, connection.Cache.SRs.Select(sr => sr.Name()).ToList());
}
}
}

View File

@ -1298,12 +1298,6 @@
<Compile Include="Dialogs\DialogWithProgress.Designer.cs">
<DependentUpon>DialogWithProgress.cs</DependentUpon>
</Compile>
<Compile Include="Dialogs\IscsiChoicesDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Dialogs\IscsiChoicesDialog.Designer.cs">
<DependentUpon>IscsiChoicesDialog.cs</DependentUpon>
</Compile>
<Compile Include="Dialogs\ActionProgressDialog.cs">
<SubType>Form</SubType>
</Compile>
@ -2643,10 +2637,6 @@
<DependentUpon>ThreeButtonDialog.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\IscsiChoicesDialog.resx">
<DependentUpon>IscsiChoicesDialog.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\ActionProgressDialog.resx">
<SubType>Designer</SubType>
<DependentUpon>ActionProgressDialog.cs</DependentUpon>
@ -3335,7 +3325,6 @@
</Compile>
<Compile Include="Core\ActionBaseExtensions.cs" />
<Compile Include="TabPages\GeneralTabLicenseStatusStringifier.cs" />
<Compile Include="Utils\TemporaryDisablerForControls.cs" />
<Compile Include="WinformsXenAdminConfigProvider.cs" />
<Compile Include="Actions\GUIActions\Wlb\ExportReportAction.cs" />
<Compile Include="Actions\GUIActions\Wlb\WlbOptimizePoolAction.cs" />
@ -5382,12 +5371,6 @@
<EmbeddedResource Include="Dialogs\InputPromptDialog.zh-CN.resx">
<DependentUpon>InputPromptDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\IscsiChoicesDialog.ja.resx">
<DependentUpon>IscsiChoicesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\IscsiChoicesDialog.zh-CN.resx">
<DependentUpon>IscsiChoicesDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Dialogs\IscsiDeviceConfigDialog.ja.resx">
<DependentUpon>IscsiDeviceConfigDialog.cs</DependentUpon>
</EmbeddedResource>

View File

@ -12394,15 +12394,6 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to [XenCenter] has detected that an SR already exists on this LUN. This SR is not currently in use by &apos;{0}&apos;, would you like to attach it?.
/// </summary>
public static string DETACHED_ISCI_DETECTED {
get {
return ResourceManager.GetString("DETACHED_ISCI_DETECTED", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Details.
/// </summary>
@ -15881,17 +15872,6 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to An existing {0} SR was found on the selected LUN. Click Reattach to use the existing SR, or click Format to destroy any data present on the disk and create a new {1} SR.
///
///Warning: to prevent data loss you must ensure that the LUN is not in use by any other system, including servers that are not connected to [XenCenter]..
/// </summary>
public static string EXISTING_SR_FOUND_ON_LUN {
get {
return ResourceManager.GetString("EXISTING_SR_FOUND_ON_LUN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Exit &amp;Maintenance Mode.
/// </summary>
@ -21301,7 +21281,7 @@ namespace XenAdmin {
}
/// <summary>
/// Looks up a localized string similar to Invalid host name.
/// Looks up a localized string similar to Invalid target host.
/// </summary>
public static string INVALID_HOST {
get {
@ -21490,18 +21470,6 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to Vendor: {0}
///Serial Number: {1}
///SCSI ID: {2}
///Size: {3}.
/// </summary>
public static string ISCSI_DIALOG_SR_DETAILS_FOR_FIBRECHANNEL {
get {
return ResourceManager.GetString("ISCSI_DIALOG_SR_DETAILS_FOR_FIBRECHANNEL", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Interrogation failed -- call succeeded!.
/// </summary>
@ -26246,17 +26214,6 @@ namespace XenAdmin {
}
}
/// <summary>
/// Looks up a localized string similar to Creating a new virtual disk on this LUN will destroy any data present. You must ensure that no other system is using the LUN, including any servers, or the virtual disk may become corrupted while in use.
///
///Do you want to format the disk?.
/// </summary>
public static string NEWSR_ISCSI_FORMAT_WARNING {
get {
return ResourceManager.GetString("NEWSR_ISCSI_FORMAT_WARNING", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to NFS ISO Library [{0}].
/// </summary>

View File

@ -4394,9 +4394,6 @@ This will also delete its subfolders.</value>
<data name="DETACHED_BRACKETS" xml:space="preserve">
<value>{0} (Detached)</value>
</data>
<data name="DETACHED_ISCI_DETECTED" xml:space="preserve">
<value>[XenCenter] has detected that an SR already exists on this LUN. This SR is not currently in use by '{0}', would you like to attach it?</value>
</data>
<data name="DETACH_ALL_BUTTON_LABEL" xml:space="preserve">
<value>&amp;Detach all</value>
</data>
@ -5571,11 +5568,6 @@ Would you like to eject these ISOs before continuing?</value>
<data name="EXCEPTION_USER_CANCELLED_MASTER" xml:space="preserve">
<value>User canceled. Master needs to be upgraded first.</value>
</data>
<data name="EXISTING_SR_FOUND_ON_LUN" xml:space="preserve">
<value>An existing {0} SR was found on the selected LUN. Click Reattach to use the existing SR, or click Format to destroy any data present on the disk and create a new {1} SR.
Warning: to prevent data loss you must ensure that the LUN is not in use by any other system, including servers that are not connected to [XenCenter].</value>
</data>
<data name="EXIT_MAINTENANCE_MODE" xml:space="preserve">
<value>Exit &amp;Maintenance Mode</value>
</data>
@ -7398,7 +7390,7 @@ This might result in failure to migrate VMs to this server during the RPU or to
<value>Invalid disk size</value>
</data>
<data name="INVALID_HOST" xml:space="preserve">
<value>Invalid host name</value>
<value>Invalid target host.</value>
</data>
<data name="INVALID_NUMBER" xml:space="preserve">
<value>Invalid number</value>
@ -7457,12 +7449,6 @@ This might result in failure to migrate VMs to this server during the RPU or to
<data name="ISCSI_DIALOG_SR_DETAILS" xml:space="preserve">
<value>SR size: {0}
SR UUID: {1}</value>
</data>
<data name="ISCSI_DIALOG_SR_DETAILS_FOR_FIBRECHANNEL" xml:space="preserve">
<value>Vendor: {0}
Serial Number: {1}
SCSI ID: {2}
Size: {3}</value>
</data>
<data name="ISCSI_FAIL" xml:space="preserve">
<value>Interrogation failed -- call succeeded!</value>
@ -8961,11 +8947,6 @@ When you configure a SMB storage repository, you simply provide the host name or
<data name="NEWSR_ISCSI_DESCRIPTION" xml:space="preserve">
<value>iSCSI SR [{0} ({1}; {2})]</value>
</data>
<data name="NEWSR_ISCSI_FORMAT_WARNING" xml:space="preserve">
<value>Creating a new virtual disk on this LUN will destroy any data present. You must ensure that no other system is using the LUN, including any servers, or the virtual disk may become corrupted while in use.
Do you want to format the disk?</value>
</data>
<data name="NEWSR_ISO_DESCRIPTION" xml:space="preserve">
<value>NFS ISO Library [{0}]</value>
</data>