예제 #1
0
        private void TsBtnAdd_Click(object sender, EventArgs e)
        {
            FrmAddMapper addMapper = new FrmAddMapper()
            {
                IsAdd = true
            };

            addMapper.transItem += AddMapper_transItem;
            addMapper.ShowDialog();
        }
예제 #2
0
        /// <summary>
        /// 修改
        /// </summary>
        private void Edit()
        {
            FrmAddMapper fm = new FrmAddMapper();

            fm.transItem += AddMapper_transItem;
            fm.LVItem     = this.lVMapper.SelectedItems[0];

            fm.IsAdd = false;
            fm.ShowDialog();
        }