From b4c867bf85d3edef5d084a3a26f13cbc6784bf58 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期一, 16 十二月 2024 13:37:21 +0800 Subject: [PATCH] 提交 --- WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowType.cs | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 50 insertions(+), 3 deletions(-) diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" index 2d271ae..61b46fe 100644 --- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" +++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowType.cs" @@ -1,4 +1,5 @@ -锘縰sing System; +锘縰sing DPumpHydr.WinFrmUI.Volute.ViewModel; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -28,12 +29,58 @@ return false; } - return true; + return true; + } + public eOutflowStyle GetBindingData() + { + if (RBtn涓績鍑哄彛.Checked) + { + return eOutflowStyle.涓績鍑哄彛_鍨傜洿娉曞叞闈㈡祦鍑�; + } + else if (RBtn渚ч潰鍑哄彛鏇茬嚎.Checked) + { + return eOutflowStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴; + } + else + { + return eOutflowStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴; + } + } private void BuildIcon() { - metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("chukou.png",848 ,508 ); + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 848, 508); + } + + private void RBtn涓績鍑哄彛_CheckedChanged(object sender) + { + if (RBtn涓績鍑哄彛.Checked) + { + RBtn渚ч潰鍑哄彛鏇茬嚎.Checked = false; + RBtn渚ч潰鍑哄彛鐩寸嚎.Checked = false; + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Central-exit.png", 848, 508); + } + } + + private void RBtn渚ч潰鍑哄彛鏇茬嚎_CheckedChanged(object sender) + { + if (RBtn渚ч潰鍑哄彛鏇茬嚎.Checked) + { + RBtn涓績鍑哄彛.Checked = false; + RBtn渚ч潰鍑哄彛鐩寸嚎.Checked = false; + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 848, 508); + } + } + + private void RBtn渚ч潰鍑哄彛鐩寸嚎_CheckedChanged(object sender) + { + if (RBtn渚ч潰鍑哄彛鐩寸嚎.Checked) + { + RBtn渚ч潰鍑哄彛鏇茬嚎.Checked = false; + RBtn涓績鍑哄彛.Checked = false; + metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-straight-line.png", 848, 508); + } } } } -- Gitblit v1.9.3