using System;
using System.Windows.Forms;
namespace 成套报价软件
{
///
/// 用户库元件编辑 的交互逻辑(事件处理)。
/// UI 布局定义见 用户库元件编辑.ui.cs。
///
public partial class 用户库元件编辑
{
/// 构造函数:初始化 UI 并绑定事件。
public 用户库元件编辑()
{
InitializeComponent();
}
// ============ 公共属性(供主窗口读写编辑窗体的字段值)============
// 因为 ui.cs 里控件是 private,这里通过 public 属性暴露
public string 元件名称 { get { return txtName.Text; } set { txtName.Text = value ?? ""; } }
public string 规格 { get { return txtSpec.Text; } set { txtSpec.Text = value ?? ""; } }
public string 单位 { get { return txtUnit.Text; } set { txtUnit.Text = value ?? ""; } }
public string 数量 { get { return txtQty.Text; } set { txtQty.Text = value ?? ""; } }
public string 表价 { get { return txtPrice.Text; } set { txtPrice.Text = value ?? ""; } }
public string 采购系数 { get { return txtBuyCoeff.Text; } set { txtBuyCoeff.Text = value ?? ""; } }
public string 报出系数 { get { return txtQuoteCoeff.Text; } set { txtQuoteCoeff.Text = value ?? ""; } }
public string 品牌 { get { return txtBrand.Text; } set { txtBrand.Text = value ?? ""; } }
public string 系列 { get { return txtSeries.Text; } set { txtSeries.Text = value ?? ""; } }
public string 元件类型 { get { return txtType.Text; } set { txtType.Text = value ?? ""; } }
// 提示:在设计器的属性窗口(事件页)双击事件名,
// 会自动在此生成事件处理方法骨架。
}
}