Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Generator / Castle.ActiveRecord.Generator / Dialogs / NewSubClassDialog.cs
blob38d24b143860a5c0d381f2ec411ed5313701f82d
1 // Copyright 2004-2007 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.ActiveRecord.Generator.Dialogs
17 using System;
18 using System.Drawing;
19 using System.Collections;
20 using System.ComponentModel;
21 using System.Windows.Forms;
23 /// <summary>
24 /// Summary description for NewSubClassDialog.
25 /// </summary>
26 public class NewSubClassDialog : System.Windows.Forms.Form
28 private System.Windows.Forms.Button okButton;
29 private System.Windows.Forms.Button cancelButton;
30 private System.Windows.Forms.Label cl;
31 private System.Windows.Forms.TextBox className;
32 private System.Windows.Forms.TextBox discValue;
33 private System.Windows.Forms.Label label2;
34 /// <summary>
35 /// Required designer variable.
36 /// </summary>
37 private System.ComponentModel.Container components = null;
39 public NewSubClassDialog()
42 // Required for Windows Form Designer support
44 InitializeComponent();
47 // TODO: Add any constructor code after InitializeComponent call
51 /// <summary>
52 /// Clean up any resources being used.
53 /// </summary>
54 protected override void Dispose( bool disposing )
56 if( disposing )
58 if(components != null)
60 components.Dispose();
63 base.Dispose( disposing );
66 #region Windows Form Designer generated code
67 /// <summary>
68 /// Required method for Designer support - do not modify
69 /// the contents of this method with the code editor.
70 /// </summary>
71 private void InitializeComponent()
73 this.okButton = new System.Windows.Forms.Button();
74 this.cancelButton = new System.Windows.Forms.Button();
75 this.cl = new System.Windows.Forms.Label();
76 this.className = new System.Windows.Forms.TextBox();
77 this.discValue = new System.Windows.Forms.TextBox();
78 this.label2 = new System.Windows.Forms.Label();
79 this.SuspendLayout();
80 //
81 // okButton
82 //
83 this.okButton.Location = new System.Drawing.Point(328, 152);
84 this.okButton.Name = "okButton";
85 this.okButton.TabIndex = 4;
86 this.okButton.Text = "OK";
87 this.okButton.Click += new System.EventHandler(this.okButton_Click);
88 //
89 // cancelButton
90 //
91 this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
92 this.cancelButton.Location = new System.Drawing.Point(240, 152);
93 this.cancelButton.Name = "cancelButton";
94 this.cancelButton.TabIndex = 5;
95 this.cancelButton.Text = "Cancel";
96 this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
97 //
98 // cl
99 //
100 this.cl.Location = new System.Drawing.Point(48, 32);
101 this.cl.Name = "cl";
102 this.cl.Size = new System.Drawing.Size(120, 23);
103 this.cl.TabIndex = 0;
104 this.cl.Text = "Class name:";
105 this.cl.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
107 // className
109 this.className.Location = new System.Drawing.Point(184, 32);
110 this.className.Name = "className";
111 this.className.Size = new System.Drawing.Size(192, 21);
112 this.className.TabIndex = 1;
113 this.className.Text = "";
115 // discValue
117 this.discValue.Location = new System.Drawing.Point(184, 72);
118 this.discValue.Name = "discValue";
119 this.discValue.Size = new System.Drawing.Size(192, 21);
120 this.discValue.TabIndex = 3;
121 this.discValue.Text = "";
123 // label2
125 this.label2.Location = new System.Drawing.Point(48, 72);
126 this.label2.Name = "label2";
127 this.label2.Size = new System.Drawing.Size(120, 23);
128 this.label2.TabIndex = 2;
129 this.label2.Text = "Discriminator Value:";
130 this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
132 // NewSubClassDialog
134 this.AcceptButton = this.okButton;
135 this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
136 this.CancelButton = this.cancelButton;
137 this.ClientSize = new System.Drawing.Size(426, 188);
138 this.Controls.Add(this.discValue);
139 this.Controls.Add(this.label2);
140 this.Controls.Add(this.className);
141 this.Controls.Add(this.cl);
142 this.Controls.Add(this.cancelButton);
143 this.Controls.Add(this.okButton);
144 this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
145 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
146 this.MaximizeBox = false;
147 this.Name = "NewSubClassDialog";
148 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
149 this.Text = "New SubClass";
150 this.ResumeLayout(false);
153 #endregion
155 private void cancelButton_Click(object sender, System.EventArgs e)
157 DialogResult = DialogResult.Cancel;
158 Close();
161 private void okButton_Click(object sender, System.EventArgs e)
163 DialogResult = DialogResult.OK;
164 Close();
167 public String ClassName
169 get { return className.Text; }
172 public String DiscriminatorValue
174 get { return discValue.Text; }