Пример #1
0
        /// <summary>
        /// 显示类别选择页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void typeList_Click(object sender, EventArgs e)
        {
            FrmChooseTypes fCTypes = new FrmChooseTypes();

            fCTypes.Tag = new ChooseModel()
            {
                TypeCode = "Goods",
                FGet     = this
            };
            fCTypes.SetType += FCTypes_SetType;
            fCTypes.ShowDialog();
        }
Пример #2
0
        /// <summary>
        /// 打开单位类别选择页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void picUType_Click(object sender, EventArgs e)
        {
            FrmChooseTypes fChooseTypes = new FrmChooseTypes();

            fChooseTypes.Tag = new ChooseModel()
            {
                TypeCode = "Units",
                FGet     = this
            };
            fChooseTypes.SetType += () =>
            {
                txtUnitType.Text = uType.UTypeName;
            };
            fChooseTypes.ShowDialog();
        }