프로젝트

일반

사용자정보

개정판 b9261a46

IDb9261a4686cf45bf17a197e887bb449056d4d82d
상위 c3e8fa8e
하위 806706cc

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #000 : add form

Change-Id: I4c6462c3f4dda60b81917c462048837061447158

차이점 보기:

DTI_PID/SPPIDConverter/Form/SymmetryForm.Designer.cs
1
namespace Converter.SPPID
2
{
3
    partial class SymmetryForm
4
    {
5
        /// <summary>
6
        /// Required designer variable.
7
        /// </summary>
8
        private System.ComponentModel.IContainer components = null;
9

  
10
        /// <summary>
11
        /// Clean up any resources being used.
12
        /// </summary>
13
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
        protected override void Dispose(bool disposing)
15
        {
16
            if (disposing && (components != null))
17
            {
18
                components.Dispose();
19
            }
20
            base.Dispose(disposing);
21
        }
22

  
23
        #region Windows Form Designer generated code
24

  
25
        /// <summary>
26
        /// Required method for Designer support - do not modify
27
        /// the contents of this method with the code editor.
28
        /// </summary>
29
        private void InitializeComponent()
30
        {
31
            this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl();
32
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
33
            this.btnDown = new DevExpress.XtraEditors.CheckButton();
34
            this.btnUp = new DevExpress.XtraEditors.CheckButton();
35
            this.btnRight = new DevExpress.XtraEditors.CheckButton();
36
            this.btnLeft = new DevExpress.XtraEditors.CheckButton();
37
            this.btnCancel = new DevExpress.XtraEditors.SimpleButton();
38
            this.btnOK = new DevExpress.XtraEditors.SimpleButton();
39
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
40
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
41
            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
42
            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
43
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
44
            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
45
            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
46
            this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
47
            this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
48
            this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
49
            this.emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem();
50
            this.emptySpaceItem6 = new DevExpress.XtraLayout.EmptySpaceItem();
51
            this.emptySpaceItem7 = new DevExpress.XtraLayout.EmptySpaceItem();
52
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
53
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
54
            this.layoutControl1.SuspendLayout();
55
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
56
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
57
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
58
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
59
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
60
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
61
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
62
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
63
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
64
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
65
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).BeginInit();
66
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem6)).BeginInit();
67
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem7)).BeginInit();
68
            this.SuspendLayout();
69
            // 
70
            // ribbonControl
71
            // 
72
            this.ribbonControl.ExpandCollapseItem.Id = 0;
73
            this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
74
            this.ribbonControl.ExpandCollapseItem});
75
            this.ribbonControl.Location = new System.Drawing.Point(0, 0);
76
            this.ribbonControl.MaxItemId = 1;
77
            this.ribbonControl.Name = "ribbonControl";
78
            this.ribbonControl.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False;
79
            this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
80
            this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
81
            this.ribbonControl.ShowToolbarCustomizeItem = false;
82
            this.ribbonControl.Size = new System.Drawing.Size(301, 32);
83
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
84
            // 
85
            // layoutControl1
86
            // 
87
            this.layoutControl1.Controls.Add(this.btnDown);
88
            this.layoutControl1.Controls.Add(this.btnUp);
89
            this.layoutControl1.Controls.Add(this.btnRight);
90
            this.layoutControl1.Controls.Add(this.btnLeft);
91
            this.layoutControl1.Controls.Add(this.btnCancel);
92
            this.layoutControl1.Controls.Add(this.btnOK);
93
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
94
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
95
            this.layoutControl1.Name = "layoutControl1";
96
            this.layoutControl1.Root = this.Root;
97
            this.layoutControl1.Size = new System.Drawing.Size(301, 143);
98
            this.layoutControl1.TabIndex = 1;
99
            this.layoutControl1.Text = "layoutControl1";
100
            // 
101
            // btnDown
102
            // 
103
            this.btnDown.Enabled = false;
104
            this.btnDown.Location = new System.Drawing.Point(106, 64);
105
            this.btnDown.Name = "btnDown";
106
            this.btnDown.Size = new System.Drawing.Size(89, 22);
107
            this.btnDown.StyleController = this.layoutControl1;
108
            this.btnDown.TabIndex = 9;
109
            this.btnDown.Text = "Down";
