Ejemplo n.º 1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            FmLinkBillInfo fmLinkBill = new FmLinkBillInfo();

            fmLinkBill.SelectValue += (obj) =>
            {
                Info_link_bill_tent info = obj as Info_link_bill_tent;
                int rowOffset            = 2;// this.reoGridControl1.CurrentWorksheet.RowCount;
                InsertBillItem(rowOffset);

                SetItemCellValue(info, rowOffset);
            };
            fmLinkBill.ShowDialog();
        }
Ejemplo n.º 2
0
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            RangePosition pos = this.reoGridControl1.CurrentWorksheet.SelectionRange;

            unvell.ReoGrid.Cell cell = this.reoGridControl1.CurrentWorksheet.Cells[pos.Row, pos.Col];
            Info_link_bill_tent item = cell.Tag as Info_link_bill_tent;

            if (item == null)
            {
                return;
            }
            FmLinkBillInfo fmLinkBill = new FmLinkBillInfo(item);

            fmLinkBill.SelectValue += (obj) =>
            {
                Info_link_bill_tent info = obj as Info_link_bill_tent;
                int rowOffset            = pos.Row;

                SetItemCellValue(info, rowOffset);
            };
            fmLinkBill.ShowDialog();
        }