tx
2025-04-10 2538101febc78f525945da72c7cdcb2589f9e6ea
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
using System;
using System.Windows.Forms;
 
namespace TProduct.WinFrmUI
{
    public partial class SetChartDisplayDlg : DevExpress.XtraEditors.XtraForm
    {
        public SetChartDisplayDlg()
        {
            InitializeComponent();
            this.btnSet.SetConfirmButtonColor();
            this.btnClose.SetCancelButtonColor();
        }
 
        private void SetCurveDisplayDlg_Load(object sender, EventArgs e)
        {
            textMinorCountQ.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountQ;
            textMinorCountH.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountH;
            textMinorCountE.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountE;
            textMinorCountP.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountP;
            textMinorCountNPSH.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountNPSH;
 
 
            btnSetAxisLabelQ.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontQ;
            btnSetAxisLabelH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontH;
            btnSetAxisLabelE.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontE;
            btnSetAxisLabelP.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontP;
            btnSetAxisLabelNPSH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontNPSH;
 
 
            btnSetAxisTittleQ.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontQ;
            btnSetAxisTittleH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontH;
            btnSetAxisTittleE.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontE;
            btnSetAxisTittleP.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontP;
            btnSetAxisTittleNPSH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontNPSH;
 
 
            btnAnnoFontQH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQH;
            btnAnnoFontQE.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQE;
            btnAnnoFontQP.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQP;
            btnAnnoFontNPSH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontNPSH;
 
 
            comboConnectQH.SelectedIndex = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQH;
            comboConnectQE.SelectedIndex = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQE;
            comboConnectQP.SelectedIndex = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQP;
            comboConnectQNPSH.SelectedIndex = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQNPSH;
 
 
            txtCurveWidthQH.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthQH;
            txtCurveWidthQE.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthQE;
            txtCurveWidthQP.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthQP;
            txtCurveWidthNPSH.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthNPSH;
 
            txtCurveWidthEquipCurve.Value = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthEquipCurve;
 
            colorDialog1.FullOpen = true;
 
 
            this.combo设计点显示.Properties.Items.Clear();
            this.combo设计点显示.Properties.Items.Add("十字线");
            this.combo设计点显示.Properties.Items.Add("倒三角");
            this.combo设计点显示.SelectedIndex = GetDesignPointDispDefaultStyleIndex();
 
            LocationDialog();
        }
        public int GetDesignPointDispDefaultStyleIndex()
        {
 
            return 1;
 
        }
        //翻译界面语言
        private void LocationDialog()
        {
            if (TProduct.UserSetting.Localization.IsCN)
                return;
            this.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("设置图表显示");
 
            this.labelScaleNumberE.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("子刻度数");
            this.btnClose.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("关闭");
            this.btnSet.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("设定");
            this.checkDispMinorLineX.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("显示X子刻度线");
            this.label8.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("Y网格颜色");
            this.label9.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("X网格颜色");
            this.label10.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("离心泵型谱颜色");
            this.xtraTabPage2.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("图表坐标");
            this.groupBox1.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("网格线设置");
 
            this.comboGridLineYType.Items.Clear();
            this.comboGridLineYType.Items.AddRange(new object[] {
            TProduct.UserSetting.Localization.TranslateHelper.GetString("无"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("实线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("虚线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString( "点线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("长点线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("双点线")});
 
            this.comboGridLineXType.Items.Clear();
            this.comboGridLineXType.Items.AddRange(new object[] {
            TProduct.UserSetting.Localization.TranslateHelper.GetString("无"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("实线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("虚线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString( "点线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("长点线"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("双点线")});
 
            this.checkBox1.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("显示Y子刻度线");
            this.label24.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("坐标名称");
            this.label23.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("坐标刻度");
            this.label17.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("汽蚀刻度线");
            this.label16.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("功率刻度线");
            this.label15.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("效率刻度线");
            this.label14.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("扬程刻度线");
            this.label13.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量刻度线");
            this.label1.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("颜色");
            this.xtraTabPage3.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("性能曲线");
            this.label6.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("等效线");
 
            // this.label6.Location = new Point(this.label6.Location.X - 20, this.label6.Location.Y );
 
            this.label11.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("装置曲线");
            this.label22.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("曲线粗细");
            this.label4.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量汽蚀线");
            this.label3.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量功率线");
            this.labelQE.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量效率线");
            this.label7.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("颜色");
            this.labelQH.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量扬程线");
 
            //panel1.Location = new Point(panel1.Location.X + 50, panel1.Location.Y);
 
            this.xtraTabPage5.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("曲线标签");
 
            this.comboConnectQNPSH.Items.Clear();
            this.comboConnectQNPSH.Items.AddRange(new object[] {
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "无"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "尾巴"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("箭头形式"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("端点箭头"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "直线")});
 
            this.comboConnectQNPSH.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("尾巴");
 
 
            this.comboConnectQP.Items.Clear();
            this.comboConnectQP.Items.AddRange(new object[] {
            TProduct.UserSetting.Localization.TranslateHelper.GetString( "无"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "尾巴"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("箭头形式"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("端点箭头"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "直线")});
 
            this.comboConnectQP.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("尾巴");
 
            this.comboConnectQE.Items.Clear();
            this.comboConnectQE.Items.AddRange(new object[] {
             TProduct.UserSetting.Localization.TranslateHelper.GetString( "无"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "尾巴"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("箭头形式"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("端点箭头"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "直线")});
 
            this.comboConnectQE.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("尾巴");
 
            this.comboConnectQH.Items.Clear();
            this.comboConnectQH.Items.AddRange(new object[] {
             TProduct.UserSetting.Localization.TranslateHelper.GetString( "无"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "尾巴"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("箭头形式"),
            TProduct.UserSetting.Localization.TranslateHelper.GetString("端点箭头"),
           TProduct.UserSetting.Localization.TranslateHelper.GetString( "直线")});
 
            this.comboConnectQH.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("尾巴");
 
 
            this.label25.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("标签文字");
            this.label26.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("标签引线类型");
            this.label31.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量汽蚀曲线");
            this.label27.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("文字字体");
            this.label28.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量功率曲线");
            this.label29.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量效率曲线");
            this.label30.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("流量扬程曲线");
 
            this.xtraTabPage10.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("其他颜色");
            this.label10.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("离心泵型谱颜色");
            this.label5.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("轴流泵型谱颜色");
            this.label12.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("允许区域颜色");
            this.label2.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("最优区域颜色");
            this.label18.Text = TProduct.UserSetting.Localization.TranslateHelper.GetString("工作区域颜色");
 
            label设计点显示.Text = "design point display Style";
            this.combo设计点显示.Properties.Items.Clear();
            this.combo设计点显示.Properties.Items.Add("cross curve");
            this.combo设计点显示.Properties.Items.Add("triangle");
            this.combo设计点显示.SelectedIndex = GetDesignPointDispDefaultStyleIndex();
        }
 
 
 
        private void btnSet_Click(object sender, EventArgs e)
        {
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountQ = (int)textMinorCountQ.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountH = (int)textMinorCountH.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountE = (int)textMinorCountE.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountP = (int)textMinorCountP.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.MinorCountNPSH = (int)textMinorCountNPSH.Value;
 
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQH = btnAnnoFontQH.Font;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQE = btnAnnoFontQE.Font;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQP = btnAnnoFontQP.Font;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontNPSH = btnAnnoFontNPSH.Font;
 
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQH = comboConnectQH.SelectedIndex;//(DevExpress.XtraCharts.AnnotationConnectorStyle)
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQE = comboConnectQE.SelectedIndex;//(DevExpress.XtraCharts.AnnotationConnectorStyle)
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQP = comboConnectQP.SelectedIndex;//(DevExpress.XtraCharts.AnnotationConnectorStyle)
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoConnTypeQNPSH = comboConnectQNPSH.SelectedIndex;//(DevExpress.XtraCharts.AnnotationConnectorStyle)
 
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthQH = (int)txtCurveWidthQH.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthQE = (int)txtCurveWidthQE.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthQP = (int)txtCurveWidthQP.Value;
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthNPSH = (int)txtCurveWidthNPSH.Value;
 
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveWidthEquipCurve = (int)txtCurveWidthEquipCurve.Value;
 
            TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.Save();//使用Save方法保存更改
 
 
            //
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }
 
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.No;
            this.Close();
        }
 
        #region 坐标颜色
        private void btnColorQ_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorQ;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorQ = colorDialog1.Color;
            }
        }
 
        private void btnColorH_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorH;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorH = colorDialog1.Color;
            }
        }
 
        private void btnColorE_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorE;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorE = colorDialog1.Color;
            }
        }
 
        private void btnColorP_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorP;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorP = colorDialog1.Color;
            }
        }
 
        private void btnColorNPSH_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorNPSH;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CoordColorNPSH = colorDialog1.Color;
            }
        }
        #endregion
 
        #region 其他
        private void btnSpectrumColorLxp_Click(object sender, EventArgs e)
        {
            //colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.SpectrumColorLxp;
            //if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            //{
            //    TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.SpectrumColorLxp = colorDialog1.Color;
            //}
        }
        private void btnSpectrumColorZlp_Click(object sender, EventArgs e)
        {
            //colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.SpectrumColorZlp;
            //if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            //{
            //    TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.SpectrumColorZlp = colorDialog1.Color;
            //}
        }
        private void btnEquipCurveColor_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorEquipCurve;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorEquipCurve = colorDialog1.Color;
            }
        }
        private void btnEqualCurveEcolor_Click(object sender, EventArgs e)
        {
            //colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorEqualE;
            //if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            //{
            //    TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorEqualE = colorDialog1.Color;
            //}
        }
        private void btnAllowableRegionColor_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.RegionColorAllowable;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.RegionColorAllowable = colorDialog1.Color;
            }
        }
 
