1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
|
-
!
-
!
-
|
-
|
|
|
!
|
|
|
|
!
-
|
-
-
!
|
|
|
-
|
|
|
|
!
|
|
-
!
|
!
|
-
!
|
|
|
|
|
|
|
|
|
|
|
-
!
-
!
-
!
-
!
-
!
-
!
-
!
-
!
-
!
-
!
-
!
|
-
!
-
|
|
|
|
|
-
|
!
|
!
|
-
!
-
|
|
|
!
|
-
!
-
|
|
|
!
|
-
|
!
-
|
|
-
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
|
|
|
!
!
|
!
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!
-
!
-
|
|
|
|
-
-
!
|
-
|
|
!
-
!
-
|
-
|
!
!
|
-
|
-
|
!
!
!
!
|
-
!
-
|
|
|
|
-
|
-
-
!
|
-
|
!
!
!
|
|
!
|
-
!
-
|
|
|
|
-
|
-
!
|
-
|
!
!
|
!
|
-
!
-
|
|
|
|
|
-
-
!
-
-
!
|
|
-
|
-
!
-
|
!
!
!
|
-
-
!
|
|
-
|
-
!
-
|
!
!
!
-
!
|
|
!
|
!
|
-
!
-
|
|
-
!
-
|
|
|
-
|
!
|
-
|
!
|
-
|
!
!
|
-
|
|
!
|
|
!
|
-
!
-
|
-
|
-
|
|
|
|
|
|
|
|
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
|
|
!
|
-
!
-
|
|
!
|
-
|
!
-
!
!
|
-
|
!
!
|
-
|
!
!
|
-
!
-
|
!
|
-
!
-
|
!
|
-
!
-
|
-
|
!
!
|
|
-
|
|
-
!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!
!
| [MainCode]
WiggleSettingWindow window = new WiggleSettingWindow(manager);
window.Show();
[MethodCode]
delegate PropertyBase WiggleMethod(PropertyBase property, float x, int oct, double amp, int dimension);
class PropertyData
{
public PropertyData(string[] dim, WiggleMethod method, PropertyInterpolationType type)
{
Type = type;
DimensionName = dim;
WiggleMethod = method;
}
public PropertyInterpolationType Type = default(PropertyInterpolationType);
public string[] DimensionName = null;
public WiggleMethod WiggleMethod = null;
}
class WiggleSettingWindow : Form
{
public WiggleSettingWindow(IAutomationManager manager)
{
propertyData = new Dictionary<Type, PropertyData>();
propertyData.Add(typeof(NumberProperty), new PropertyData(new string[] { "なし" }, WiggleNumberProperty, PropertyInterpolationType.Fixed | PropertyInterpolationType.Liner | PropertyInterpolationType.CatmullRom));
propertyData.Add(typeof(RadianProperty), new PropertyData(new string[] { "なし" }, WiggleRadianProperty, PropertyInterpolationType.Fixed | PropertyInterpolationType.Liner | PropertyInterpolationType.CatmullRom));
propertyData.Add(typeof(VertexProperty), new PropertyData(new string[] { "X", "Y", "Z", "各軸個別", "各軸同一" }, WiggleVertexProperty, PropertyInterpolationType.Fixed | PropertyInterpolationType.Liner | PropertyInterpolationType.CatmullRom));
InitializeComponent();
m = manager;
seed = this.GetHashCode();
RefreshComposition();
}
ComboBox compositionComboBox = null;
ComboBox layerComboBox = null;
ComboBox targetComboBox = null;
ComboBox propertyComboBox = null;
ComboBox dimensionComboBox = null;
ComboBox interpolationComboBox = null;
TextBox keyframeTextBox = null;
TextBox octTextBox = null;
TextBox ampTextBox = null;
TextBox startTimeTextBox = null;
TextBox endTimeTextBox = null;
Button applyButton = null;
IAutomationManager m = null;
IComposition[] composition = null;
ILayer[] layer = null;
IEffect[] effect = null;
string[] propertyName = null;
Dictionary<string, Type> propertyType = null;
Dictionary<Type, PropertyData> propertyData = null;
int octave = 6;
int seed = 0;
const int itemPadding = 1;
const int effectPadding = 2;
void RefreshComposition()
{
composition = m.GetComposition();
layer = null;
compositionComboBox.Items.Clear();
compositionComboBox.Items.Add("なし");
for (int i = 0; i < composition.Length; i++)
{
compositionComboBox.Items.Add(composition[i].Setting.Name);
}
compositionComboBox.SelectedIndex = 0;
}
PropertyBase WiggleNumberProperty(PropertyBase property, float x, int oct, double amp, int dimension)
{
NumberProperty np = (NumberProperty)property;
np.DoubleValue = ExpressionUtils.Wiggle(seed, x, oct, np.DoubleValue, amp);
return property;
}
PropertyBase WiggleRadianProperty(PropertyBase property, float x, int oct, double amp, int dimension)
{
RadianProperty rp = (RadianProperty)property;
return new RadianProperty(rp.PropertyName, 0, ExpressionUtils.Wiggle(seed, x, oct, rp.ToAngle(), amp));
return property;
}
PropertyBase WiggleVertexProperty(PropertyBase property, float x, int oct, double amp, int dimension)
{
VertexProperty vp = (VertexProperty)property;
switch(dimension)
{
case 0:
{
vp.X = ExpressionUtils.Wiggle(seed, x, oct, vp.X, amp);
break;
}
case 1:
{
vp.Y = ExpressionUtils.Wiggle(seed, x, oct, vp.Y, amp);
break;
}
case 2:
{
vp.Z = ExpressionUtils.Wiggle(seed, x, oct, vp.Z, amp);
break;
}
case 3:
{
vp.VertexValue = ExpressionUtils.Wiggle(seed, x, oct, vp.VertexValue, new Vertex(amp, amp, amp));
break;
}
case 4:
{
double w = ExpressionUtils.Wiggle(seed, x, oct, 0.0, amp);
vp.X += w;
vp.Y += w;
vp.Z += w;
break;
}
}
return property;
}
void SetWiggle(int keyframeRate, int oct, double amp, double startTime, double endTime, int dimension, PropertyInterpolationType type, WiggleMethod wiggle, ILayer targetLayer, IEffect targetEffect, Func<double, PropertyBase> propertyGetter)
{
double rate = 1.0 / (double)keyframeRate;
int count = (int)((endTime - startTime) / rate);
float addx = 360.0F / (float)count;
if (count > 0)
{
KeyFrame[] keyFrame = new KeyFrame[count];
for (int i = 0; i < count; i++)
{
double time = Math.Round(startTime + rate * i, ReferenceData.MinimumTimeDigit, MidpointRounding.ToEven);
keyFrame[i] = new KeyFrame(time, wiggle(propertyGetter(time), addx * i, oct, amp, dimension), type);
}
if (targetEffect != null)
{
for (int i = 0; i < count; i++)
{
m.AddKeyFrame(targetEffect, keyFrame[i]);
}
}
else
{
for (int i = 0; i < count; i++)
{
m.AddKeyFrame(targetLayer, keyFrame[i]);
}
}
}
}
void compositionComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
layer = null;
layerComboBox.Items.Clear();
layerComboBox.Items.Add("なし");
try
{
if (compositionComboBox.SelectedIndex > 0)
{
layer = composition[compositionComboBox.SelectedIndex - itemPadding].GetLayer();
for (int i = 0; i < layer.Length; i++)
{
layerComboBox.Items.Add(layer[i].ItemName);
}
}
}
catch { }
layerComboBox.SelectedIndex = 0;
}
void layerComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
effect = null;
targetComboBox.Items.Clear();
targetComboBox.Items.Add("なし");
if (layer != null && layerComboBox.SelectedIndex > 0)
{
targetComboBox.Items.Add("レイヤー");
effect = layer[layerComboBox.SelectedIndex - itemPadding].GetEffect();
for (int i = 0; i < effect.Length; i++)
{
targetComboBox.Items.Add(effect[i].ItemName);
}
}
targetComboBox.SelectedIndex = 0;
}
void targetComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
propertyName = null;
propertyType = new Dictionary<string, Type>();
propertyComboBox.Items.Clear();
propertyComboBox.Items.Add("なし");
if (targetComboBox.SelectedIndex > 0)
{
if (targetComboBox.SelectedIndex > 1)
{
IEffect se = effect[targetComboBox.SelectedIndex - effectPadding];
propertyName = m.GetPropertyNames(se);
for (int i = 0; i < propertyName.Length; i++)
{
PropertyBase p = m.GetProperty(se, propertyName[i], 0.0);
if (p != null && propertyData.ContainsKey(p.GetType()))
{
propertyType.Add(propertyName[i], p.GetType());
}
}
}
else
{
ILayer sl = layer[layerComboBox.SelectedIndex - itemPadding];
propertyName = m.GetPropertyNames(sl);
for (int i = 0; i < propertyName.Length; i++)
{
PropertyBase p = m.GetProperty(sl, propertyName[i], 0.0);
if (p != null && propertyData.ContainsKey(p.GetType()))
{
propertyType.Add(propertyName[i], p.GetType());
}
}
}
propertyName = new string[propertyType.Count];
propertyType.Keys.CopyTo(propertyName, 0);
propertyComboBox.Items.AddRange(propertyName);
}
propertyComboBox.SelectedIndex = 0;
}
void propertyComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
dimensionComboBox.Items.Clear();
interpolationComboBox.Items.Clear();
if (propertyComboBox.SelectedIndex > 0)
{
PropertyData sp = propertyData[propertyType[propertyName[propertyComboBox.SelectedIndex - 1]]];
dimensionComboBox.Items.AddRange(sp.DimensionName);
if ((sp.Type & PropertyInterpolationType.Fixed) != 0)
{
interpolationComboBox.Items.Add(PropertyInterpolationType.Fixed);
}
if ((sp.Type & PropertyInterpolationType.Liner) != 0)
{
interpolationComboBox.Items.Add(PropertyInterpolationType.Liner);
}
if ((sp.Type & PropertyInterpolationType.CatmullRom) != 0)
{
interpolationComboBox.Items.Add(PropertyInterpolationType.CatmullRom);
}
}
else
{
dimensionComboBox.Items.Add("なし");
interpolationComboBox.Items.Add("なし");
}
dimensionComboBox.SelectedIndex = 0;
interpolationComboBox.SelectedIndex = 0;
}
void applyButton_Click(object sentder, EventArgs e)
{
try
{
if (propertyComboBox.SelectedIndex > 0)
{
int keyframeRate = 0;
int oct = 0;
double amp = 0.0;
double startTime = 0.0;
double endTime = 0.0;
ILayer tl = null;
IEffect te = null;
Func<double, PropertyBase> propertyGetter = null;
if (!int.TryParse(keyframeTextBox.Text, out keyframeRate))
{
MessageBox.Show("間隔の値が異常です", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (!int.TryParse(octTextBox.Text, out oct))
{
MessageBox.Show("複雑度の値が異常です", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (!double.TryParse(ampTextBox.Text, out amp))
{
MessageBox.Show("強さの値が異常です", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (!double.TryParse(startTimeTextBox.Text, out startTime))
{
MessageBox.Show("開始時間の値が異常です", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (!double.TryParse(endTimeTextBox.Text, out endTime))
{
MessageBox.Show("終了時間の値が異常です", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (keyframeRate < 1)
{
MessageBox.Show("間隔の値を0以下にすることは出来ません", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (oct < 1 || oct > 100)
{
MessageBox.Show("複雑度の値を0以下、または100以上にすることは出来ません", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (amp == 0.0)
{
MessageBox.Show("強さの値を0にすることは出来ません", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (startTime > endTime)
{
MessageBox.Show("開始時間を終了時間より大きくすることは出来ません。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else if (startTime == endTime)
{
MessageBox.Show("開始時間と終了時間を同じにすることは出来ません。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
tl = layer[layerComboBox.SelectedIndex - 1];
if (targetComboBox.SelectedIndex > 1)
{
te = effect[targetComboBox.SelectedIndex - 2];
propertyGetter = new Func<double, PropertyBase>(delegate(double x) { return m.GetProperty(te, propertyName[propertyComboBox.SelectedIndex - 1], x); });
}
else
{
propertyGetter = new Func<double, PropertyBase>(delegate(double x) { return m.GetProperty(tl, propertyName[propertyComboBox.SelectedIndex - 1], x); });
}
SetWiggle(keyframeRate, oct, amp, startTime, endTime, dimensionComboBox.SelectedIndex, (PropertyInterpolationType)interpolationComboBox.SelectedItem, propertyData[propertyType[propertyName[propertyComboBox.SelectedIndex - 1]]].WiggleMethod, tl, te, propertyGetter);
}
else
{
MessageBox.Show("プロパティが選択されていません", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
catch
{
MessageBox.Show("実行中にエラーが発生しました", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
void closeButton_Click(object sentder, EventArgs e)
{
this.Close();
}
void refreshCompositionButton_Click(object sentder, EventArgs e)
{
RefreshComposition();
}
void _KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
applyButton.PerformClick();
}
}
void InitializeComponent()
{
this.SuspendLayout();
Label label = new Label();
label.AutoSize = true;
label.Text = "コンポジション:";
label.Location = new Point(12, 15);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "レイヤー:";
label.Location = new Point(36, 41);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "対象:";
label.Location = new Point(50, 67);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "プロパティ:";
label.Location = new Point(30, 93);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "次元:";
label.Location = new Point(50, 119);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "補間方法:";
label.Location = new Point(26, 145);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "間隔:";
label.Location = new Point(250, 15);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "個/秒";
label.Location = new Point(393, 15);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "複雑度:";
label.Location = new Point(238, 40);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "強さ:";
label.Location = new Point(254, 65);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "開始時間:";
label.Location = new Point(226, 90);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "秒";
label.Location = new Point(393, 90);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "終了時間:";
label.Location = new Point(226, 115);
this.Controls.Add(label);
label = new Label();
label.AutoSize = true;
label.Text = "秒";
label.Location = new Point(393, 115);
this.Controls.Add(label);
ComboBox comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.Location = new Point(87, 12);
comboBox.Size = new Size(121, 20);
comboBox.Name = "";
comboBox.SelectedIndexChanged += new EventHandler(compositionComboBox_SelectedIndexChanged);
comboBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(comboBox);
compositionComboBox = comboBox;
comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.Location = new Point(87, 38);
comboBox.Size = new Size(121, 20);
comboBox.SelectedIndexChanged += new EventHandler(layerComboBox_SelectedIndexChanged);
comboBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(comboBox);
layerComboBox = comboBox;
comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.Location = new Point(87, 64);
comboBox.Size = new Size(121, 20);
comboBox.SelectedIndexChanged += new EventHandler(targetComboBox_SelectedIndexChanged);
comboBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(comboBox);
targetComboBox = comboBox;
comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.Location = new Point(87, 90);
comboBox.Size = new Size(121, 20);
comboBox.SelectedIndexChanged += new EventHandler(propertyComboBox_SelectedIndexChanged);
comboBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(comboBox);
propertyComboBox = comboBox;
comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.Location = new Point(87, 116);
comboBox.Size = new Size(121, 20);
comboBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(comboBox);
dimensionComboBox = comboBox;
comboBox = new ComboBox();
comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
comboBox.Location = new Point(87, 142);
comboBox.Size = new Size(121, 20);
comboBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(comboBox);
interpolationComboBox = comboBox;
TextBox textBox = new TextBox();
textBox.Size = new Size(100, 19);
textBox.Location = new Point(287, 12);
textBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(textBox);
keyframeTextBox = textBox;
textBox = new TextBox();
textBox.Size = new Size(100, 19);
textBox.Location = new Point(287, 37);
textBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(textBox);
octTextBox = textBox;
textBox = new TextBox();
textBox.Size = new Size(100, 19);
textBox.Location = new Point(287, 62);
textBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(textBox);
ampTextBox = textBox;
textBox = new TextBox();
textBox.Size = new Size(100, 19);
textBox.Location = new Point(287, 87);
textBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(textBox);
startTimeTextBox = textBox;
textBox = new TextBox();
textBox.Size = new Size(100, 19);
textBox.Location = new Point(287, 112);
textBox.KeyDown += new KeyEventHandler(_KeyDown);
this.Controls.Add(textBox);
endTimeTextBox = textBox;
Button button = new Button();
button.Size = new Size(75, 23);
button.Location = new Point(12, 177);
button.Text = "適用";
button.Click += new EventHandler(applyButton_Click);
this.Controls.Add(button);
applyButton = button;
button = new Button();
button.Size = new Size(75, 23);
button.Location = new Point(93, 177);
button.Text = "閉じる";
button.Click += new EventHandler(closeButton_Click);
this.Controls.Add(button);
button = new Button();
button.Size = new Size(120, 23);
button.Location = new Point(174, 177);
button.Text = "コンポジション更新";
button.Click += new EventHandler(refreshCompositionButton_Click);
this.Controls.Add(button);
this.ClientSize = new Size(440, 212);
this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.TopMost = true;
this.Text = "ウィグル";
this.ResumeLayout(false);
this.PerformLayout();
}
}
[UsingNamespace]
NiVE2.CodeDom.Expression
|