Exemplo n.º 1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!edit)
            {
                return;
            }
            var edt = new InkEdit();

            edt.ShowDialog();
            dataGridViewInk.DataSource = inkBindingSource;
            Ziro();
            inkTableAdapter.Fill(printingDataSet.Ink);
            printingDataSet.AcceptChanges();
        }
Exemplo n.º 2
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!edit)
            {
                return;
            }
            var st = new PrintingDataSet.InkDataTable();

            inkTableAdapter.FillBy(st,
                                   Convert.ToInt32(dataGridViewInk.SelectedRows[0].Cells[0].Value));
            object[] row = st.Rows[0].ItemArray;
            var      edt = new InkEdit(
                Convert.ToInt32(row[0]),
                row[1].ToString(),
                Convert.ToDecimal(row[2])
                );

            edt.ShowDialog();
            dataGridViewInk.DataSource = inkBindingSource;
            Ziro();
            inkTableAdapter.Fill(printingDataSet.Ink);
            printingDataSet.AcceptChanges();
        }