110
            this.btnDown.CheckedChanged += new System.EventHandler(this.btn_CheckedChanged);
111
            // 
112
            // btnUp
113
            // 
114
            this.btnUp.Enabled = false;
115
            this.btnUp.Location = new System.Drawing.Point(106, 12);
116
            this.btnUp.Name = "btnUp";
117
            this.btnUp.Size = new System.Drawing.Size(89, 22);
118
            this.btnUp.StyleController = this.layoutControl1;
119
            this.btnUp.TabIndex = 8;
120
            this.btnUp.Text = "Up";
121
            this.btnUp.CheckedChanged += new System.EventHandler(this.btn_CheckedChanged);
122
            // 
123
            // btnRight
124
            // 
125
            this.btnRight.Enabled = false;
126
            this.btnRight.Location = new System.Drawing.Point(199, 38);
127
            this.btnRight.Name = "btnRight";
128
            this.btnRight.Size = new System.Drawing.Size(90, 22);
129
            this.btnRight.StyleController = this.layoutControl1;
130
            this.btnRight.TabIndex = 7;
131
            this.btnRight.Text = "Right";
132
            this.btnRight.CheckedChanged += new System.EventHandler(this.btn_CheckedChanged);
133
            // 
134
            // btnLeft
135
            // 
136
            this.btnLeft.Enabled = false;
137
            this.btnLeft.Location = new System.Drawing.Point(12, 38);
138
            this.btnLeft.Name = "btnLeft";
139
            this.btnLeft.Size = new System.Drawing.Size(90, 22);
140
            this.btnLeft.StyleController = this.layoutControl1;
141
            this.btnLeft.TabIndex = 6;
142
            this.btnLeft.Text = "Left";
143
            this.btnLeft.CheckedChanged += new System.EventHandler(this.btn_CheckedChanged);
144
            // 
145
            // btnCancel
146
            // 
147
            this.btnCancel.Location = new System.Drawing.Point(152, 109);
148
            this.btnCancel.Name = "btnCancel";
149
            this.btnCancel.Size = new System.Drawing.Size(137, 22);
150
            this.btnCancel.StyleController = this.layoutControl1;
151
            this.btnCancel.TabIndex = 5;
152
            this.btnCancel.Text = "Cancel";
153
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
154
            // 
155
            // btnOK
156
            // 
157
            this.btnOK.Location = new System.Drawing.Point(12, 109);
158
            this.btnOK.Name = "btnOK";
159
            this.btnOK.Size = new System.Drawing.Size(136, 22);
160
            this.btnOK.StyleController = this.layoutControl1;
161
            this.btnOK.TabIndex = 4;
162
            this.btnOK.Text = "Ok";
163
            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
164
            // 
165
            // Root
166
            // 
167
            this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
168
            this.Root.GroupBordersVisible = false;
169
            this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
170
            this.layoutControlItem1,
171
            this.layoutControlItem2,
172
            this.layoutControlItem3,
173
            this.layoutControlItem4,
174
            this.layoutControlItem5,
175
            this.layoutControlItem6,
176
            this.emptySpaceItem2,
177
            this.emptySpaceItem3,
178
            this.emptySpaceItem4,
179
            this.emptySpaceItem5,
180
            this.emptySpaceItem6,
181
            this.emptySpaceItem7});
182
            this.Root.Name = "Root";
183
            this.Root.Size = new System.Drawing.Size(301, 143);
184
            this.Root.TextVisible = false;
185
            // 
186
            // layoutControlItem1
187
            // 
188
            this.layoutControlItem1.Control = this.btnOK;
189
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 97);
190
            this.layoutControlItem1.Name = "layoutControlItem1";
191
            this.layoutControlItem1.Size = new System.Drawing.Size(140, 26);
192
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
193
            this.layoutControlItem1.TextVisible = false;
194
            // 
195
            // layoutControlItem2
196
            // 
197
            this.layoutControlItem2.Control = this.btnCancel;
198
            this.layoutControlItem2.Location = new System.Drawing.Point(140, 97);
199
            this.layoutControlItem2.Name = "layoutControlItem2";
200
            this.layoutControlItem2.Size = new System.Drawing.Size(141, 26);
201
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
202
            this.layoutControlItem2.TextVisible = false;
203
            // 