        private void btnPreferredRegionColor_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.RegionColorPreferred;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.RegionColorPreferred = colorDialog1.Color;
            }
        }
 
 
        private void btnWorkRegionColor_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.RegionColorWork;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.RegionColorWork = colorDialog1.Color;
            }
        }
 
        #endregion
 
        #region 设置坐标刻度字体FONT
        private void btnSetAxisLabelQ_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontQ;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontQ = fontDialog1.Font;
                btnSetAxisLabelQ.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontQ;
            }
        }
 
        private void btnSetAxisLabelH_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontH;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontH = fontDialog1.Font;
                btnSetAxisLabelH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontH;
            }
        }
 
        private void btnSetAxisLabelE_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontE;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontE = fontDialog1.Font;
                btnSetAxisLabelE.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontE;
            }
        }
 
        private void btnSetAxisLabelP_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontP;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontP = fontDialog1.Font;
                btnSetAxisLabelP.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontP;
            }
        }
 
        private void btnSetAxisLabelNPSH_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontNPSH;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontNPSH = fontDialog1.Font;
                btnSetAxisLabelNPSH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisLabelFontNPSH;
            }
        }
        #endregion
 
        #region 曲线
        private void btnCurveColorQH_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorQH;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorQH = colorDialog1.Color;
            }
        }
 
        private void btnCurveColorQE_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorQE;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorQE = colorDialog1.Color;
            }
        }
 
        private void btnCurveColorQP_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorQP;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorQP = colorDialog1.Color;
            }
        }
 
        private void btnCurveColorNPSH_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorNPSH;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.CurveColorNPSH = colorDialog1.Color;
            }
        }
        #endregion
 
        #region 坐标刻度字体
        private void btnSetAxisTittleQ_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontQ;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontQ = fontDialog1.Font;
                btnSetAxisTittleQ.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontQ;
            }
        }
 
        private void btnSetAxisTittleH_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontH;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontH = fontDialog1.Font;
                btnSetAxisTittleH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontH;
            }
        }
 
        private void btnSetAxisTittleE_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontE;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontE = fontDialog1.Font;
                btnSetAxisTittleE.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontE;
            }
        }
 
        private void btnSetAxisTittleP_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontP;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontP = fontDialog1.Font;
                btnSetAxisTittleP.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontP;
            }
        }
 
        private void btnSetAxisTittleNPSH_Click(object sender, EventArgs e)
        {
            fontDialog1.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontNPSH;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontNPSH = fontDialog1.Font;
                btnSetAxisTittleNPSH.Font = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AxisTitleFontNPSH;
            }
        }
        #endregion
 
        #region 刻度其他
        private void btnGridColorX_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.GridLinesColorX;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.GridLinesColorX = colorDialog1.Color;
            }
        }
 
        private void btnGridColorY_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.GridLinesColorY;
            if (this.colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.GridLinesColorY = colorDialog1.Color;
            }
        }
        #endregion
 
        #region 曲线标签
 
        private void btnAnnoFontQH_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowColor = true;
            fontDialog1.Font = btnAnnoFontQH.Font;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQH = fontDialog1.Font;
                btnAnnoFontQH.Font = fontDialog1.Font;
            }
        }
 
        private void btnAnnoFontQE_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowColor = true;
            fontDialog1.Font = btnAnnoFontQE.Font;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQE = fontDialog1.Font;
                btnAnnoFontQE.Font = fontDialog1.Font;
            }
        }
 
        private void btnAnnoFontQP_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowColor = true;
            fontDialog1.Font = btnAnnoFontQP.Font;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontQP = fontDialog1.Font;
                btnAnnoFontQP.Font = fontDialog1.Font;
            }
        }
 
        private void btnAnnoFontNPSH_Click(object sender, EventArgs e)
        {
            //fontDialog1.ShowColor = true;
            fontDialog1.Font = btnAnnoFontNPSH.Font;
            if (fontDialog1.ShowDialog() != DialogResult.Cancel)
            {
                TProduct.WinFrmUI.TPump.ChartDisp.Settings.Default.AnnoFontNPSH = fontDialog1.Font;
                btnAnnoFontNPSH.Font = fontDialog1.Font;
            }
        }
 
 
 
        #endregion
 
 
 
 
 
    }
}