-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
PresetsForm.cs
163 lines (154 loc) · 7.26 KB
/
PresetsForm.cs
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
/* Gamepad Phoenix
* Copyright (c) 2021-2023 Bernhard Schelling
*
* Gamepad Phoenix is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* Gamepad Phoenix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with Gamepad Phoenix.
* If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace GamepadPhoenix
{
class PresetsForm : Form
{
internal PresetsForm()
{
InitializeComponent();
}
internal ListBox lstPresets;
internal TextBox txtName;
internal Button btnDelete;
internal Button btnOK;
internal Label lblAutoLoad;
/// <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.Windows.Forms.Button btnCancel;
this.btnOK = new System.Windows.Forms.Button();
this.lstPresets = new System.Windows.Forms.ListBox();
this.txtName = new System.Windows.Forms.TextBox();
this.btnDelete = new System.Windows.Forms.Button();
this.lblAutoLoad = new System.Windows.Forms.Label();
btnCancel = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btnCancel
//
btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
btnCancel.Location = new System.Drawing.Point(181, 304);
btnCancel.Name = "btnCancel";
btnCancel.Size = new System.Drawing.Size(60, 23);
btnCancel.TabIndex = 4;
btnCancel.Text = "Cancel";
btnCancel.UseVisualStyleBackColor = true;
//
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.Location = new System.Drawing.Point(49, 304);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(60, 23);
this.btnOK.TabIndex = 2;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
//
// lstPresets
//
this.lstPresets.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lstPresets.FormattingEnabled = true;
this.lstPresets.IntegralHeight = false;
this.lstPresets.Location = new System.Drawing.Point(7, 34);
this.lstPresets.Name = "lstPresets";
this.lstPresets.Size = new System.Drawing.Size(234, 237);
this.lstPresets.TabIndex = 1;
//
// txtName
//
this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtName.Location = new System.Drawing.Point(7, 277);
this.txtName.Name = "txtName";
this.txtName.Size = new System.Drawing.Size(234, 20);
this.txtName.TabIndex = 0;
//
// btnDelete
//
this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnDelete.Location = new System.Drawing.Point(115, 304);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(60, 23);
this.btnDelete.TabIndex = 3;
this.btnDelete.Text = "Delete";
this.btnDelete.UseVisualStyleBackColor = true;
//
// lblAutoLoad
//
this.lblAutoLoad.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblAutoLoad.Location = new System.Drawing.Point(24, 3);
this.lblAutoLoad.Name = "lblAutoLoad";
this.lblAutoLoad.Size = new System.Drawing.Size(210, 28);
this.lblAutoLoad.TabIndex = 5;
this.lblAutoLoad.Text = "Press \'L1\' on a device with an existing preset to load it automatically.";
this.lblAutoLoad.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// PresetsForm
//
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = btnCancel;
this.ClientSize = new System.Drawing.Size(249, 334);
this.Controls.Add(this.lstPresets);
this.Controls.Add(this.lblAutoLoad);
this.Controls.Add(this.btnDelete);
this.Controls.Add(this.txtName);
this.Controls.Add(btnCancel);
this.Controls.Add(this.btnOK);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(180, 160);
this.Name = "PresetsForm";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Presets";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
}
}