204
            // layoutControlItem3
205
            // 
206
            this.layoutControlItem3.Control = this.btnLeft;
207
            this.layoutControlItem3.Location = new System.Drawing.Point(0, 26);
208
            this.layoutControlItem3.Name = "layoutControlItem3";
209
            this.layoutControlItem3.Size = new System.Drawing.Size(94, 26);
210
            this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
211
            this.layoutControlItem3.TextVisible = false;
212
            // 
213
            // layoutControlItem4
214
            // 
215
            this.layoutControlItem4.Control = this.btnRight;
216
            this.layoutControlItem4.Location = new System.Drawing.Point(187, 26);
217
            this.layoutControlItem4.Name = "layoutControlItem4";
218
            this.layoutControlItem4.Size = new System.Drawing.Size(94, 26);
219
            this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
220
            this.layoutControlItem4.TextVisible = false;
221
            // 
222
            // layoutControlItem5
223
            // 
224
            this.layoutControlItem5.Control = this.btnUp;
225
            this.layoutControlItem5.Location = new System.Drawing.Point(94, 0);
226
            this.layoutControlItem5.Name = "layoutControlItem5";
227
            this.layoutControlItem5.Size = new System.Drawing.Size(93, 26);
228
            this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
229
            this.layoutControlItem5.TextVisible = false;
230
            // 
231
            // layoutControlItem6
232
            // 
233
            this.layoutControlItem6.Control = this.btnDown;
234
            this.layoutControlItem6.Location = new System.Drawing.Point(94, 52);
235
            this.layoutControlItem6.Name = "layoutControlItem6";
236
            this.layoutControlItem6.Size = new System.Drawing.Size(93, 26);
237
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
238
            this.layoutControlItem6.TextVisible = false;
239
            // 
240
            // emptySpaceItem2
241
            // 
242
            this.emptySpaceItem2.AllowHotTrack = false;
243
            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 0);
244
            this.emptySpaceItem2.Name = "emptySpaceItem2";
245
            this.emptySpaceItem2.Size = new System.Drawing.Size(94, 26);
246
            this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
247
            // 
248
            // emptySpaceItem3
249
            // 
250
            this.emptySpaceItem3.AllowHotTrack = false;
251
            this.emptySpaceItem3.Location = new System.Drawing.Point(187, 0);
252
            this.emptySpaceItem3.Name = "emptySpaceItem3";
253
            this.emptySpaceItem3.Size = new System.Drawing.Size(94, 26);
254
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
255
            // 
256
            // emptySpaceItem4
257
            // 
258
            this.emptySpaceItem4.AllowHotTrack = false;
259
            this.emptySpaceItem4.Location = new System.Drawing.Point(94, 26);
260
            this.emptySpaceItem4.Name = "emptySpaceItem4";
261
            this.emptySpaceItem4.Size = new System.Drawing.Size(93, 26);
262
            this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
263
            // 
264
            // emptySpaceItem5
265
            // 
266
            this.emptySpaceItem5.AllowHotTrack = false;
267
            this.emptySpaceItem5.Location = new System.Drawing.Point(0, 52);
268
            this.emptySpaceItem5.Name = "emptySpaceItem5";
269
            this.emptySpaceItem5.Size = new System.Drawing.Size(94, 26);
270
            this.emptySpaceItem5.TextSize = new System.Drawing.Size(0, 0);
271
            // 
272
            // emptySpaceItem6
273
            // 
274
            this.emptySpaceItem6.AllowHotTrack = false;
275
            this.emptySpaceItem6.Location = new System.Drawing.Point(187, 52);
276
            this.emptySpaceItem6.Name = "emptySpaceItem6";
277
            this.emptySpaceItem6.Size = new System.Drawing.Size(94, 26);
278
            this.emptySpaceItem6.TextSize = new System.Drawing.Size(0, 0);
279
            // 
280
            // emptySpaceItem7
281
            // 
282
            this.emptySpaceItem7.AllowHotTrack = false;
283
            this.emptySpaceItem7.Location = new System.Drawing.Point(0, 78);
284
            this.emptySpaceItem7.Name = "emptySpaceItem7";
285
            this.emptySpaceItem7.Size = new System.Drawing.Size(281, 19);
