Exemplo n.º 1
0
        /// <summary>
        /// 新增套餐
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_Combo frm_1 = new Frm_Combo();

            frm_1.swapdata["collection"] = xpCollection1;
            if (frm_1.ShowDialog() == DialogResult.OK)
            {
            }
            frm_1.Dispose();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 编辑
        /// </summary>
        private void Edit(int rowHandle)
        {
            CB01 cb01 = null;

            if (rowHandle >= 0)
            {
                cb01 = xpCollection1[gridView1.GetDataSourceRowIndex(rowHandle)] as CB01;
                Frm_Combo frm_1 = new Frm_Combo();
                frm_1.swapdata["collection"] = xpCollection1;
                frm_1.swapdata["cb01"]       = cb01;
                if (frm_1.ShowDialog() == DialogResult.OK)
                {
                    this.RefreshData();
                }
                frm_1.Dispose();
            }
        }