-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.Designer.cs
More file actions
161 lines (154 loc) · 6.95 KB
/
Form1.Designer.cs
File metadata and controls
161 lines (154 loc) · 6.95 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
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
using System.Drawing;
using System.Windows.Forms;
namespace PathCalculation
{
partial class Form1
{
/// <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.
/// </summary>
private void InitializeComponent()
{
DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle();
titleLabel = new Label();
calculationGrid = new DataGridView();
gasolinePriceColumn = new DataGridViewTextBoxColumn();
gasPriceColumn = new DataGridViewTextBoxColumn();
mileageColumn = new DataGridViewTextBoxColumn();
savingsColumn = new DataGridViewTextBoxColumn();
formulaLabel = new Label();
statusLabel = new Label();
((System.ComponentModel.ISupportInitialize)calculationGrid).BeginInit();
SuspendLayout();
//
// titleLabel
//
titleLabel.AutoSize = true;
titleLabel.Font = new Font("Segoe UI", 15.75F, FontStyle.Bold, GraphicsUnit.Point, 204);
titleLabel.Location = new Point(24, 9);
titleLabel.Name = "titleLabel";
titleLabel.Size = new Size(227, 30);
titleLabel.TabIndex = 0;
titleLabel.Text = "Расчет километража";
//
// calculationGrid
//
calculationGrid.AllowUserToResizeRows = false;
calculationGrid.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
calculationGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
calculationGrid.BackgroundColor = SystemColors.Window;
calculationGrid.BorderStyle = BorderStyle.Fixed3D;
calculationGrid.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
calculationGrid.Columns.AddRange(new DataGridViewColumn[] { gasolinePriceColumn, gasPriceColumn, mileageColumn, savingsColumn });
calculationGrid.EditMode = DataGridViewEditMode.EditOnEnter;
calculationGrid.Location = new Point(24, 42);
calculationGrid.MultiSelect = false;
calculationGrid.Name = "calculationGrid";
calculationGrid.RowHeadersVisible = false;
calculationGrid.RowTemplate.Height = 30;
calculationGrid.SelectionMode = DataGridViewSelectionMode.CellSelect;
calculationGrid.Size = new Size(696, 353);
calculationGrid.TabIndex = 2;
calculationGrid.CellEndEdit += calculationGrid_CellEndEdit;
calculationGrid.CellValueChanged += calculationGrid_CellValueChanged;
calculationGrid.DataError += calculationGrid_DataError;
//
// gasolinePriceColumn
//
gasolinePriceColumn.FillWeight = 105F;
gasolinePriceColumn.HeaderText = "Цена бензина";
gasolinePriceColumn.Name = "gasolinePriceColumn";
gasolinePriceColumn.SortMode = DataGridViewColumnSortMode.NotSortable;
//
// gasPriceColumn
//
gasPriceColumn.FillWeight = 105F;
gasPriceColumn.HeaderText = "Цена газа";
gasPriceColumn.Name = "gasPriceColumn";
gasPriceColumn.SortMode = DataGridViewColumnSortMode.NotSortable;
//
// mileageColumn
//
dataGridViewCellStyle1.BackColor = SystemColors.ControlLight;
dataGridViewCellStyle1.Format = "N2";
mileageColumn.DefaultCellStyle = dataGridViewCellStyle1;
mileageColumn.FillWeight = 115F;
mileageColumn.HeaderText = "Километраж";
mileageColumn.Name = "mileageColumn";
mileageColumn.ReadOnly = true;
mileageColumn.SortMode = DataGridViewColumnSortMode.NotSortable;
//
// savingsColumn
//
savingsColumn.FillWeight = 115F;
savingsColumn.HeaderText = "Экономия";
savingsColumn.Name = "savingsColumn";
savingsColumn.SortMode = DataGridViewColumnSortMode.NotSortable;
//
// formulaLabel
//
formulaLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right;
formulaLabel.AutoSize = true;
formulaLabel.Location = new Point(487, 21);
formulaLabel.Name = "formulaLabel";
formulaLabel.Size = new Size(233, 15);
formulaLabel.TabIndex = 3;
formulaLabel.Text = "Формула: км = экономия / (бензин - газ)";
//
// statusLabel
//
statusLabel.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
statusLabel.BorderStyle = BorderStyle.FixedSingle;
statusLabel.Location = new Point(24, 398);
statusLabel.Name = "statusLabel";
statusLabel.Padding = new Padding(10, 8, 10, 8);
statusLabel.Size = new Size(696, 43);
statusLabel.TabIndex = 4;
statusLabel.Text = "Введите исходные данные в таблицу.";
statusLabel.TextAlign = ContentAlignment.MiddleLeft;
//
// Form1
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(744, 464);
Controls.Add(statusLabel);
Controls.Add(formulaLabel);
Controls.Add(calculationGrid);
Controls.Add(titleLabel);
MinimumSize = new Size(760, 360);
Name = "Form1";
StartPosition = FormStartPosition.CenterScreen;
Text = "Калькулятор километража";
((System.ComponentModel.ISupportInitialize)calculationGrid).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private Label titleLabel;
private DataGridView calculationGrid;
private DataGridViewTextBoxColumn gasolinePriceColumn;
private DataGridViewTextBoxColumn gasPriceColumn;
private DataGridViewTextBoxColumn mileageColumn;
private DataGridViewTextBoxColumn savingsColumn;
private Label formulaLabel;
private Label statusLabel;
}
}