286
            this.emptySpaceItem7.TextSize = new System.Drawing.Size(0, 0);
287
            // 
288
            // SymmetryForm
289
            // 
290
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
291
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
292
            this.ClientSize = new System.Drawing.Size(301, 175);
293
            this.Controls.Add(this.layoutControl1);
294
            this.Controls.Add(this.ribbonControl);
295
            this.MaximizeBox = false;
296
            this.MinimizeBox = false;
297
            this.Name = "SymmetryForm";
298
            this.Ribbon = this.ribbonControl;
299
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
300
            this.Text = "Symmetry Setting";
301
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
302
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
303
            this.layoutControl1.ResumeLayout(false);
304
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
305
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
306
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
307
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
308
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
309
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
310
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
311
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
312
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
313
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
314
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).EndInit();
315
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem6)).EndInit();
316
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem7)).EndInit();
317
            this.ResumeLayout(false);
318
            this.PerformLayout();
319

  
320
        }
321

  
322
        #endregion
323

  
324
        private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl;
325
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
326
        private DevExpress.XtraLayout.LayoutControlGroup Root;
327
        private DevExpress.XtraEditors.SimpleButton btnCancel;
328
        private DevExpress.XtraEditors.SimpleButton btnOK;
329
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
330
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
331
        private DevExpress.XtraEditors.CheckButton btnDown;
332
        private DevExpress.XtraEditors.CheckButton btnUp;
333
        private DevExpress.XtraEditors.CheckButton btnRight;
334
        private DevExpress.XtraEditors.CheckButton btnLeft;
335
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
336
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
337
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
338
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
339
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
340
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3;
341
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4;
342
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem5;
343
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem6;
344
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem7;
345
    }
346
}
DTI_PID/SPPIDConverter/Form/SymmetryForm.cs
1
using System;
2
using System.Collections.Generic;
3
using System.ComponentModel;
4
using System.Data;
5
using System.Drawing;
6
using System.Linq;
7
using System.Text;
8
using System.Threading.Tasks;
9
using System.Windows.Forms;
10

  
11
namespace Converter.SPPID
12
{
13
    [Flags]
14
    public enum SymmetryArrow
15
    {
16
        None = 0,
17
        Left = 1,
18
        Right = 2,
19
        Down = 4,
20
        Up = 8
21
    }
22

  
23
    public partial class SymmetryForm : DevExpress.XtraBars.Ribbon.RibbonForm
24
    {
25
        public SymmetryForm(SymmetryArrow arrow)
26
        {
27
            InitializeComponent();
28
            btnLeft.Tag = SymmetryArrow.Left;
29
            btnRight.Tag = SymmetryArrow.Right;
30
            btnDown.Tag = SymmetryArrow.Down;
31
            btnUp.Tag = SymmetryArrow.Up;
32

  
33
            if (arrow.HasFlag(SymmetryArrow.Left))
34
                btnLeft.Enabled = true;
35
            if (arrow.HasFlag(SymmetryArrow.Right))
36
                btnRight.Enabled = true;
37
            if (arrow.HasFlag(SymmetryArrow.Down))
38
                btnDown.Enabled = true;
39
            if (arrow.HasFlag(SymmetryArrow.Up))
40
                btnUp.Enabled = true;
41
        }
42

  
43
        public SymmetryArrow Result { get; set; }
44

  
45
        private void btnOK_Click(object sender, EventArgs e)
46
        {
47
            if (Result == SymmetryArrow.None)
48
                MessageBox.Show("Select Direction!");
49
            else
50
                DialogResult = DialogResult.OK;
51
        }
52

  
53
        private void btnCancel_Click(object sender, EventArgs e)
54
        {
55
            DialogResult = DialogResult.Cancel;
56
        }
57

  
58
        private void btn_CheckedChanged(object sender, EventArgs e)
59
        {
60
            DevExpress.XtraEditors.CheckButton button = sender as DevExpress.XtraEditors.CheckButton;
61
            bool bChecked = button.Checked;
62
            if (bChecked)
63
            {
64
                if (!btnLeft.Equals(button) && btnLeft.Enabled && btnLeft.Checked)
65
                    btnLeft.Checked = false;
66
                if (!btnRight.Equals(button) && btnRight.Enabled && btnRight.Checked)
67
                    btnRight.Checked = false;
68
                if (!btnDown.Equals(button) && btnDown.Enabled && btnDown.Checked)
69
                    btnDown.Checked = false;
70
                if (!btnUp.Equals(button) && btnUp.Enabled && btnUp.Checked)
71
                    btnUp.Checked = false;
72

  
73
                Result = (SymmetryArrow)button.Tag;
74
            }
75
        }
76
    }
77
}
DTI_PID/SPPIDConverter/Form/SymmetryForm.resx
1
<?xml version="1.0" encoding="utf-8"?>
2
<root>
3
  <!-- 
