回答編集履歴
1
誤字修正
test
CHANGED
@@ -95,7 +95,7 @@
|
|
95
95
|
set
|
96
96
|
{
|
97
97
|
numericUpDown1.Maximum = value;
|
98
|
-
myTrackBar1.Maximum = numeric2tracbar(value);
|
98
|
+
myTrackBar1.Maximum = numeric2trackbar(value);
|
99
99
|
}
|
100
100
|
}
|
101
101
|
public decimal Minimum {
|
@@ -104,7 +104,7 @@
|
|
104
104
|
set
|
105
105
|
{
|
106
106
|
numericUpDown1.Minimum = value;
|
107
|
-
myTrackBar1.Minimum = numeric2tracbar(value);
|
107
|
+
myTrackBar1.Minimum = numeric2trackbar(value);
|
108
108
|
}
|
109
109
|
}
|
110
110
|
|
@@ -114,7 +114,7 @@
|
|
114
114
|
set
|
115
115
|
{
|
116
116
|
numericUpDown1.Increment = value;
|
117
|
-
myTrackBar1.SmallChange = numeric2tracbar(numericUpDown1.Increment);
|
117
|
+
myTrackBar1.SmallChange = numeric2trackbar(numericUpDown1.Increment);
|
118
118
|
}
|
119
119
|
}
|
120
120
|
|
@@ -124,8 +124,8 @@
|
|
124
124
|
set
|
125
125
|
{
|
126
126
|
numericUpDown1.DecimalPlaces = value;
|
127
|
-
myTrackBar1.Maximum = numeric2tracbar(numericUpDown1.Maximum);
|
127
|
+
myTrackBar1.Maximum = numeric2trackbar(numericUpDown1.Maximum);
|
128
|
-
myTrackBar1.Minimum = numeric2tracbar(numericUpDown1.Minimum);
|
128
|
+
myTrackBar1.Minimum = numeric2trackbar(numericUpDown1.Minimum);
|
129
129
|
}
|
130
130
|
}
|
131
131
|
|
@@ -135,7 +135,7 @@
|
|
135
135
|
set
|
136
136
|
{
|
137
137
|
numericUpDown1.Value = value;
|
138
|
-
myTrackBar1.Value = numeric2tracbar(numericUpDown1.Value);
|
138
|
+
myTrackBar1.Value = numeric2trackbar(numericUpDown1.Value);
|
139
139
|
}
|
140
140
|
}
|
141
141
|
|
@@ -153,10 +153,10 @@
|
|
153
153
|
|
154
154
|
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
|
155
155
|
{
|
156
|
-
myTrackBar1.Value = numeric2tracbar(numericUpDown1.Value);
|
156
|
+
myTrackBar1.Value = numeric2trackbar(numericUpDown1.Value);
|
157
157
|
}
|
158
158
|
|
159
|
-
private int numeric2tracbar(decimal value)
|
159
|
+
private int numeric2trackbar(decimal value)
|
160
160
|
{
|
161
161
|
return (int)(value * (decimal)Math.Pow(10, numericUpDown1.DecimalPlaces));
|
162
162
|
}
|