-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAboutDialog.cs
More file actions
129 lines (119 loc) · 3.76 KB
/
Copy pathAboutDialog.cs
File metadata and controls
129 lines (119 loc) · 3.76 KB
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
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Spirograph
{
/// <summary>
/// Summary description for AboutDialog.
/// </summary>
public class AboutDialog : System.Windows.Forms.Form
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private Spirograph.SpiroCanvas sc;
public AboutDialog()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
SpiroInstance si=new Hypotrochoid(65, 20, 28, new Point(75, 75));
si.ShowTrace=false;
si.ShowInfo=true;
si.Randomise=true;
sc.Clear();;
sc.AddSpiro(si);
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(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()
{
this.sc = new Spirograph.SpiroCanvas();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// sc
//
this.sc.AutoScroll = true;
this.sc.AutoScrollMinSize = new System.Drawing.Size(409, 409);
this.sc.BackColor = System.Drawing.SystemColors.Control;
this.sc.Enabled = false;
this.sc.Location = new System.Drawing.Point(8, 0);
this.sc.Name = "sc";
this.sc.Size = new System.Drawing.Size(184, 248);
this.sc.TabIndex = 0;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(160, 248);
this.button1.Name = "button1";
this.button1.TabIndex = 1;
this.button1.Text = "OK";
//
// label1
//
this.label1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.label1.Location = new System.Drawing.Point(188, 8);
this.label1.Name = "label1";
this.label1.TabIndex = 2;
this.label1.Text = "Spirograph";
//
// textBox1
//
this.textBox1.BackColor = System.Drawing.SystemColors.Control;
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.textBox1.Location = new System.Drawing.Point(192, 40);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(189, 192);
this.textBox1.TabIndex = 3;
this.textBox1.Text = @"Copyright (c) 2005, Alfie Kirkpatrick
This is free software. No warranty of any kind is provided. Please feel free to distribute this software.
Spirograph shows the dynamics of Epiclochoid and Hypoclochoid curves. More information about the mathematics of these curves is easily found on the Internet.
Spirograph was written in C# for Microsoft.NET 1.1.";
//
// AboutDialog
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(394, 280);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.sc);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "AboutDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About Spirograph";
this.ResumeLayout(false);
}
#endregion
}
}