4
    Microsoft ResX Schema 
5
    
6
    Version 2.0
7
    
8
    The primary goals of this format is to allow a simple XML format 
9
    that is mostly human readable. The generation and parsing of the 
10
    various data types are done through the TypeConverter classes 
11
    associated with the data types.
12
    
13
    Example:
14
    
15
    ... ado.net/XML headers & schema ...
16
    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
    <resheader name="version">2.0</resheader>
18
    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
    </data>
25
    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
        <comment>This is a comment</comment>
28
    </data>
29
                
30
    There are any number of "resheader" rows that contain simple 
31
    name/value pairs.
32
    
33
    Each data row contains a name, and value. The row also contains a 
34
    type or mimetype. Type corresponds to a .NET class that support 
35
    text/value conversion through the TypeConverter architecture. 
36
    Classes that don't support this are serialized and stored with the 
37
    mimetype set.
38
    
39
    The mimetype is used for serialized objects, and tells the 
40
    ResXResourceReader how to depersist the object. This is currently not 
41
    extensible. For a given mimetype the value must be set accordingly:
42
    
43
    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
    that the ResXResourceWriter will generate, however the reader can 
45
    read any of the formats listed below.
46
    
47
    mimetype: application/x-microsoft.net.object.binary.base64
48
    value   : The object must be serialized with 
49
            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
            : and then encoded with base64 encoding.
51
    
52
    mimetype: application/x-microsoft.net.object.soap.base64
53
    value   : The object must be serialized with 
54
            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
            : and then encoded with base64 encoding.
56

  
57
    mimetype: application/x-microsoft.net.object.bytearray.base64
58
    value   : The object must be serialized into a byte array 
59
            : using a System.ComponentModel.TypeConverter
60
            : and then encoded with base64 encoding.
61
    -->
62
  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
    <xsd:element name="root" msdata:IsDataSet="true">
65
      <xsd:complexType>
66
        <xsd:choice maxOccurs="unbounded">
67
          <xsd:element name="metadata">
68
            <xsd:complexType>
69
              <xsd:sequence>
70
                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
              </xsd:sequence>
72
              <xsd:attribute name="name" use="required" type="xsd:string" />
73
              <xsd:attribute name="type" type="xsd:string" />
74
              <xsd:attribute name="mimetype" type="xsd:string" />
75
              <xsd:attribute ref="xml:space" />
76
            </xsd:complexType>
77
          </xsd:element>
78
          <xsd:element name="assembly">
79
            <xsd:complexType>
80
              <xsd:attribute name="alias" type="xsd:string" />
81
              <xsd:attribute name="name" type="xsd:string" />
82
            </xsd:complexType>
83
          </xsd:element>
84
          <xsd:element name="data">
85
            <xsd:complexType>
86
              <xsd:sequence>
87
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
              </xsd:sequence>
90
              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
              <xsd:attribute ref="xml:space" />
94
            </xsd:complexType>
95
          </xsd:element>
96
          <xsd:element name="resheader">
97
            <xsd:complexType>
98
              <xsd:sequence>
99
                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
              </xsd:sequence>
101
              <xsd:attribute name="name" type="xsd:string" use="required" />
102
            </xsd:complexType>
103
          </xsd:element>
104
        </xsd:choice>
105
      </xsd:complexType>
106
    </xsd:element>
107
  </xsd:schema>
108
  <resheader name="resmimetype">
109
    <value>text/microsoft-resx</value>
110
  </resheader>
111
  <resheader name="version">
112
    <value>2.0</value>
113
  </resheader>
114
  <resheader name="reader">
115
    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
  </resheader>
117
  <resheader name="writer">
118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
  </resheader>
120
</root>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)